You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@amaterasu.apache.org by ya...@apache.org on 2018/05/15 02:47:41 UTC

[incubator-amaterasu] branch version-0.2.0-incubating-rc3 updated: fixed pyspark stest

This is an automated email from the ASF dual-hosted git repository.

yaniv pushed a commit to branch version-0.2.0-incubating-rc3
in repository https://gitbox.apache.org/repos/asf/incubator-amaterasu.git


The following commit(s) were added to refs/heads/version-0.2.0-incubating-rc3 by this push:
     new 318c212  fixed pyspark stest
318c212 is described below

commit 318c212074ea90f3e42288614a546f388eee550f
Author: Yaniv Rodenski <ro...@gmail.com>
AuthorDate: Tue May 15 12:47:27 2018 +1000

    fixed pyspark stest
---
 executor/src/test/resources/spark_intp.py | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/executor/src/test/resources/spark_intp.py b/executor/src/test/resources/spark_intp.py
index 0faae2b..a427e92 100755
--- a/executor/src/test/resources/spark_intp.py
+++ b/executor/src/test/resources/spark_intp.py
@@ -23,14 +23,14 @@ import sys
 import zipimport
 from runtime import AmaContext, Environment
 
-# os.chdir(os.getcwd() + '/build/resources/test/')
-# import zipfile
-# zip = zipfile.ZipFile('pyspark.zip')
-# zip.extractall()
-# zip = zipfile.ZipFile('py4j-0.10.4-src.zip', 'r')
-# zip.extractall()
-# sys.path.insert(1, os.getcwd() + '/executor/src/test/resources/pyspark')
-# sys.path.insert(1, os.getcwd() + '/executor/src/test/resources/py4j')
+os.chdir(os.getcwd() + '/build/resources/test/')
+import zipfile
+zip = zipfile.ZipFile('pyspark.zip')
+zip.extractall()
+zip = zipfile.ZipFile('py4j-0.10.4-src.zip', 'r')
+zip.extractall()
+sys.path.insert(1, os.getcwd() + '/executor/src/test/resources/pyspark')
+sys.path.insert(1, os.getcwd() + '/executor/src/test/resources/py4j')
 
 # py4j_path = 'spark-2.2.1-bin-hadoop2.7/python/lib/py4j-0.10.4-src.zip'
 # py4j_importer = zipimport.zipimporter(py4j_path)

-- 
To stop receiving notification emails like this one, please contact
yaniv@apache.org.