Datanode无法在安全集群上启动

时间:2018-06-05 04:28:07

标签: hadoop hdfs cloudera-cdh hdfstore

我正在尝试在hadoop集群上启动一个datanode并且它没有启动。我得到以下异常(顺便说一句,我确实在日志中看到keytab文件成功登录到kerberos)。但是DN拒绝在那之后开始

Java.lang.RuntimeException: Cannot start secure DataNode without configuring either privileged resources or SASL RPC data transfer protection and SSL for HTTP.  Using privileged resources in combination with SASL RPC data transfer protection is not supported.
        at org.apache.hadoop.hdfs.server.datanode.DataNode.checkSecureConfig(DataNode.java:1370)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:1270)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.<init>(DataNode.java:464)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:2582)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:2469)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:2516)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:2698)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:2722)
2018-06-04 21:23:47,510 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1
2018-06-04 21:23:47,519 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: SHUTDOWN_MSG:

我确保跟随存在

在我的core-site.xml上,我有

<property>
  <name>hadoop.rpc.protection</name>
  <value>privacy</value>
</property>

在hdfs-site.xml中,我有

<property>
  <name>dfs.encrypt.data.transfer</name>
  <value>true</value>
</property>

0 个答案:

没有答案