mapr-streams-sparkstreaming-hbase's People
Forkers
joskid ranxerox kunlqt muralikrishna24 a-romero sambitkumohanty183 thschaefer vaquarkhan gokcerbelgusen sudarjs rakesh-92 tkamag a123demi jazzchen kishorkukreja ptzagk thailt tumango github764 ksnehalakshmi smritip1 samsselva corersky plunixlpmapr-streams-sparkstreaming-hbase's Issues
java.lang.AssertionError: assertion failed: Failed to get records for /user/user01/pump:sensor
After updating the version of mapr-spark in the MapR 5.1.0 GA Sandbox from v1.5.2 to v1.6.1.201607242143, the Scala-based Spark-streaming consumers no longer run.
I've also tried applying the MapR 5.1.0 June 2016 Patch, but that hasn't made a difference.
Here's what I get:
$ spark-submit --class solution.SensorStreamConsumer --master local[2] ms-sparkstreaming-1.0.jar
16/08/03 13:42:40 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
start streaming
[Stage 1:> (0 + 2) / 3]16/08/03 13:42:48 ERROR Executor: Exception in task 0.0 in stage 1.0 (TID 1)
java.lang.AssertionError: assertion failed: Failed to get records for /user/user01/pump:sensor)
|0 1026779 after polling for 1000
at scala.Predef$.assert(Predef.scala:179)
at org.apache.spark.streaming.kafka.v09.KafkaRDD$KafkaRDDIterator.fetchBatch(KafkaRDD.scala:203)
at org.apache.spark.streaming.kafka.v09.KafkaRDD$KafkaRDDIterator.hasNext(KafkaRDD.scala:173)
at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:327)
at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:327)
at org.apache.spark.util.Utils$.getIteratorSize(Utils.scala:1595)
at org.apache.spark.rdd.RDD$$anonfun$count$1.apply(RDD.scala:1157)
at org.apache.spark.rdd.RDD$$anonfun$count$1.apply(RDD.scala:1157)
at org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1858)
at org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1858)
at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:66)
at org.apache.spark.scheduler.Task.run(Task.scala:89)
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)
...
16/08/03 13:42:48 ERROR TaskSetManager: Task 0 in stage 1.0 failed 1 times; aborting job
16/08/03 13:42:48 ERROR JobScheduler: Error running job streaming job 1470228164000 ms.0
I don't understand why an assertion was added in MapR's 1.6.1 version of KafkaRDD.scala.fetchBatch (seems to have come with a commit for MAPR-23854)- with my limited Kafka/MapR streams knowledge it seems plausible for a read to return 0 bytes.
can you clarify this?
I don't think val sqlContext = SQLContext.getOrCreate(rdd.sparkContext) should work in mapr-streams-sparkstreaming-hbase/src/main/scala/solution/SensorStreamConsumer.scala
file as I don't see any getOrCreate() api for SQLContext.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.