org.apache.spark.api.python.PythonException: Traceback (most recent call last): File "/grid/0/tmp/yarn-local/usercache/gsamaras/appcache/application_1470212406507_56888/container_e04_1470212406507_56888_01_000009/pyspark.zip/pyspark/worker.py", line 98, in main command = pickleSer._read_with_length(infile) File "/grid/0/tmp/yarn-local/usercache/gsamaras/appcache/application_1470212406507_56888/container_e04_1470212406507_56888_01_000009/pyspark.zip/pyspark/serializers.py", line 164, in _read_with_length return self.loads(obj) File "/grid/0/tmp/yarn-local/usercache/gsamaras/appcache/application_1470212406507_56888/container_e04_1470212406507_56888_01_000009/pyspark.zip/pyspark/serializers.py", line 422, in loads return pickle.loads(obj) UnpicklingError: NEWOBJ class argument has NULL tp_new

Stack Overflow | gsamaras | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Read a distributed Tab delimited CSV

    Stack Overflow | 9 months ago | gsamaras
    org.apache.spark.api.python.PythonException: Traceback (most recent call last): File "/grid/0/tmp/yarn-local/usercache/gsamaras/appcache/application_1470212406507_56888/container_e04_1470212406507_56888_01_000009/pyspark.zip/pyspark/worker.py", line 98, in main command = pickleSer._read_with_length(infile) File "/grid/0/tmp/yarn-local/usercache/gsamaras/appcache/application_1470212406507_56888/container_e04_1470212406507_56888_01_000009/pyspark.zip/pyspark/serializers.py", line 164, in _read_with_length return self.loads(obj) File "/grid/0/tmp/yarn-local/usercache/gsamaras/appcache/application_1470212406507_56888/container_e04_1470212406507_56888_01_000009/pyspark.zip/pyspark/serializers.py", line 422, in loads return pickle.loads(obj) UnpicklingError: NEWOBJ class argument has NULL tp_new
  2. 0

    PySpark, Graph, and Spark data frames foreach

    Stack Overflow | 5 months ago | rajman
    org.apache.spark.api.python.PythonException: Traceback (most recent call last): File "/usr/share/dse/spark/python/lib/pyspark.zip/pyspark/worker.py", line 111, in main process() File "/usr/share/dse/spark/python/lib/pyspark.zip/pyspark/worker.py", line 106, in process serializer.dump_stream(func(split_index, iterator), outfile) File "/usr/share/dse/spark/python/lib/pyspark.zip/pyspark/rdd.py", line 2346, in pipeline_func File "/usr/share/dse/spark/python/lib/pyspark.zip/pyspark/rdd.py", line 2346, in pipeline_func File "/usr/share/dse/spark/python/lib/pyspark.zip/pyspark/rdd.py", line 2346, in pipeline_func File "/usr/share/dse/spark/python/lib/pyspark.zip/pyspark/rdd.py", line 317, in func File "/usr/share/dse/spark/python/lib/pyspark.zip/pyspark/rdd.py", line 759, in func File "/home/centos/datacube/spark_graph/test_sc_CSV.py", line 31, in testFunc addV('name').property('n_val',n_val))",{'n_val':row.name}) File "/home/centos/anaconda/lib/python2.7/site-packages/dse/cluster.py", line 177, in execute_graph return self.execute_graph_async(query, parameters, trace, execution_profile).result() File "/home/centos/anaconda/lib/python2.7/site-packages/cassandra/cluster.py", line 3781, in result raise self._final_exception InvalidRequest: Error from server: code=2200 [Invalid query] message="No such property: g for class: Script10549"
  3. 0

    Apache-Spark load files from HDFS

    Stack Overflow | 2 years ago | Ruofan Kong
    org.apache.spark.api.python.PythonException: Traceback (most recent call last): File "/home/ying/AWS_Tutorial/spark-1.4.0/python/lib/pyspark.zip/pyspark/worker.py", line 111, in main process() File "/home/ying/AWS_Tutorial/spark-1.4.0/python/lib/pyspark.zip/pyspark/worker.py", line 106, in process serializer.dump_stream(func(split_index, iterator), outfile) File "/home/ying/AWS_Tutorial/spark-1.4.0/python/pyspark/rdd.py", line 2318, in pipeline_func return func(split, prev_func(split, iterator)) File "/home/ying/AWS_Tutorial/spark-1.4.0/python/pyspark/rdd.py", line 2318, in pipeline_func return func(split, prev_func(split, iterator)) File "/home/ying/AWS_Tutorial/spark-1.4.0/python/pyspark/rdd.py", line 2318, in pipeline_func return func(split, prev_func(split, iterator)) File "/home/ying/AWS_Tutorial/spark-1.4.0/python/pyspark/rdd.py", line 304, in func return f(iterator) File "/home/ying/AWS_Tutorial/spark-1.4.0/python/pyspark/rdd.py", line 719, in processPartition f(x) File "/home/ying/AWS_Tutorial/spark_codes/sum.py", line 41, in <lambda> temp = datafile.foreach(lambda (path, content): myfunc(str(path).strip('file:'))) File "/home/ying/AWS_Tutorial/spark_codes/sum.py", line 26, in myfunc cr = csv.reader(open(s,"rb")) IOError: [Errno 2] No such file or directory: 'hdfs://localhost:9000/data/test1.csv'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Add date field to RDD in Spark

    Stack Overflow | 2 years ago
    org.apache.spark.api.python.PythonException: Traceback (most recent call last): File "/home/terrapin/Spark_Hadoop/spark-1.1.1-bin-cdh4/python/pyspark/worker.py", line 79, in main serializer.dump_stream(func(split_index, iterator), outfile) File "/home/terrapin/Spark_Hadoop/spark-1.1.1-bin-cdh4/python/pyspark/serializers.py", line 196, in dump_stream self.serializer.dump_stream(self._batched(iterator), stream) File "/home/terrapin/Spark_Hadoop/spark-1.1.1-bin-cdh4/python/pyspark/serializers.py", line 127, in dump_stream for obj in iterator: File "/home/terrapin/Spark_Hadoop/spark-1.1.1-bin-cdh4/python/pyspark/serializers.py", line 185, in _batched for item in iterator: File "/home/terrapin/Spark_Hadoop/spark-1.1.1-bin-cdh4/python/pyspark/rdd.py", line 1147, in takeUpToNumLeft yield next(iterator) File "/home/terrapin/Spark_Hadoop/spark-1.1.1-bin-cdh4/test3.py", line 72, in parsedate dt=dateutil.parser.parse("01 Jan 1900 00:00:00").date() AttributeError: 'module' object has no attribute 'parser'
  6. 0

    spark Task Execution error. No Such File or Directory

    Stack Overflow | 2 years ago
    org.apache.spark.api.python.PythonException: Traceback (most recent call last): File "/home/hadoop/spark/python/pyspark/worker.py", line 90, in main command = pickleSer.loads(command.value) File "/home/hadoop/spark/python/pyspark/broadcast.py", line 106, in value self._value = self.load(self._path) File "/home/hadoop/spark/python/pyspark/broadcast.py", line 87, in load with open(path, 'rb', 1 << 20) as f: IOError: [Errno 2] No such file or directory: '/mnt/spark/spark-aab8afa8-42e8-451f-88ac-8981e8dea00a/pyspark-1258404b-a23d-49e1-90f2-76a59c96a8ac/tmpN3K1iO'

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.spark.api.python.PythonException

      Traceback (most recent call last): File "/grid/0/tmp/yarn-local/usercache/gsamaras/appcache/application_1470212406507_56888/container_e04_1470212406507_56888_01_000009/pyspark.zip/pyspark/worker.py", line 98, in main command = pickleSer._read_with_length(infile) File "/grid/0/tmp/yarn-local/usercache/gsamaras/appcache/application_1470212406507_56888/container_e04_1470212406507_56888_01_000009/pyspark.zip/pyspark/serializers.py", line 164, in _read_with_length return self.loads(obj) File "/grid/0/tmp/yarn-local/usercache/gsamaras/appcache/application_1470212406507_56888/container_e04_1470212406507_56888_01_000009/pyspark.zip/pyspark/serializers.py", line 422, in loads return pickle.loads(obj) UnpicklingError: NEWOBJ class argument has NULL tp_new

      at org.apache.spark.api.python.PythonRunner$$anon$1.read()
    2. Spark
      Executor$TaskRunner.run
      1. org.apache.spark.api.python.PythonRunner$$anon$1.read(PythonRDD.scala:166)
      2. org.apache.spark.api.python.PythonRunner$$anon$1.<init>(PythonRDD.scala:207)
      3. org.apache.spark.api.python.PythonRunner.compute(PythonRDD.scala:125)
      4. org.apache.spark.api.python.PythonRDD.compute(PythonRDD.scala:70)
      5. org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:306)
      6. org.apache.spark.rdd.RDD.iterator(RDD.scala:270)
      7. org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:66)
      8. org.apache.spark.scheduler.Task.run(Task.scala:89)
      9. org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:227)
      9 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames