2017-03-14 72 views
0

我已授予/app/hadoop/tmp/dfs/data的許可權。Kerberos驗證後,Datanode未在Hadoop中啓動

WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Invalid dfs.datanode.data.dir /app/hadoop/tmp/dfs/data : 
EPERM: Operation not permitted 
    at org.apache.hadoop.io.nativeio.NativeIO$POSIX.chmodImpl(Native Method) 
    at org.apache.hadoop.io.nativeio.NativeIO$POSIX.chmod(NativeIO.java:230) 
    at org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:727) 
    at org.apache.hadoop.fs.FilterFileSystem.setPermission(FilterFileSystem.java:502) 
    at org.apache.hadoop.util.DiskChecker.mkdirsWithExistsAndPermissionCheck(DiskChecker.java:140) 
    at org.apache.hadoop.util.DiskChecker.checkDir(DiskChecker.java:156) 
    at org.apache.hadoop.hdfs.server.datanode.DataNode$DataNodeDiskChecker.checkDir(DataNode.java:2341) 
    at org.apache.hadoop.hdfs.server.datanode.DataNode.checkStorageLocations(DataNode.java:2383) 
    at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:2365) 
    at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:2257) 
    at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:2304) 
    at org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:2481) 
    at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:2505) 
2017-03-14 20:10:51,169 FATAL org.apache.hadoop.hdfs.server.datanode.DataNode: Exception in secureMain 
java.io.IOException: All directories in dfs.datanode.data.dir are invalid: "/app/hadoop/tmp/dfs/data/" 
    at org.apache.hadoop.hdfs.server.datanode.DataNode.checkStorageLocations(DataNode.java:2392) 
    at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:2365) 
    at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:2257) 
    at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:2304) 
    at org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:2481) 
    at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:2505) 
2017-03-14 20:10:51,172 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1 
2017-03-14 20:10:51,174 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: SHUTDOWN_MSG: 
/************************************************************ 

回答

1

是否在本地文件系統上目錄的所有者匹配,現在數據管理部使用Kerberos主體的服務?所以如果它是hdfs /,那麼目錄(以及它下面的所有目錄)應該由hdfs擁有。

相關問題