在Python UDF中写入外部文件权限被拒绝

时间:2018-10-17 08:26:32

标签: python

我正在使用Hive和python udf。我在蜂巢脚本中添加了python udf文件a.py和空文件t.txt,如下所示:

add file a.py;
add file t.txt;

a.pyt.txt与配置单元脚本位于同一目录中。

但是在t.txt中写a.py时是这样的:

with open('./t.txt', 'w') as f:
    ...

我收到错误IOError: [Errno 13] Permission denied: './t.txt'。我曾尝试chmod 777 t.txt,但仍然无法正常工作。有人知道为什么吗?

0 个答案:

没有答案
相关问题