ncore interface for spark based applications