<?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: Failed to start Hadoop namenode. Return value: 1 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-Hadoop-namenode-Return-value-1/m-p/24109#M4738</link>
    <description>&lt;P&gt;Thanks Gautham for your&amp;nbsp;valuable comments&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jan 2015 06:08:19 GMT</pubDate>
    <dc:creator>AMRath</dc:creator>
    <dc:date>2015-01-27T06:08:19Z</dc:date>
    <item>
      <title>Failed to start Hadoop namenode. Return value: 1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-Hadoop-namenode-Return-value-1/m-p/23999#M4731</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not able to start namenode. Am I missing anything in the config file setting &amp;nbsp;?&lt;/P&gt;&lt;P&gt;or any port issue ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;service hadoop-hdfs-namenode start&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;starting namenode, logging to /var/log/hadoop-hdfs/hadoop-hdfs-namenode-nn-node-01.out&lt;BR /&gt;Failed to start Hadoop namenode. Return value: 1 [FAILED&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cat /var/log/hadoop-hdfs/hadoop-hdfs-namenode-nn-node-01.out&lt;BR /&gt;ulimit -a for user hdfs&lt;BR /&gt;core file size (blocks, -c) 0&lt;BR /&gt;data seg size (kbytes, -d) unlimited&lt;BR /&gt;scheduling priority (-e) 0&lt;BR /&gt;file size (blocks, -f) unlimited&lt;BR /&gt;pending signals (-i) 256725&lt;BR /&gt;max locked memory (kbytes, -l) 64&lt;BR /&gt;max memory size (kbytes, -m) unlimited&lt;BR /&gt;open files (-n) 32768&lt;BR /&gt;pipe size (512 bytes, -p) 8&lt;BR /&gt;POSIX message queues (bytes, -q) 819200&lt;BR /&gt;real-time priority (-r) 0&lt;BR /&gt;stack size (kbytes, -s) 10240&lt;BR /&gt;cpu time (seconds, -t) unlimited&lt;BR /&gt;max user processes (-u) 65536&lt;BR /&gt;virtual memory (kbytes, -v) unlimited&lt;BR /&gt;file locks (-x) unlimited&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rath&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:20:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-Hadoop-namenode-Return-value-1/m-p/23999#M4731</guid>
      <dc:creator>AMRath</dc:creator>
      <dc:date>2022-09-16T09:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to start Hadoop namenode. Return value: 1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-Hadoop-namenode-Return-value-1/m-p/24003#M4732</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to start the Namendoe . The issue was with permission for&amp;nbsp;dfs.namenode.name.dir folder ( mentined in hdfs-site.xml ). I started the namenode as root user. I gave chmod 777 to that particular folder and it started working fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I am facing the same issue while starting datanode ... Any thought on this ???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rath&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2015 16:34:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-Hadoop-namenode-Return-value-1/m-p/24003#M4732</guid>
      <dc:creator>AMRath</dc:creator>
      <dc:date>2015-01-23T16:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to start Hadoop namenode. Return value: 1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-Hadoop-namenode-Return-value-1/m-p/24040#M4733</link>
      <description>The first place to check for startup failure would be the datanode logs.&lt;BR /&gt;There should be one or more exceptions logged before the shutdown&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 25 Jan 2015 11:26:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-Hadoop-namenode-Return-value-1/m-p/24040#M4733</guid>
      <dc:creator>GautamG</dc:creator>
      <dc:date>2015-01-25T11:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to start Hadoop namenode. Return value: 1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-Hadoop-namenode-Return-value-1/m-p/24045#M4734</link>
      <description>&lt;P&gt;Hi Gautham ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking into the below log file and details are below. I am not able to figure why its happening from the logs. I installed hadoop ( name node and datanode as root user and starting the daemons from root user , Is there any issue in that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log details&lt;/P&gt;&lt;P&gt;&amp;nbsp;cat /var/log/hadoop-hdfs/hadoop-hdfs-datanode-data-node-01.out&lt;/P&gt;&lt;P&gt;cat: cat: No such file or directory&lt;BR /&gt;ulimit -a for user hdfs&lt;BR /&gt;core file size (blocks, -c) 0&lt;BR /&gt;data seg size (kbytes, -d) unlimited&lt;BR /&gt;scheduling priority (-e) 0&lt;BR /&gt;file size (blocks, -f) unlimited&lt;BR /&gt;pending signals (-i) 256725&lt;BR /&gt;max locked memory (kbytes, -l) 64&lt;BR /&gt;max memory size (kbytes, -m) unlimited&lt;BR /&gt;open files (-n) 32768&lt;BR /&gt;pipe size (512 bytes, -p) 8&lt;BR /&gt;POSIX message queues (bytes, -q) 819200&lt;BR /&gt;real-time priority (-r) 0&lt;BR /&gt;stack size (kbytes, -s) 10240&lt;BR /&gt;cpu time (seconds, -t) unlimited&lt;BR /&gt;max user processes (-u) 65536&lt;BR /&gt;virtual memory (kbytes, -v) unlimited&lt;BR /&gt;file locks (-x) unlimited&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rath&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2015 03:40:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-Hadoop-namenode-Return-value-1/m-p/24045#M4734</guid>
      <dc:creator>AMRath</dc:creator>
      <dc:date>2015-01-26T03:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to start Hadoop namenode. Return value: 1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-Hadoop-namenode-Return-value-1/m-p/24046#M4736</link>
      <description>&lt;P&gt;HI Gautham,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There was some issue logged in my log file&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Invalid dfs.datanode.data.dir /hdfs/data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and noticed that it was due to some permission issue for that folder.&lt;/P&gt;&lt;P&gt;( my&amp;nbsp;&lt;SPAN&gt;/hdfs/data directory owner was root , initally i gave all the complete permisson to that folder for all users and group which dindt work )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the below link I excueted the commands which I mentioned below and now its working fine. Thanks for all your support.&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://solaimurugan.blogspot.in/2013/10/hadoop-multi-node-cluster-configuration.html"&gt;http://solaimurugan.blogspot.in/2013/10/hadoop-multi-node-cluster-configuration.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sudo chown hdfs:hadoop -R /hdfs/data&lt;BR /&gt;sudo chmod 777 -R /hdfs/data&lt;BR /&gt;hadoop namenode -format&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rath&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2015 04:28:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-Hadoop-namenode-Return-value-1/m-p/24046#M4736</guid>
      <dc:creator>AMRath</dc:creator>
      <dc:date>2015-01-26T04:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to start Hadoop namenode. Return value: 1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-Hadoop-namenode-Return-value-1/m-p/24099#M4737</link>
      <description>Just FYI, setting permissions to 777 is never a good idea. Please modify&lt;BR /&gt;the user and group ownership of the dfs.name.dir directories to the right&lt;BR /&gt;ones (hdfs:hadoop) and set the right permissions (700). Within this, the&lt;BR /&gt;required directories will be auto-created with the right permissions&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Jan 2015 22:51:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-Hadoop-namenode-Return-value-1/m-p/24099#M4737</guid>
      <dc:creator>GautamG</dc:creator>
      <dc:date>2015-01-26T22:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to start Hadoop namenode. Return value: 1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-Hadoop-namenode-Return-value-1/m-p/24109#M4738</link>
      <description>&lt;P&gt;Thanks Gautham for your&amp;nbsp;valuable comments&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2015 06:08:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-Hadoop-namenode-Return-value-1/m-p/24109#M4738</guid>
      <dc:creator>AMRath</dc:creator>
      <dc:date>2015-01-27T06:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to start Hadoop namenode. Return value: 1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-Hadoop-namenode-Return-value-1/m-p/82224#M4739</link>
      <description>&lt;P&gt;Faced the same problem and even after giving the permissions required using chmod 777, it's not working. Datanode is running though.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Nov 2018 16:17:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-Hadoop-namenode-Return-value-1/m-p/82224#M4739</guid>
      <dc:creator>RSS</dc:creator>
      <dc:date>2018-11-11T16:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to start Hadoop namenode. Return value: 1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-Hadoop-namenode-Return-value-1/m-p/88399#M4740</link>
      <description>&lt;P&gt;Facing the same problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[root@hdp1 data]# systemctl status hadoop-hdfs-namenode&lt;BR /&gt;● hadoop-hdfs-namenode.service - LSB: Hadoop namenode&lt;BR /&gt;Loaded: loaded (/etc/rc.d/init.d/hadoop-hdfs-namenode; bad; vendor preset: disabled)&lt;BR /&gt;Active: failed (Result: exit-code) since Thu 2019-03-28 11:50:58 UTC; 3h 8min ago&lt;BR /&gt;Docs: man:systemd-sysv-generator(8)&lt;BR /&gt;Process: 3230 ExecStart=/etc/rc.d/init.d/hadoop-hdfs-namenode start (code=exited, status=1/FAILURE)&lt;/P&gt;&lt;P&gt;Mar 28 11:50:49 hdp1 systemd[1]: Starting LSB: Hadoop namenode...&lt;BR /&gt;Mar 28 11:50:49 hdp1 su[3235]: (to hdfs) root on none&lt;BR /&gt;Mar 28 11:50:49 hdp1 hadoop-hdfs-namenode[3230]: starting namenode, logging to /var/log/hadoop-hdfs/hadoop-hdfs-namenode-hdp1.out&lt;BR /&gt;Mar 28 11:50:58 hdp1 hadoop-hdfs-namenode[3230]: Failed to start Hadoop namenode. Return value: 1[FAILED]&lt;BR /&gt;Mar 28 11:50:58 hdp1 systemd[1]: hadoop-hdfs-namenode.service: control process exited, code=exited status=1&lt;BR /&gt;Mar 28 11:50:58 hdp1 systemd[1]: Failed to start LSB: Hadoop namenode.&lt;BR /&gt;Mar 28 11:50:58 hdp1 systemd[1]: Unit hadoop-hdfs-namenode.service entered failed state.&lt;BR /&gt;Mar 28 11:50:58 hdp1 systemd[1]: hadoop-hdfs-namenode.service failed.&lt;BR /&gt;[root@hdp1 data]# systemctl start hadoop-hdfs-namenode&lt;BR /&gt;Job for hadoop-hdfs-namenode.service failed because the control process exited with error code. See "systemctl status hadoop-hdfs-namenode.service" and "journalctl -xe" for details.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 15:17:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-Hadoop-namenode-Return-value-1/m-p/88399#M4740</guid>
      <dc:creator>swathi26</dc:creator>
      <dc:date>2019-03-28T15:17:49Z</dc:date>
    </item>
  </channel>
</rss>

