<?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 commands not working from StandBy namenode in High Availability environment in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hdfs-commands-not-working-from-StandBy-namenode-in-High/m-p/102544#M15063</link>
    <description>&lt;P&gt;well, this was indeed unnecessary strugle... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I found the root cause in the logs of the now active namenode ("java.io.IOException: Cannot run program "/etc/hadoop/conf/rack-topology.sh")&lt;/P&gt;&lt;P&gt;when I enabled the High Availability in the cluster as a part of the exercises required by the admin course I simply forgot to provide the new namenode with the rack-topology.sh script (changing the topology was another prior exercise).&lt;/P&gt;&lt;P&gt;now all hdfs commands can be run from both namenodes&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jan 2016 20:17:21 GMT</pubDate>
    <dc:creator>jarourbtb</dc:creator>
    <dc:date>2016-01-14T20:17:21Z</dc:date>
    <item>
      <title>hdfs commands not working from StandBy namenode in High Availability environment</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hdfs-commands-not-working-from-StandBy-namenode-in-High/m-p/102543#M15062</link>
      <description>&lt;P&gt;Dear fellow hadoopers,&lt;/P&gt;&lt;P&gt;I use HDPv2.2 sandbox for learning purposes. Some time ago I did all lab exercises for the Hortonworks Admin Course ("HDP Operations: Install and Manage with Apache Ambari"). Yesterday I turned the machine on and wanted to delve deeper into the administration. I noticed a strange thing - I can run "hdfs dfs -cat SOMEFILE" command on any file on the hdfs system from any of my nodes EXCEPT from the StandBy namenode.&lt;/P&gt;&lt;P&gt;The debugging ("HADOOP_ROOT_LOGGER='DEBUG,console' hdfs dfs -cat merged.txt") showed the following problem:&lt;/P&gt;&lt;P&gt;"INFO retry.RetryInvocationHandler: Exception while invoking getFileInfo of class ClientNamenodeProtocolTranslatorPB over node1/172.17.0.2:8020. Trying to fail over immediately.
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.StandbyException): Operation category READ is not supported in state standby"&lt;/P&gt;&lt;P&gt;On the StandBy namenode (node1) I can only run "hdfs dfs -ls" and "hdfs dfs -put" commands everything else fails with NullPointerException.&lt;/P&gt;&lt;P&gt;The checked the service states of both standby (node1, standby) and active (node4, active) namenodes using (hdfs haadmin -getServiceState).&lt;/P&gt;&lt;P&gt;Does anyone have an idea of what could be wrong? Why in case of my standby node the hdfs commands are not sent to the active node?&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;jaro&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 19:18:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hdfs-commands-not-working-from-StandBy-namenode-in-High/m-p/102543#M15062</guid>
      <dc:creator>jarourbtb</dc:creator>
      <dc:date>2016-01-14T19:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: hdfs commands not working from StandBy namenode in High Availability environment</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hdfs-commands-not-working-from-StandBy-namenode-in-High/m-p/102544#M15063</link>
      <description>&lt;P&gt;well, this was indeed unnecessary strugle... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I found the root cause in the logs of the now active namenode ("java.io.IOException: Cannot run program "/etc/hadoop/conf/rack-topology.sh")&lt;/P&gt;&lt;P&gt;when I enabled the High Availability in the cluster as a part of the exercises required by the admin course I simply forgot to provide the new namenode with the rack-topology.sh script (changing the topology was another prior exercise).&lt;/P&gt;&lt;P&gt;now all hdfs commands can be run from both namenodes&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 20:17:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hdfs-commands-not-working-from-StandBy-namenode-in-High/m-p/102544#M15063</guid>
      <dc:creator>jarourbtb</dc:creator>
      <dc:date>2016-01-14T20:17:21Z</dc:date>
    </item>
  </channel>
</rss>

