You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@predictionio.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/09/06 05:44:00 UTC

[jira] [Commented] (PIO-118) ClassCastException from NullWritable to Text in ESEventsUtil

    [ https://issues.apache.org/jira/browse/PIO-118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16154839#comment-16154839 ] 

ASF GitHub Bot commented on PIO-118:
------------------------------------

GitHub user marevol opened a pull request:

    https://github.com/apache/incubator-predictionio/pull/429

    [PIO-118] ClassCastException from NullWritable to Text in ESEventsUtil

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/marevol/incubator-predictionio cce_nullwritable

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-predictionio/pull/429.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #429
    
----
commit 97f363f1d08ce0662781d3bd3454c586186a4868
Author: Shinsuke Sugaya <sh...@apache.org>
Date:   2017-09-06T05:36:16Z

    fix cast exception from NullWritable

----


> ClassCastException from NullWritable to Text in ESEventsUtil
> ------------------------------------------------------------
>
>                 Key: PIO-118
>                 URL: https://issues.apache.org/jira/browse/PIO-118
>             Project: PredictionIO
>          Issue Type: Bug
>          Components: Core
>            Reporter: Shinsuke Sugaya
>            Assignee: Shinsuke Sugaya
>
> {noformat}
> Caused by: java.lang.ClassCastException: org.apache.hadoop.io.NullWritable cannot be cast to org.apache.hadoop.io.Text
>     at org.apache.predictionio.data.storage.elasticsearch.ESEventsUtil$.getOptStringCol$1(ESEventsUtil.scala:58)
>     at org.apache.predictionio.data.storage.elasticsearch.ESEventsUtil$.resultToEvent(ESEventsUtil.scala:68)
>     at org.apache.predictionio.data.storage.elasticsearch.ESPEvents$$anonfun$5.apply(ESPEvents.scala:89)
>     at org.apache.predictionio.data.storage.elasticsearch.ESPEvents$$anonfun$5.apply(ESPEvents.scala:87)
>     at scala.collection.Iterator$$anon$11.next(Iterator.scala:409)
>     at scala.collection.Iterator$$anon$11.next(Iterator.scala:409)
>     at scala.collection.Iterator$$anon$11.next(Iterator.scala:409)
>     at org.apache.spark.sql.catalyst.expressions.GeneratedClass$GeneratedIterator.processNext(Unknown Source)
>     at org.apache.spark.sql.execution.BufferedRowIterator.hasNext(BufferedRowIterator.java:43)
>     at org.apache.spark.sql.execution.WholeStageCodegenExec$$anonfun$8$$anon$1.hasNext(WholeStageCodegenExec.scala:377)
>     at org.apache.spark.sql.execution.SparkPlan$$anonfun$2.apply(SparkPlan.scala:231)
>     at org.apache.spark.sql.execution.SparkPlan$$anonfun$2.apply(SparkPlan.scala:225)
>     at org.apache.spark.rdd.RDD$$anonfun$mapPartitionsInternal$1$$anonfun$apply$25.apply(RDD.scala:827)
>     at org.apache.spark.rdd.RDD$$anonfun$mapPartitionsInternal$1$$anonfun$apply$25.apply(RDD.scala:827)
>     at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
>     at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:323)
>     at org.apache.spark.rdd.RDD.iterator(RDD.scala:287)
>     at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:87)
>     at org.apache.spark.scheduler.Task.run(Task.scala:99)
>     at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:322)
>     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>     ... 1 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)