<?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: Datanode keeps stopping after I restart with Ambari in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanode-keeps-stopping-after-I-restart-with-Ambari/m-p/117108#M22254</link>
    <description>&lt;P&gt;Please check your datanode logs in the log directory you specified in ambari UI. Please post the logs here.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Mar 2016 06:38:33 GMT</pubDate>
    <dc:creator>aervits</dc:creator>
    <dc:date>2016-03-09T06:38:33Z</dc:date>
    <item>
      <title>Datanode keeps stopping after I restart with Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanode-keeps-stopping-after-I-restart-with-Ambari/m-p/117106#M22252</link>
      <description>&lt;P&gt;Single datanode was working fine with Ambari 2.2.0.0, HDP2.3 on top of Centos 7. &lt;/P&gt;&lt;P&gt;Added a 2nd Worker Node...Nodemanager &amp;amp; Metrics Monitor are started. However Datanode/HDFS is stopped....I restart it &amp;amp; it starts without any error but quickly "stops". The stderr has no entries.&lt;/P&gt;&lt;P&gt;I have checked all of the obvious including ntp, iptables . I have stopped &amp;amp; restarted the cluster.&lt;/P&gt;&lt;P&gt; I'd appreciate any help to debug this issues. Thanks in advance, Vince&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 03:26:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanode-keeps-stopping-after-I-restart-with-Ambari/m-p/117106#M22252</guid>
      <dc:creator>vincent_mcgarry</dc:creator>
      <dc:date>2016-03-09T03:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Datanode keeps stopping after I restart with Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanode-keeps-stopping-after-I-restart-with-Ambari/m-p/117107#M22253</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/3246/vincentmcgarry.html"&gt;Vincent McGarry&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Solution 1 &lt;/P&gt;&lt;P&gt;1. Please check that the daemons have write privileges to the log directory &lt;/P&gt;&lt;P&gt;Stop and start namenode and datanode daemons in debug mode, &lt;/P&gt;&lt;P&gt;following command can be used. &lt;/P&gt;&lt;P&gt;Solution 2 &lt;/P&gt;&lt;P&gt;You need to do something like this: &lt;/P&gt;&lt;PRE&gt;bin/stop-all.sh (or stop-dfs.sh and stop-yarn.sh in the 2.x serie) &lt;/PRE&gt;&lt;PRE&gt;rm -Rf /app/tmp/hadoop-your-username/* &lt;/PRE&gt;&lt;PRE&gt;bin/hadoop namenode -format (or hdfs in the 2.x serie) &lt;/PRE&gt;&lt;P&gt;Solution 3 &lt;/P&gt;&lt;PRE&gt;/usr/local/hadoop/sbin/hadoop-daemon.sh stop namenode ; hadoop namenode &lt;/PRE&gt;&lt;P&gt;
On datanode host, Execute the following command &lt;/P&gt;&lt;PRE&gt; /usr/local/hadoop/sbin/hadoop-daemon.sh stop datanode ; hadoop datanode &lt;/PRE&gt;&lt;P&gt;Check the logs messages from both daemons.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 03:51:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanode-keeps-stopping-after-I-restart-with-Ambari/m-p/117107#M22253</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2016-03-09T03:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Datanode keeps stopping after I restart with Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanode-keeps-stopping-after-I-restart-with-Ambari/m-p/117108#M22254</link>
      <description>&lt;P&gt;Please check your datanode logs in the log directory you specified in ambari UI. Please post the logs here.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 06:38:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanode-keeps-stopping-after-I-restart-with-Ambari/m-p/117108#M22254</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-03-09T06:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Datanode keeps stopping after I restart with Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanode-keeps-stopping-after-I-restart-with-Ambari/m-p/117109#M22255</link>
      <description>&lt;P&gt;
	Hi Geoffrey - thanks for your suggestions but it wasn't the cause of my issue. &lt;/P&gt;&lt;P&gt;
	&lt;STRONG&gt;I fixed my issue by doing the following:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;
for i in
  {1..12} ; do
echo $i &lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;
	cd /grid/$i/hadoop/hdfs/data &lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;
	&lt;STRONG&gt;rm -rf current&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;
	 done&lt;/P&gt;&lt;P&gt;My problem was that the 12 drives in the DataNode must have had old hdfs data so I deleted it with above script. After that everything worked ok! So lesson learned is that I will ensure the /grid structure is clean before adding any nodes! Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 09:23:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanode-keeps-stopping-after-I-restart-with-Ambari/m-p/117109#M22255</guid>
      <dc:creator>vincent_mcgarry</dc:creator>
      <dc:date>2016-03-09T09:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Datanode keeps stopping after I restart with Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanode-keeps-stopping-after-I-restart-with-Ambari/m-p/117110#M22256</link>
      <description>&lt;P&gt;Hi Artem...thanks for your help but I have been able to fix &amp;amp; posted the solution below (had to clean up the hdfs directories).&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 09:48:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanode-keeps-stopping-after-I-restart-with-Ambari/m-p/117110#M22256</guid>
      <dc:creator>vincent_mcgarry</dc:creator>
      <dc:date>2016-03-09T09:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Datanode keeps stopping after I restart with Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanode-keeps-stopping-after-I-restart-with-Ambari/m-p/117111#M22257</link>
      <description>&lt;P&gt;np, glad you got it resolved!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 09:51:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanode-keeps-stopping-after-I-restart-with-Ambari/m-p/117111#M22257</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-03-09T09:51:31Z</dc:date>
    </item>
  </channel>
</rss>

