amaterasu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ya...@apache.org
Subject [incubator-amaterasu] branch version-0.2.0-incubating-rc3 updated: fixed pyspark stest
Date Tue, 15 May 2018 02:47:41 GMT
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 <roadan@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.

Mime
View raw message