<?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: Ambari Files View - Service hdfs check failed in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Files-View-Service-hdfs-check-failed/m-p/177683#M75673</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14467/janebec.html" nodeid="14467"&gt;@Jane Becker&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In general the HDFS Service check needs to have the the PATH (user home directory) to be created in advance as following:&lt;/P&gt;&lt;P&gt;Suppose if the user who has logged in to FileView has the name as "testuser1" then you will need to create a directory in HDFS as following:&lt;/P&gt;&lt;PRE&gt;# su - hdfs -c "hdfs dfs -mkdir /user/testuser1"
# su - hdfs -c "hdfs dfs -chown -R testuser1:hadoop /user/testuser1"&lt;/PRE&gt;&lt;P&gt;. &lt;/P&gt;&lt;P&gt;Ambari also allows to auto create the users home directory as described in the following link with the help of &lt;EM&gt;&lt;STRONG&gt;"ambari.post.user.creation.hook&lt;/STRONG&gt;&lt;/EM&gt;"  : &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.1.5/bk_ambari-administration/content/create_user_home_directory.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.1.5/bk_ambari-administration/content/create_user_home_directory.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Mar 2018 05:19:10 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2018-03-12T05:19:10Z</dc:date>
    <item>
      <title>Ambari Files View - Service hdfs check failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Files-View-Service-hdfs-check-failed/m-p/177682#M75672</link>
      <description>&lt;P&gt;Ambari Files View indicates that service hdfs check failed&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/64568-screen-shot-2018-03-11-at-53312-pm.png"&gt;screen-shot-2018-03-11-at-53312-pm.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I can't bring Files View.&lt;/P&gt;&lt;P&gt;I go to Dashboard/HDFS and run a service check and nothing wrong is found. All blocks are fine: no corrupt, no missing. HDFS is not in safe mode. &lt;/P&gt;&lt;P&gt;I restarted all HDFS services, restarted Ambari, the problem does not go away.&lt;/P&gt;&lt;P&gt;I can access HDFS using CLI and everything is fine. The issue is that I have a few users that use that View.&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 04:38:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Files-View-Service-hdfs-check-failed/m-p/177682#M75672</guid>
      <dc:creator>janebec</dc:creator>
      <dc:date>2018-03-12T04:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Files View - Service hdfs check failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Files-View-Service-hdfs-check-failed/m-p/177683#M75673</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14467/janebec.html" nodeid="14467"&gt;@Jane Becker&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In general the HDFS Service check needs to have the the PATH (user home directory) to be created in advance as following:&lt;/P&gt;&lt;P&gt;Suppose if the user who has logged in to FileView has the name as "testuser1" then you will need to create a directory in HDFS as following:&lt;/P&gt;&lt;PRE&gt;# su - hdfs -c "hdfs dfs -mkdir /user/testuser1"
# su - hdfs -c "hdfs dfs -chown -R testuser1:hadoop /user/testuser1"&lt;/PRE&gt;&lt;P&gt;. &lt;/P&gt;&lt;P&gt;Ambari also allows to auto create the users home directory as described in the following link with the help of &lt;EM&gt;&lt;STRONG&gt;"ambari.post.user.creation.hook&lt;/STRONG&gt;&lt;/EM&gt;"  : &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.1.5/bk_ambari-administration/content/create_user_home_directory.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.1.5/bk_ambari-administration/content/create_user_home_directory.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 05:19:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Files-View-Service-hdfs-check-failed/m-p/177683#M75673</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-03-12T05:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Files View - Service hdfs check failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Files-View-Service-hdfs-check-failed/m-p/177684#M75674</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14467/janebec.html" nodeid="14467"&gt;@Jane Becker&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/3486/cstanca.html" nodeid="3486"&gt;@Constantin Stanca&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If it is happening with few specific users then it will be good to check if by any chance their users name contains any UpperCase/MixedCase  letters?&lt;/P&gt;&lt;P&gt;Also we can enable the DEBUG on fileview to collect more detailed information (by default the logging level will be INFO)&lt;/P&gt;&lt;PRE&gt;# grep 'INFO' /var/lib/ambari-server/resources/views/work/FILES\{1.0.0\}/view.log4j.properties 
log4j.logger.org.apache.ambari.view.filebrowser=INFO,filesView&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;After the change we will need to restart the ambari server and then we can see some additional logging inside &lt;/P&gt;&lt;PRE&gt; /var/log/ambari-server/files-view/files-view.log&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 05:48:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Files-View-Service-hdfs-check-failed/m-p/177684#M75674</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-03-12T05:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Files View - Service hdfs check failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Files-View-Service-hdfs-check-failed/m-p/177685#M75675</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14467/janebec.html" nodeid="14467"&gt;@Jane Becker&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I believe that your views got corrupted. This could have happened due metadata corruption. You may want to check the recent period events that may have lead to this situation. &lt;/P&gt;&lt;P&gt;To delete and recreate new instances of Ambari Views, go to "Manage Ambari". Let us know if that addressed your issue.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 09:11:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Files-View-Service-hdfs-check-failed/m-p/177685#M75675</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2018-03-12T09:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Files View - Service hdfs check failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Files-View-Service-hdfs-check-failed/m-p/177686#M75676</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/3418/jsensharma.html"&gt;Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;After more investigation, I realized that other views were broken too and they seemed to have some issues with cluster configuration. I noticed that one of the IP addressed of one of the nodes was wrong. I checked the hosts file and IP addressed seemed fine. I restarted the ambari agent for that node and Ambari reported the correct IP this time. That did not resolve the problem. &lt;/P&gt;&lt;P&gt;Good advice on setting the logging level. I'll change that and continue the troubleshooting. &lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 09:16:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Files-View-Service-hdfs-check-failed/m-p/177686#M75676</guid>
      <dc:creator>janebec</dc:creator>
      <dc:date>2018-03-12T09:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Files View - Service hdfs check failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Files-View-Service-hdfs-check-failed/m-p/177687#M75677</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/3486/cstanca.html"&gt;@Constantin Stanca&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I just tried it and it worked!!! I guess the metadata was corrupted. That is something that I will investigate later, but I am back in business before my Monday morning crowd gets cranky. &lt;/P&gt;&lt;P&gt;Thank you &lt;A href="https://community.hortonworks.com/users/3486/cstanca.html"&gt;@Constantin Stanca&lt;/A&gt; and &lt;A href="https://community.hortonworks.com/users/3418/jsensharma.html"&gt;@Jay Kumar SenSharma&lt;/A&gt; for helping me on a Sunday!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 09:19:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Files-View-Service-hdfs-check-failed/m-p/177687#M75677</guid>
      <dc:creator>janebec</dc:creator>
      <dc:date>2018-03-12T09:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Files View - Service hdfs check failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Files-View-Service-hdfs-check-failed/m-p/177688#M75678</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14467/janebec.html" nodeid="14467"&gt;@Jane Becker&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Happy it worked out. Enjoy the rest of the week-end!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 09:25:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Files-View-Service-hdfs-check-failed/m-p/177688#M75678</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2018-03-12T09:25:13Z</dc:date>
    </item>
  </channel>
</rss>

