Github user JoshRosen commented on the pull request:

    https://github.com/apache/spark/pull/5173#issuecomment-86292219
  
    Looks like we'll have to reconfigure the search path so that we pick up 
Python3:
    
    ```
    which: no python3 in 
(/home/jenkins/tools/hudson.model.JDK/JDK_7u60/bin:/home/anaconda/bin/:/home/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven_3.1.1/bin/:/home/android-sdk/:/usr/local/bin:/bin:/usr/bin)
    ```
    
    Looks like some PyPy tests are also complaining, but this could be due to a 
similar path issue:
    
    ```
    Python 3.2.5 (b2091e973da69152b3f928bfaabd5d2347e6df46, Mar 25 2015, 
20:40:41)
    [PyPy 2.4.0 with GCC 4.4.7 20120313 (Red Hat 4.4.7-11)]
    Run core tests ...
    Running test: pyspark/rdd.py
    Spark assembly has been built with Hive, including Datanucleus jars in 
classpath.
    **********************************************************************
    File "pyspark/rdd.py", line 2252, in __main__.PipelinedRDD
    Failed example:
        rdd.map(lambda x: 2 * x).cache().map(lambda x: 2 * x).collect()
    Exception raised:
        Traceback (most recent call last):
          File "/root/sknapp/pypy3-2.4.0-src/lib-python/3/doctest.py", line 
1288, in __run
            compileflags, 1), test.globs)
          File "<doctest __main__.PipelinedRDD[1]>", line 1, in <module>
            rdd.map(lambda x: 2 * x).cache().map(lambda x: 2 * x).collect()
          File 
"/home/jenkins/workspace/NewSparkPullRequestBuilder/python/pyspark/rdd.py", 
line 734, in collect
            port = self.ctx._jvm.PythonRDD.collectAndServe(self._jrdd.rdd())
          File 
"/home/jenkins/workspace/NewSparkPullRequestBuilder/python/lib/py4j-0.8.2.1-src.zip/py4j/java_gateway.py",
 line 538, in __call__
            self.target_id, self.name)
          File 
"/home/jenkins/workspace/NewSparkPullRequestBuilder/python/lib/py4j-0.8.2.1-src.zip/py4j/protocol.py",
 line 300, in get_return_value
            format(target_id, '.', name), value)
        py4j.protocol.Py4JJavaError: An error occurred while calling 
z:org.apache.spark.api.python.PythonRDD.collectAndServe.
        : org.apache.spark.SparkException: Job aborted due to stage failure: 
Task 2 in stage 0.0 failed 1 times, most recent failure: Lost task 2.0 in stage 
0.0 (TID 2, localhost): org.apache.spark.api.python.PythonException: Traceback 
(most recent call last):
          File "pyspark/worker.py", line 78, in main
            importlib.invalidate_caches()
        AttributeError: 'module' object has no attribute 'invalidate_caches'
    
                at 
org.apache.spark.api.python.PythonRDD$$anon$1.read(PythonRDD.scala:137)
                at 
org.apache.spark.api.python.PythonRDD$$anon$1.<init>(PythonRDD.scala:178)
                at 
org.apache.spark.api.python.PythonRDD.compute(PythonRDD.scala:96)
                at 
org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:277)
                at org.apache.spark.rdd.RDD.iterator(RDD.scala:244)
                at 
org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:61)
                at org.apache.spark.scheduler.Task.run(Task.scala:64)
                at 
org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:212)
                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)
    
        Driver stacktrace:
                at 
org.apache.spark.scheduler.DAGScheduler.org$apache$spark$scheduler$DAGScheduler$$failJobAndIndependentStages(DAGScheduler.scala:1211)
                at 
org.apache.spark.scheduler.DAGScheduler$$anonfun$abortStage$1.apply(DAGScheduler.scala:1200)
                at 
org.apache.spark.scheduler.DAGScheduler$$anonfun$abortStage$1.apply(DAGScheduler.scala:1199)
                at 
scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
                at 
scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)
                at 
org.apache.spark.scheduler.DAGScheduler.abortStage(DAGScheduler.scala:1199)
                at 
org.apache.spark.scheduler.DAGScheduler$$anonfun$handleTaskSetFailed$1.apply(DAGScheduler.scala:693)
                at 
org.apache.spark.scheduler.DAGScheduler$$anonfun$handleTaskSetFailed$1.apply(DAGScheduler.scala:693)
                at scala.Option.foreach(Option.scala:236)
                at 
org.apache.spark.scheduler.DAGScheduler.handleTaskSetFailed(DAGScheduler.scala:693)
                at 
org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1399)
                at 
org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1360)
                at 
org.apache.spark.util.EventLoop$$anon$1.run(EventLoop.scala:48)
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to