如何更改数据块中 shellscript 的权限
How to change permission of shellscript in databricks
我在 DBFS 中有一个 shell 脚本。当我执行它时,它给出了权限错误 13.
我尝试使用“chmod 755 name.sh
”更改权限。但是,实际上并没有发生任何变化。
有人可以帮忙吗?
尝试过的代码:
%cd /dbfs/FileStore/tables/
%sh chmod 775 wrapper.sh
%sh chmod +x wrapper.sh
%sh ls -ltr
-rw-r--r-- 1 root root 2819 Oct 28 12:01 wrapper.sh
遗憾的是,您无法更改位于数据块文件系统 (DBFS) 中的文件的权限。
我尝试了所有可能的方法来更改位于dbfs 中的文件权限,但最终没有成功。然后,我与产品团队核对了解决方案。他们已经确认,您不能更改位于 dbfs 中的任何文件的权限,并使用以下 cmdlet“bash /dbfs/script.sh
”询问 ro 运行 脚本。
希望对您有所帮助。
我在 DBFS 中有一个 shell 脚本。当我执行它时,它给出了权限错误 13.
我尝试使用“chmod 755 name.sh
”更改权限。但是,实际上并没有发生任何变化。
有人可以帮忙吗?
尝试过的代码:
%cd /dbfs/FileStore/tables/
%sh chmod 775 wrapper.sh
%sh chmod +x wrapper.sh
%sh ls -ltr
-rw-r--r-- 1 root root 2819 Oct 28 12:01 wrapper.sh
遗憾的是,您无法更改位于数据块文件系统 (DBFS) 中的文件的权限。
我尝试了所有可能的方法来更改位于dbfs 中的文件权限,但最终没有成功。然后,我与产品团队核对了解决方案。他们已经确认,您不能更改位于 dbfs 中的任何文件的权限,并使用以下 cmdlet“bash /dbfs/script.sh
”询问 ro 运行 脚本。
希望对您有所帮助。