https://pantsbuild.org/ logo
#general
Title
# general
d

dazzling-crayon-98253

02/10/2017, 5:31 PM
hi all, running into an issue with pex. I have a python script that is used as a reducer script in hive and the whole setup works nicely. Now, I am instead packaging the python file as a pex, and the same script now throws:
Copy code
Traceback (most recent call last):
  File ".bootstrap/_pex/pex.py", line 321, in execute
  File ".bootstrap/_pex/pex.py", line 78, in _activate
  File ".bootstrap/_pex/environment.py", line 135, in activate
  File ".bootstrap/_pex/environment.py", line 179, in _activate
  File ".bootstrap/_pex/environment.py", line 124, in update_candidate_distributions
  File ".bootstrap/_pex/environment.py", line 110, in load_internal_cache
  File ".bootstrap/_pex/environment.py", line 97, in write_zipped_internal_cache
  File ".bootstrap/_pex/util.py", line 176, in cache_distribution
  File ".bootstrap/_pex/common.py", line 124, in safe_open
  File ".bootstrap/_pex/common.py", line 112, in safe_mkdir
  File "/usr/lib64/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib64/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib64/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib64/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib64/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/home/.pex'
org.apache.hadoop.hive.ql.metadata.HiveException: [Error 20003]: An error occurred when trying to close the Operator running your custom script.