java.io.NotSerializableException: org.apache.hadoop.io.Text Serialization stack: - object not serializable (class: org.apache.hadoop.io.Text, value: Kafka) - field (class: scala.Tuple2, name: _1, type: class java.lang.Object) - object (class scala.Tuple2, (Kafka,3)) - element of array (index: 0) - array (class [Lscala.Tuple2;, size 2)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by srinivas amara
, 10 months ago
org.apache.hadoop.io.Text Serialization stack: - object not serializable (class: org.apache.hadoop.io.Text, value: Kafka) - field (class: scala.Tuple2, name: _1, type: class java.lang.Object) - object (class scala.Tuple2, (Kafka,3)) - element of array (index: 0) - array (class [Lscala.Tuple2;, size 2)
via Stack Overflow by Vijay Innamuri
, 1 year ago
org.apache.hadoop.io.LongWritable Serialization stack: - object not serializable (class: org.apache.hadoop.io.LongWritable, value: 15227295) - field (class: scala.Tuple2, name: _1, type: class java.lang.Object) - object (class scala.Tuple2, (15227295,)) - element of array (index: 0) - array (class [Lscala.Tuple2;, size 1153163)
via GitHub by kaxil
, 1 year ago
org.neo4j.driver.internal.InternalNode Serialization stack: - object not serializable (class: org.neo4j.driver.internal.InternalNode, value: node<10516047>) - element of array (index: 0) - array (class [Ljava.lang.Object;, size 1
via Stack Overflow by Codejoy
, 3 months ago
org.neo4j.driver.internal.InternalNode Serialization stack: - object not serializable (class: org.neo4j.driver.internal.InternalNode, value: node<5>) - element of array (index: 0) - array (class [Ljava.lang.Object;, size 1) - field
via Stack Overflow by kaxil
, 1 year ago
org.neo4j.driver.internal.InternalNode Serialization stack: - object not serializable (class: org.neo4j.driver.internal.InternalNode, value: node<10516047>) - element of array (index: 0) - array (class [Ljava.lang.Object;, size 1
via Stack Overflow by sonamsh
, 7 months ago
scala.collection.TraversableOnce$FlattenOps$$anon$1 Serialization stack: - object not serializable (class: scala.collection.TraversableOnce$FlattenOps$$anon$1, value: non-empty iterator) - element of array (index: 0) - array (class [Lscala.collection.Iterator;, size 10)
java.io.NotSerializableException: org.apache.hadoop.io.Text Serialization stack: - object not serializable (class: org.apache.hadoop.io.Text, value: Kafka) - field (class: scala.Tuple2, name: _1, type: class java.lang.Object) - object (class scala.Tuple2, (Kafka,3)) - element of array (index: 0) - array (class [Lscala.Tuple2;, size 2)
at org.apache.spark.serializer.SerializationDebugger$.improveException(SerializationDebugger.scala:40)
at org.apache.spark.serializer.JavaSerializationStream.writeObject(JavaSerializer.scala:47)
at org.apache.spark.serializer.JavaSerializerInstance.serialize(JavaSerializer.scala:84)
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:744)

Users with the same issue

Once, 3 months ago
Once, 6 months ago
14 times, 8 months ago
15 times, 10 months ago
30 times, 11 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.