我在hadoop文件系统中创建了一些文件。以下是文件列表:
drwxr-xr-x - hdfs hdfs 0 2016-08-16 15:49 /PSG/VideoVault
drwxr-xr-x - hdfs hdfs 0 2017-02-16 16:39 /PSG/VideoVault/VideoStorage
drwxr-xr-x - hdfs hdfs 0 2016-10-20 16:19 /PSG/VideoVault/VideoStorage/VICADS-0
drwxr-xr-x - hdfs hdfs 0 2017-02-16 16:54 /PSG/VideoVault/VideoStorage/VICADS-0/155
drwxr-xr-x - hdfs hdfs 0 2017-03-13 14:14 /PSG/VideoVault/VideoStorage/VICADS-1
drwxr-xr-x - hdfs hdfs 0 2017-03-14 09:48 /PSG/VideoVault/VideoStorage/VICADS-1/101
-rw-r--r-- 2 hdfs hdfs 1648728 2017-03-13 17:03 /PSG/VideoVault/VideoStorage/VICADS-1/101/20170313.idx
-rw-r--r-- 2 hdfs hdfs 5765865482 2017-03-13 17:03 /PSG/VideoVault/VideoStorage/VICADS-1/101/20170313.img
-rw-r--r-- 2 hdfs hdfs 1342200 2017-03-14 15:20 /PSG/VideoVault/VideoStorage/VICADS-1/101/20170314.idx
-rw-r--r-- 2 hdfs hdfs 5060668142 2017-03-14 15:21 /PSG/VideoVault/VideoStorage/VICADS-1/101/20170314.img
然而,当我去删除文件时,我收到错误:
权限被拒绝:user = wildfly,access = WRITE, 索引节点= “/ PSG / VideoVault / VideoStorage / VICADS-1/101 / 20170313.idx”:HDFS:HDFS的。drwxr-XR-X
我已将HADOOP_USER_NAME
系统属性设置为hdfs
,并且文件是使用正确的用户创建的,但不知何故,当尝试删除时,它正在检查用户wildfly
而不是hdfs
。我有什么想法我做错了吗?
大卫