Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 40C0517500 for ; Tue, 9 Jun 2015 09:51:06 +0000 (UTC) Received: (qmail 78427 invoked by uid 500); 9 Jun 2015 09:51:01 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 78389 invoked by uid 500); 9 Jun 2015 09:51:01 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 78336 invoked by uid 99); 9 Jun 2015 09:51:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jun 2015 09:51:01 +0000 Date: Tue, 9 Jun 2015 09:51:01 +0000 (UTC) From: "Till Rohrmann (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FLINK-2189) NullPointerException in MutableHashTable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLINK-2189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Till Rohrmann updated FLINK-2189: --------------------------------- Description: [~Felix Neutatz] reported a {{NullPointerException}} in the {{MutableHashTable}} when running the {{ALS}} algorithm. The stack trace is the following: {code} Caused by: java.lang.NullPointerException at org.apache.flink.runtime.operators.hash.HashPartition.spillPartition(HashPartition.java:310) at org.apache.flink.runtime.operators.hash.MutableHashTable.spillPartition(MutableHashTable.java:1094) at org.apache.flink.runtime.operators.hash.MutableHashTable.insertBucketEntry(MutableHashTable.java:927) at org.apache.flink.runtime.operators.hash.MutableHashTable.buildTableFromSpilledPartition(MutableHashTable.java:783) at org.apache.flink.runtime.operators.hash.MutableHashTable.prepareNextPartition(MutableHashTable.java:508) at org.apache.flink.runtime.operators.hash.MutableHashTable.nextRecord(MutableHashTable.java:544) at org.apache.flink.runtime.operators.hash.NonReusingBuildFirstHashMatchIterator.callWithNextKey(NonReusingBuildFirstHashMatchIterator.java:104) at org.apache.flink.runtime.operators.MatchDriver.run(MatchDriver.java:173) at org.apache.flink.runtime.operators.RegularPactTask.run(RegularPactTask.java:496) at org.apache.flink.runtime.operators.RegularPactTask.invoke(RegularPactTask.java:362) at org.apache.flink.runtime.taskmanager.Task.run(Task.java:559) at java.lang.Thread.run(Thread.java:745) {code} He produced this error on his local machine with the following code: {code} implicit val env = ExecutionEnvironment.getExecutionEnvironment val links = MovieLensUtils.readLinks(movieLensDir + "links.csv") val movies = MovieLensUtils.readMovies(movieLensDir + "movies.csv") val ratings = MovieLensUtils.readRatings(movieLensDir + "ratings.csv") val tags = MovieLensUtils.readTags(movieLensDir + "tags.csv") val ratingMatrix = ratings.map { r => (r.userId.toInt, r.movieId.toInt, r.rating) } val testMatrix = ratings.map { r => (r.userId.toInt, r.movieId.toInt) } val als = ALS() .setIterations(10) .setNumFactors(10) .setBlocks(150) als.fit(ratingMatrix) val result = als.predict(testMatrix) result.print val risk = als.empiricalRisk(ratingMatrix).collect().apply(0) println("Empirical risk: " + risk) env.execute() {code} was: [~Felix Neutatz] reported a {{NullPointerException}} in the {{MutableHashTable}} when running the {{ALS}} algorithm. The stack trace is the following: {code} Caused by: java.lang.NullPointerException at org.apache.flink.runtime.operators.hash.HashPartition.spillPartition(HashPartition.java:310) at org.apache.flink.runtime.operators.hash.MutableHashTable.spillPartition(MutableHashTable.java:1094) at org.apache.flink.runtime.operators.hash.MutableHashTable.insertBucketEntry(MutableHashTable.java:927) at org.apache.flink.runtime.operators.hash.MutableHashTable.buildTableFromSpilledPartition(MutableHashTable.java:783) at org.apache.flink.runtime.operators.hash.MutableHashTable.prepareNextPartition(MutableHashTable.java:508) at org.apache.flink.runtime.operators.hash.MutableHashTable.nextRecord(MutableHashTable.java:544) at org.apache.flink.runtime.operators.hash.NonReusingBuildFirstHashMatchIterator.callWithNextKey(NonReusingBuildFirstHashMatchIterator.java:104) at org.apache.flink.runtime.operators.MatchDriver.run(MatchDriver.java:173) at org.apache.flink.runtime.operators.RegularPactTask.run(RegularPactTask.java:496) at org.apache.flink.runtime.operators.RegularPactTask.invoke(RegularPactTask.java:362) at org.apache.flink.runtime.taskmanager.Task.run(Task.java:559) at java.lang.Thread.run(Thread.java:745) {code} He produced this error on his local machine with the following code: {code} implicit val env = ExecutionEnvironment.getExecutionEnvironment val links = MovieLensUtils.readLinks(movieLensDir + "links.csv") val movies = MovieLensUtils.readMovies(movieLensDir + "movies.csv") val ratings = MovieLensUtils.readRatings(movieLensDir + "ratings.csv") val tags = MovieLensUtils.readTags(movieLensDir + "tags.csv") val ratingMatrix = ratings.map { r => (r.userId.toInt, r.movieId.toInt, r.rating) } val testMatrix = ratings.map { r => (r.userId.toInt, r.movieId.toInt) } val als = ALS() .setIterations(10) .setNumFactors(10) .setBlocks(150) als.fit(ratingMatrix) val result = als.predict(testMatrix) result.print val risk = als.empiricalRisk(ratingMatrix).collect().apply(0) println("Empirical risk: " + risk) env.execute() {code} > NullPointerException in MutableHashTable > ---------------------------------------- > > Key: FLINK-2189 > URL: https://issues.apache.org/jira/browse/FLINK-2189 > Project: Flink > Issue Type: Bug > Components: Core > Reporter: Till Rohrmann > > [~Felix Neutatz] reported a {{NullPointerException}} in the {{MutableHashTable}} when running the {{ALS}} algorithm. The stack trace is the following: > {code} > Caused by: java.lang.NullPointerException > at org.apache.flink.runtime.operators.hash.HashPartition.spillPartition(HashPartition.java:310) > at org.apache.flink.runtime.operators.hash.MutableHashTable.spillPartition(MutableHashTable.java:1094) > at org.apache.flink.runtime.operators.hash.MutableHashTable.insertBucketEntry(MutableHashTable.java:927) > at org.apache.flink.runtime.operators.hash.MutableHashTable.buildTableFromSpilledPartition(MutableHashTable.java:783) > at org.apache.flink.runtime.operators.hash.MutableHashTable.prepareNextPartition(MutableHashTable.java:508) > at org.apache.flink.runtime.operators.hash.MutableHashTable.nextRecord(MutableHashTable.java:544) > at org.apache.flink.runtime.operators.hash.NonReusingBuildFirstHashMatchIterator.callWithNextKey(NonReusingBuildFirstHashMatchIterator.java:104) > at org.apache.flink.runtime.operators.MatchDriver.run(MatchDriver.java:173) > at org.apache.flink.runtime.operators.RegularPactTask.run(RegularPactTask.java:496) > at org.apache.flink.runtime.operators.RegularPactTask.invoke(RegularPactTask.java:362) > at org.apache.flink.runtime.taskmanager.Task.run(Task.java:559) > at java.lang.Thread.run(Thread.java:745) > {code} > He produced this error on his local machine with the following code: > {code} > implicit val env = ExecutionEnvironment.getExecutionEnvironment > val links = MovieLensUtils.readLinks(movieLensDir + "links.csv") > val movies = MovieLensUtils.readMovies(movieLensDir + "movies.csv") > val ratings = MovieLensUtils.readRatings(movieLensDir + "ratings.csv") > val tags = MovieLensUtils.readTags(movieLensDir + "tags.csv") > > val ratingMatrix = ratings.map { r => (r.userId.toInt, r.movieId.toInt, r.rating) } > val testMatrix = ratings.map { r => (r.userId.toInt, r.movieId.toInt) } > val als = ALS() > .setIterations(10) > .setNumFactors(10) > .setBlocks(150) > > als.fit(ratingMatrix) > val result = als.predict(testMatrix) > > result.print > val risk = als.empiricalRisk(ratingMatrix).collect().apply(0) > println("Empirical risk: " + risk) > env.execute() > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)