Hadoop常见错误
1:org.apache.Hadoop.security.AccessControlException: org.apache.hadoop.security.AccessControlException:
Can't continue with getBlockLocalPathInfo() authorization. The user admin is not allowed to call getBlockLocalPathInfo
vi conf/hdfs-site.xml
<configuration>
//ClientDatanodeProtocol 调用getBlockLocalPathInfo的时候会抛出
//org.apache.hadoop.security.AccessControlException: org.apache.hadoop.security.AccessControlException:
<property>
<name>dfs.block.local-path-access.user</name>
<value>lv</value>
</property>
2:org.apache.hadoop.ipc.RemoteException: java.io.IOException: java.lang.NullPointerException
如果要传递path为字符串,不应该包含hdfs://namenode前缀