<?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: data node cant start because the root user in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/data-node-cant-start-because-the-root-user/m-p/174822#M37929</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12400/panbclc.html" nodeid="12400"&gt;@pan bocun&lt;/A&gt; check if you have correct permissions and ownership to this directory : /mnt&lt;/P&gt;&lt;P&gt;hdfs:hadoop ownership and 755 permissions.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2016 17:25:39 GMT</pubDate>
    <dc:creator>sandyy006</dc:creator>
    <dc:date>2016-08-16T17:25:39Z</dc:date>
    <item>
      <title>data node cant start because the root user</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/data-node-cant-start-because-the-root-user/m-p/174820#M37927</link>
      <description>&lt;P&gt;hi,everyone:&lt;/P&gt;&lt;P&gt; my data store azure storage,but azure data user is root. cant change hdfs. this cause my datanode cant start。&lt;/P&gt;&lt;P&gt;  Have other method Resolve this confilcts？&lt;/P&gt;&lt;P&gt;the error is：&lt;/P&gt;&lt;P&gt; 2016-08-16 02:13:05,270 INFO  datanode.DataNode (LogAdapter.java:info(47)) - registered UNIX signal handlers for [TERM, HUP, INT]
2016-08-16 02:13:07,256 WARN  datanode.DataNode (DataNode.java:checkStorageLocations(2439)) - Invalid dfs.datanode.data.dir /mnt/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:2394)
at org.apache.hadoop.hdfs.server.datanode.DataNode.checkStorageLocations(DataNode.java:2436)
at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:2418)
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-08-16 02:13:07,267 ERROR datanode.DataNode (DataNode.java:secureMain(2545)) - Exception in secureMain
java.io.IOException: All directories in dfs.datanode.data.dir are invalid: "/mnt/data/" 
at org.apache.hadoop.hdfs.server.datanode.DataNode.checkStorageLocations(DataNode.java:2445)
at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:2418)
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-08-16 02:13:07,269 INFO  util.ExitUtil (ExitUtil.java:terminate(124)) - Exiting with status 1
2016-08-16 02:13:07,278 INFO  datanode.DataNode (LogAdapter.java:info(47)) - SHUTDOWN_MSG: &lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 10:03:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/data-node-cant-start-because-the-root-user/m-p/174820#M37927</guid>
      <dc:creator>panbclc</dc:creator>
      <dc:date>2016-08-16T10:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: data node cant start because the root user</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/data-node-cant-start-because-the-root-user/m-p/174821#M37928</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/12400/panbclc.html" nodeid="12400"&gt;@pan bocun&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Error looks like: dfs.datanode.data.dir are invalid: "/mnt/data/" at org.apache.hadoop.hdfs.server.datanode.DataNode.checkStorageLocations(DataNode.java:2445)..&lt;/P&gt;&lt;P&gt;Can you please give the valid entry dfs.datanode.data.dir property in HDFS config(hdfs-site.xml)&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 16:23:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/data-node-cant-start-because-the-root-user/m-p/174821#M37928</guid>
      <dc:creator>subhash_parise3</dc:creator>
      <dc:date>2016-08-16T16:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: data node cant start because the root user</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/data-node-cant-start-because-the-root-user/m-p/174822#M37929</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12400/panbclc.html" nodeid="12400"&gt;@pan bocun&lt;/A&gt; check if you have correct permissions and ownership to this directory : /mnt&lt;/P&gt;&lt;P&gt;hdfs:hadoop ownership and 755 permissions.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 17:25:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/data-node-cant-start-because-the-root-user/m-p/174822#M37929</guid>
      <dc:creator>sandyy006</dc:creator>
      <dc:date>2016-08-16T17:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: data node cant start because the root user</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/data-node-cant-start-because-the-root-user/m-p/174823#M37930</link>
      <description>&lt;P&gt;thanks,InAmbari the data node  dri permission  default is775,but  my folder is 777&lt;/P&gt;&lt;P&gt;so i change 775 to 777 use ambari&lt;/P&gt;&lt;P&gt;my problem solved&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 19:50:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/data-node-cant-start-because-the-root-user/m-p/174823#M37930</guid>
      <dc:creator>panbclc</dc:creator>
      <dc:date>2016-08-16T19:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: data node cant start because the root user</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/data-node-cant-start-because-the-root-user/m-p/174824#M37931</link>
      <description>&lt;P&gt;This link might be helpful &lt;A href="https://community.hortonworks.com/questions/1635/instructions-to-setup-wasb-as-storage-for-hdp-on-a.html" target="_blank"&gt;https://community.hortonworks.com/questions/1635/instructions-to-setup-wasb-as-storage-for-hdp-on-a.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;seems the below properties need to be verified on the data node which is failing:&lt;/P&gt;&lt;P&gt;The following is a list of configurations that should be modified to configure WASB:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;fs.defaultFS&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;wasb://&amp;lt;containername&amp;gt;@&amp;lt;accountname&amp;gt;.blob.core.windows.net&lt;/LI&gt;&lt;/OL&gt;&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;fs.AbstractFileSystem.wasb.impl&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;org.apache.hadoop.fs.azure.Wasb&lt;/LI&gt;&lt;/OL&gt;&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;fs.azure.account.key. . &lt;A href="http://blob.core.windows.net/"&gt;blob.core.windows.net&lt;/A&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;&amp;lt;storage_access_key&amp;gt;&lt;/LI&gt;&lt;/OL&gt;&lt;UL&gt;
&lt;LI&gt;Even though WASB will be set as the fs.defaultFS, you still need to define DataNode directories for HDFS. As the intent here is to use WASB as the primary FS, you can set the HDFS datanode directories to the temporary &lt;EM&gt;/mnt/resource &lt;/EM&gt;mount point that is provided with Azure compute servers if you only plan to use HDFS for temporary job files. &lt;EM&gt;DataNode Directories&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;/mnt/resource/Hadoop/hdfs/data&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 17 Aug 2016 21:49:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/data-node-cant-start-because-the-root-user/m-p/174824#M37931</guid>
      <dc:creator>shiremath</dc:creator>
      <dc:date>2016-08-17T21:49:50Z</dc:date>
    </item>
  </channel>
</rss>

