[
https://issues.apache.org/jira/browse/SPARK-11193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14965561#comment-14965561
]
Jean-Baptiste Onofré commented on SPARK-11193:
----------------------------------------------
I only have one warning during compilation (scala 2.10.4/Java 8), and it's not
the same as you have:
{code}
[INFO] --- scala-maven-plugin:3.2.2:compile (scala-compile-first) @
spark-streaming-kinesis-asl_2.10 ---
[WARNING] Zinc server is not available at port 3030 - reverting to normal
incremental compile
[INFO] Using incremental compilation
[INFO] Compiling 8 Scala sources and 1 Java source to
/home/jbonofre/Workspace/spark/extras/kinesis-asl/target/scala-2.10/classes...
[WARNING] warning: [options] bootstrap class path not set in conjunction with
-source 1.7
[WARNING] 1 warning
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @
spark-streaming-kinesis-asl_2.10 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to
/home/jbonofre/Workspace/spark/extras/kinesis-asl/target/scala-2.10/classes
[INFO]
[INFO] --- maven-antrun-plugin:1.8:run (create-tmp-dir) @
spark-streaming-kinesis-asl_2.10 ---
[INFO] Executing tasks
main:
[mkdir] Created dir:
/home/jbonofre/Workspace/spark/extras/kinesis-asl/target/tmp
[INFO] Executed tasks
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @
spark-streaming-kinesis-asl_2.10 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 3 resources
[INFO]
[INFO] --- scala-maven-plugin:3.2.2:testCompile (scala-test-compile-first) @
spark-streaming-kinesis-asl_2.10 ---
[WARNING] Zinc server is not available at port 3030 - reverting to normal
incremental compile
[INFO] Using incremental compilation
[INFO] Compiling 4 Scala sources and 1 Java source to
/home/jbonofre/Workspace/spark/extras/kinesis-asl/target/scala-2.10/test-classes...
[WARNING]
/home/jbonofre/Workspace/spark/extras/kinesis-asl/src/test/scala/org/apache/spark/streaming/kinesis/KinesisStreamSuite.scala:100:
method createStream in object KinesisUtils is deprecated: use other forms of
createStream
[WARNING] val kinesisStream1 = KinesisUtils.createStream(ssc,
"mySparkStream",
[WARNING] ^
[WARNING] one warning found
[WARNING] warning: [options] bootstrap class path not set in conjunction with
-source 1.7
[WARNING] 1 warning
[INFO]
[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @
spark-streaming-kinesis-asl_2.10 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to
/home/jbonofre/Workspace/spark/extras/kinesis-asl/target/scala-2.10/test-classes
[INFO]
{code}
Let me try the other combinations (Java7/Scala 2.11).
> Spark 1.5+ Kinesis Streaming - ClassCastException when starting
> KinesisReceiver
> -------------------------------------------------------------------------------
>
> Key: SPARK-11193
> URL: https://issues.apache.org/jira/browse/SPARK-11193
> Project: Spark
> Issue Type: Bug
> Components: Streaming
> Affects Versions: 1.5.0, 1.5.1
> Reporter: Phil Kallos
> Attachments: screen.png
>
>
> After upgrading from Spark 1.4.x -> 1.5.x, I am now unable to start a Kinesis
> Spark Streaming application, and am being consistently greeted with this
> exception:
> java.lang.ClassCastException: scala.collection.mutable.HashMap cannot be cast
> to scala.collection.mutable.SynchronizedMap
> at
> org.apache.spark.streaming.kinesis.KinesisReceiver.onStart(KinesisReceiver.scala:175)
> at
> org.apache.spark.streaming.receiver.ReceiverSupervisor.startReceiver(ReceiverSupervisor.scala:148)
> at
> org.apache.spark.streaming.receiver.ReceiverSupervisor.start(ReceiverSupervisor.scala:130)
> at
> org.apache.spark.streaming.scheduler.ReceiverTracker$ReceiverTrackerEndpoint$$anonfun$9.apply(ReceiverTracker.scala:542)
> at
> org.apache.spark.streaming.scheduler.ReceiverTracker$ReceiverTrackerEndpoint$$anonfun$9.apply(ReceiverTracker.scala:532)
> at
> org.apache.spark.SparkContext$$anonfun$38.apply(SparkContext.scala:1982)
> at
> org.apache.spark.SparkContext$$anonfun$38.apply(SparkContext.scala:1982)
> at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:66)
> at org.apache.spark.scheduler.Task.run(Task.scala:88)
> at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:214)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Worth noting that I am able to reproduce this issue locally, and also on
> Amazon EMR (using the latest emr-release 4.1.0 which packages Spark 1.5.0).
> Also, I am not able to run the included kinesis-asl example.
> Built locally using:
> git checkout v1.5.1
> mvn -Pyarn -Pkinesis-asl -Phadoop-2.6 -DskipTests clean package
> Example run command:
> bin/run-example streaming.KinesisWordCountASL phibit-test kinesis-connector
> https://kinesis.us-east-1.amazonaws.com
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]