<?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: hdfs service check fails in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/hdfs-service-check-fails/m-p/268299#M206071</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/65596"&gt;@kwabstian53&lt;/a&gt;&lt;/P&gt;&lt;P&gt;As we see that the HDFS check is failing while making the webhdfs call because it is not able to find the resource which it is trying to list on HDFS.&lt;/P&gt;&lt;LI-CODE lang="java"&gt;java.io.IOException: xxxx-master-01:50070: Unexpected HTTP response: code=404 != 200, op=GETFILESTATUS, message=Not Found
       at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.validateResponse(WebHdfsFileSystem.java:499)
       at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.access$200(WebHdfsFileSystem.java:135)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in order to isolate the issue we will need to do the following:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;1. Please let us know when exactly the HDFS service check is failing? Is it failing when you are trying to access any specific Ambari view? We may enable DEBUG logging for tta view to get the exact resource path to find out why it is not existing?&lt;/P&gt;&lt;P&gt;2. If you are just running a HDFS Service check from ambari UI as &lt;EM&gt;&lt;STRONG&gt;Ambari UI --&amp;gt; HDFS --&amp;gt; Service actions --&amp;gt; 'Run Service Check'&lt;/STRONG&gt;&lt;/EM&gt; then in that case we know that it tries to list files from the HDFS tmp directory as 'hdfs' user so we can try testing it manually to see if the HDFS directory has any issue ?&lt;/P&gt;&lt;LI-CODE lang="java"&gt;# curl -iLv -X GET "http://xxxx-master-01:50070/webhdfs/v1/tmp?op=GETFILESTATUS&amp;amp;user.name=hdfs"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share the complete output of the above command ?&amp;nbsp; Please replace the&amp;nbsp; "xxxx-master-01:50070" with your actual Active NameNode Host &amp;amp; Port.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2019 01:42:26 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2019-08-20T01:42:26Z</dc:date>
  </channel>
</rss>

