<?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 give syntax error: unexpected end of file and failes to start in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/DataNode-give-syntax-error-unexpected-end-of-file-and-failes/m-p/132739#M47688</link>
    <description>&lt;P&gt;I am suspecting that you might have an extra  (`)  back tick character in the beginning of that file.&lt;/P&gt;&lt;P&gt;I can reproduce the similar error at my end by intentionally editing the file and adding a `  (back tick at the very first line of this script)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;[hdfs@erie1 ~]$  /usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh --config /usr/hdp/current/hadoop-client/conf stop datanode

/usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh: line 195: unexpected EOF while looking for matching ``'

/usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh: line 221: syntax error: unexpected end of file
&lt;/PRE&gt;&lt;P&gt;Also which version of ambari  &amp;amp; hdp is it ?&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Dec 2016 15:03:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-12-01T15:03:12Z</dc:date>
    <item>
      <title>DataNode give syntax error: unexpected end of file and failes to start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/DataNode-give-syntax-error-unexpected-end-of-file-and-failes/m-p/132737#M47686</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/9994-datanode-failed.jpg"&gt;datanode-failed.jpg&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 14:51:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/DataNode-give-syntax-error-unexpected-end-of-file-and-failes/m-p/132737#M47686</guid>
      <dc:creator>sampath42</dc:creator>
      <dc:date>2016-12-01T14:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: DataNode give syntax error: unexpected end of file and failes to start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/DataNode-give-syntax-error-unexpected-end-of-file-and-failes/m-p/132738#M47687</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/14642/sampath42.html"&gt;Sampath Kumar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What happens when you try to start the Datanode manually from that host:&lt;/P&gt;&lt;PRE&gt;[root@erie1 ~]$  /var/lib/ambari-server/ambari-sudo.sh su hdfs -l -s /bin/bash -c 'ulimit -c unlimited'

[root@erie1 ~]$  su - hdfs 

[hdfs@erie1 ~]$  /usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh --config /usr/hdp/current/hadoop-client/conf start datanode &lt;/PRE&gt;&lt;P&gt;This will help in isolating the issue.&lt;/P&gt;&lt;P&gt;Just incase if you find the same kind of error there as well then please check the first few lines of the script on that host if it is correct.&lt;/P&gt;&lt;PRE&gt;/usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 14:59:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/DataNode-give-syntax-error-unexpected-end-of-file-and-failes/m-p/132738#M47687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-01T14:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: DataNode give syntax error: unexpected end of file and failes to start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/DataNode-give-syntax-error-unexpected-end-of-file-and-failes/m-p/132739#M47688</link>
      <description>&lt;P&gt;I am suspecting that you might have an extra  (`)  back tick character in the beginning of that file.&lt;/P&gt;&lt;P&gt;I can reproduce the similar error at my end by intentionally editing the file and adding a `  (back tick at the very first line of this script)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;[hdfs@erie1 ~]$  /usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh --config /usr/hdp/current/hadoop-client/conf stop datanode

/usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh: line 195: unexpected EOF while looking for matching ``'

/usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh: line 221: syntax error: unexpected end of file
&lt;/PRE&gt;&lt;P&gt;Also which version of ambari  &amp;amp; hdp is it ?&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 15:03:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/DataNode-give-syntax-error-unexpected-end-of-file-and-failes/m-p/132739#M47688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-01T15:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: DataNode give syntax error: unexpected end of file and failes to start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/DataNode-give-syntax-error-unexpected-end-of-file-and-failes/m-p/132740#M47689</link>
      <description>&lt;P&gt;@JSS&lt;/P&gt;&lt;P&gt;I didnt get any error with those 3 commands&lt;/P&gt;&lt;P&gt;below is the output I got when I ran the commands&lt;/P&gt;&lt;P&gt;starting datanode, logging to /var/log/hadoop/hdfs/hadoop-hdfs-datanode-ecsf00200104.out&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 15:23:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/DataNode-give-syntax-error-unexpected-end-of-file-and-failes/m-p/132740#M47689</guid>
      <dc:creator>sampath42</dc:creator>
      <dc:date>2016-12-01T15:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: DataNode give syntax error: unexpected end of file and failes to start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/DataNode-give-syntax-error-unexpected-end-of-file-and-failes/m-p/132741#M47690</link>
      <description>&lt;P&gt;Ambari 2.1.2 &lt;/P&gt;&lt;P&gt;HDP 2.3&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 17:26:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/DataNode-give-syntax-error-unexpected-end-of-file-and-failes/m-p/132741#M47690</guid>
      <dc:creator>sampath42</dc:creator>
      <dc:date>2016-12-01T17:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: DataNode give syntax error: unexpected end of file and failes to start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/DataNode-give-syntax-error-unexpected-end-of-file-and-failes/m-p/132742#M47691</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/3823/joysensharma.html" nodeid="3823"&gt;@jss&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It Worked...&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 18:36:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/DataNode-give-syntax-error-unexpected-end-of-file-and-failes/m-p/132742#M47691</guid>
      <dc:creator>sampath42</dc:creator>
      <dc:date>2016-12-01T18:36:10Z</dc:date>
    </item>
  </channel>
</rss>

