Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/multithreading/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ubuntu Hadoop命令权限_Ubuntu_Hadoop_Permissions_Root_Delete File - Fatal编程技术网

Ubuntu Hadoop命令权限

Ubuntu Hadoop命令权限,ubuntu,hadoop,permissions,root,delete-file,Ubuntu,Hadoop,Permissions,Root,Delete File,我的hdfs user/$user\u NAME文件夹中有一个名为example.txt的文件。我只想使用hadoop fs命令删除它。因此: hadoop fs -rm example.txt 然而,当我运行这个程序时,我得到了AccessControlException。现在,如果我在root模式下运行它,它只在/user/example.txt上运行。但是我希望它在/user/$user\u NAME/example.txt上运行。关于如何回避这个问题的任何想法。欢迎所有建议…使用下面的

我的hdfs user/$user\u NAME文件夹中有一个名为example.txt的文件。我只想使用hadoop fs命令删除它。因此:

hadoop fs -rm example.txt
然而,当我运行这个程序时,我得到了AccessControlException。现在,如果我在root模式下运行它,它只在/user/example.txt上运行。但是我希望它在/user/$user\u NAME/example.txt上运行。关于如何回避这个问题的任何想法。欢迎所有建议…

使用下面的命令

hadoop dfs -rmr example.txt

这不是不赞成吗?
   hadoop fs -rm $USER_NAME/example.txt