<?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 Question on HDFS rebalance in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Question-on-HDFS-rebalance/m-p/139614#M48086</link>
    <description>&lt;P&gt;HDFS rebalance could be performed from command line or through Ambari UI. Which one do you suggest ? I would like to know the status of the rebalance or logs with error message in case if it fails&lt;/P&gt;</description>
    <pubDate>Wed, 07 Dec 2016 00:12:43 GMT</pubDate>
    <dc:creator>kums</dc:creator>
    <dc:date>2016-12-07T00:12:43Z</dc:date>
    <item>
      <title>Question on HDFS rebalance</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Question-on-HDFS-rebalance/m-p/139614#M48086</link>
      <description>&lt;P&gt;HDFS rebalance could be performed from command line or through Ambari UI. Which one do you suggest ? I would like to know the status of the rebalance or logs with error message in case if it fails&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 00:12:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Question-on-HDFS-rebalance/m-p/139614#M48086</guid>
      <dc:creator>kums</dc:creator>
      <dc:date>2016-12-07T00:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Question on HDFS rebalance</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Question-on-HDFS-rebalance/m-p/139615#M48087</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/11304/kumarveerappan.html"&gt;Kumar Veerappan&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- Via Ambari or Command line.   In both ways the same command will be used.   The actual command will be : &lt;A href="https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/HDFSCommands.html#balancer" target="_blank"&gt;https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/HDFSCommands.html#balancer&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;hdfs balancer -threshold&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;- Ambari will use the following python script and the command:   &lt;A href="https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py#L315-L317" target="_blank"&gt;https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py#L315-L317&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;def startRebalancingProcess(threshold):
  rebalanceCommand = 'hdfs balancer -threshold %s' % threshold
  return ['cmd', '/C', rebalanceCommand]&lt;/PRE&gt;&lt;P&gt;-  Via command line you will get some additional options to be passed the the &lt;STRONG&gt;"hdfs balancer&lt;/STRONG&gt;&lt;STRONG&gt;" &lt;/STRONG&gt;command which will allow to get more control on it.&lt;/P&gt;&lt;PRE&gt; hdfs balancer
          [-threshold &amp;lt;threshold&amp;gt;]
          [-policy &amp;lt;policy&amp;gt;]
          [-exclude [-f &amp;lt;hosts-file&amp;gt; | &amp;lt;comma-separated list of hosts&amp;gt;]]
          [-include [-f &amp;lt;hosts-file&amp;gt; | &amp;lt;comma-separated list of hosts&amp;gt;]]
          [-idleiterations &amp;lt;idleiterations&amp;gt;]&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 00:21:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Question-on-HDFS-rebalance/m-p/139615#M48087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-07T00:21:17Z</dc:date>
    </item>
  </channel>
</rss>

