Github user zjffdu commented on the issue:

    https://github.com/apache/spark/pull/13541
  
    It's weird that I can pass the python test in local, but fails on github 
jenkins. And the error message not clear to me. @davies  Could you help take a 
look at it ? Thanks. Here's the output from jenkins.
    
    ```
    Running PySpark tests
    ========================================================================
    Running PySpark tests. Output is in 
/home/jenkins/workspace/SparkPullRequestBuilder@2/python/unit-tests.log
    Will test against the following Python executables: ['python2.6', 
'python3.4', 'pypy']
    Will test the following Python modules: ['pyspark-sql', 'pyspark-mllib', 
'pyspark-ml']
    
/home/jenkins/workspace/SparkPullRequestBuilder@2/python/pyspark/sql/context.py:457:
 DeprecationWarning: HiveContext is deprecated in Spark 2.0.0. Please use 
SparkSession.builder.enableHiveSupport().getOrCreate() instead.
      DeprecationWarning)
    
    Running tests...
    ----------------------------------------------------------------------
    ...Using Spark's default log4j profile: 
org/apache/spark/log4j-defaults.properties
    Setting default log level to "WARN".
    To adjust logging level use sc.setLogLevel(newLevel).
    Traceback (most recent call last):
      File "/usr/lib64/python2.6/runpy.py", line 122, in _run_module_as_main
        "__main__", fname, loader, pkg_name)
      File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code
        exec code in run_globals
      File 
"/home/jenkins/workspace/SparkPullRequestBuilder@2/python/pyspark/sql/tests.py",
 line 1725, in <module>
        
unittest.main(testRunner=xmlrunner.XMLTestRunner(output='target/test-reports'))
      File "/usr/lib/python2.6/site-packages/unittest2/main.py", line 88, in 
__init__
        self.runTests()
      File "/usr/lib/python2.6/site-packages/unittest2/main.py", line 237, in 
runTests
        self.result = testRunner.run(self.test)
      File "/usr/lib/python2.6/site-packages/xmlrunner/runner.py", line 59, in 
run
        test(result)
      File "/usr/lib/python2.6/site-packages/unittest2/suite.py", line 87, in 
__call__
        return self.run(*args, **kwds)
      File "/usr/lib/python2.6/site-packages/unittest2/suite.py", line 126, in 
run
        test(result)
      File "/usr/lib/python2.6/site-packages/unittest2/suite.py", line 87, in 
__call__
        return self.run(*args, **kwds)
      File "/usr/lib/python2.6/site-packages/unittest2/suite.py", line 118, in 
run
        self._handleClassSetUp(test, result)
      File "/usr/lib/python2.6/site-packages/unittest2/suite.py", line 173, in 
_handleClassSetUp
        self._addClassOrModuleLevelException(result, e, errorName)
      File "/usr/lib/python2.6/site-packages/unittest2/suite.py", line 215, in 
_addClassOrModuleLevelException
        result.addError(error, sys.exc_info())
      File "/usr/lib/python2.6/site-packages/xmlrunner/result.py", line 232, in 
addError
        self._save_output_data()
      File "/usr/lib/python2.6/site-packages/xmlrunner/result.py", line 189, in 
_save_output_data
        self._stdout_data = sys.stdout.getvalue()
    AttributeError: 'file' object has no attribute 'getvalue'
    
    Had test failures in pyspark.sql.tests with python2.6; see logs.
    [error] running 
/home/jenkins/workspace/SparkPullRequestBuilder@2/python/run-tests 
--modules=pyspark-sql,pyspark-mllib,pyspark-ml --parallelism=4 ; received 
return code 255
    Attempting to post to Github...
     > Post successful.
    Build step 'Execute shell' marked build as failure
    ```


---
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