<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Cannot start secure DataNode in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-start-secure-DataNode/m-p/134867#M35042</link>
    <description>&lt;P&gt;Not working, followed same steps, Issue remains same&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2017 15:06:30 GMT</pubDate>
    <dc:creator>Upendra</dc:creator>
    <dc:date>2017-07-07T15:06:30Z</dc:date>
    <item>
      <title>Cannot start secure DataNode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-start-secure-DataNode/m-p/134864#M35039</link>
      <description>&lt;P&gt;I enabled Kerberos authentication for HDFS. NameNode and SNameNode are running and quering it through kerberos is OK.&lt;/P&gt;&lt;P&gt;The issue is for the DataNode, I have this error message&lt;/P&gt;&lt;PRE&gt;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:1217)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:1103)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.&amp;lt;init&amp;gt;(DataNode.java:432)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:2423)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:2310)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:2357)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:2538)
        at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:2562)
2016-07-19 03:03:24,433 INFO  util.ExitUtil (ExitUtil.java:terminate(124)) - Exiting with status 1
2016-07-19 03:03:24,434 INFO  datanode.DataNode (LogAdapter.java:info(47)) - SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down DataNode at datanode.domain.com/192.168.1.3
************************************************************
&lt;/PRE&gt;&lt;P&gt;This is my DataNode configuration (hdfs-site.xml)&lt;/P&gt;&lt;PRE&gt;&amp;lt;!-- DataNode security config --&amp;gt;
&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;dfs.datanode.keytab.file&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;/path/to/hdfs.keytab&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;

&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;dfs.datanode.kerberos.principal&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;hadoop/kerberos.domain.com@DOMAIN.COM&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;

&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;dfs.datanode.address&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;0.0.0.0:1004&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;

&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;dfs.datanode.http.address&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;0.0.0.0:1006&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;Following &lt;A href="https://community.hortonworks.com/questions/870/kerberos-implementation-datanodes-wont-start.html#"&gt;this answer&lt;/A&gt; I use an user called "ambari" with sudo for deploying HDP and Ambari Agent is running by root. Package JSVC is installed.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 13:16:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-start-secure-DataNode/m-p/134864#M35039</guid>
      <dc:creator>facundo</dc:creator>
      <dc:date>2016-07-19T13:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot start secure DataNode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-start-secure-DataNode/m-p/134865#M35040</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/11071/facundo.html" nodeid="11071"&gt;@Facundo Bianco&lt;/A&gt;&lt;P&gt;Did you upgrade your cluster recently? Can you please login to problematic datanode and check following?&lt;/P&gt;&lt;PRE&gt;ps aux|grep -i datanode&lt;/PRE&gt;&lt;P&gt;If you find any pid running the datanode process then kill it.&lt;/P&gt;&lt;PRE&gt;kill -9 &amp;lt;pid-of-datanode&amp;gt;&lt;/PRE&gt;&lt;P&gt;Try to start datanode with below command and let me know how it goes&lt;/P&gt;&lt;PRE&gt;/usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh start datanode &lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jul 2016 03:11:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-start-secure-DataNode/m-p/134865#M35040</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-07-20T03:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot start secure DataNode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-start-secure-DataNode/m-p/134866#M35041</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/11071/facundo.html" nodeid="11071"&gt;@Facundo Bianco&lt;/A&gt;, you are using a privileged port number (1004) for data transfer so you cannot enable SASL. Please check your hdfs-site.xml to ensure SASL is not enabled via &lt;EM&gt;dfs.data.transfer.protection.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The &lt;EM&gt;Secure DataNode&lt;/EM&gt; section from the Apache HDFS documentation describes this.&lt;/P&gt;&lt;P&gt;&lt;A href="https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-common/SecureMode.html#Secure_DataNode" target="_blank"&gt;https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-common/SecureMode.html#Secure_DataNode&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Since you are using HDP with Ambari, I recommend using the Ambari Kerberos Wizard especially if you are setting it up for the first time. At the very least it will provide you with a working reference configuration. The Ambari Kerberos Wizard is documented here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.2.0.0/bk_Ambari_Security_Guide/content/_running_the_kerberos_wizard.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.2.0.0/bk_Ambari_Security_Guide/content/_running_the_kerberos_wizard.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 06:33:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-start-secure-DataNode/m-p/134866#M35041</guid>
      <dc:creator>ArpitAgarwal</dc:creator>
      <dc:date>2016-08-02T06:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot start secure DataNode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-start-secure-DataNode/m-p/134867#M35042</link>
      <description>&lt;P&gt;Not working, followed same steps, Issue remains same&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 15:06:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-start-secure-DataNode/m-p/134867#M35042</guid>
      <dc:creator>Upendra</dc:creator>
      <dc:date>2017-07-07T15:06:30Z</dc:date>
    </item>
  </channel>
</rss>

