<?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 HBase - Get region start from one shell command in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-Get-region-start-from-one-shell-command/m-p/35936#M14417</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to do a script that decides where to move each region. For that I want to use the command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt; move&lt;/STRONG&gt;

ERROR: wrong number of arguments (0 for 1)

Here is some help for this command:
Move a region.  Optionally specify target regionserver else we choose one
at random.  NOTE: You pass the encoded region name, not the region name so
this command is a little different to the others.  The encoded region name
is the hash suffix on region names: e.g. if the region name were
TestTable,0094429456,1289497600452.527db22f95c8a9e0116f0cc13c680396. then
the encoded region name portion is 527db22f95c8a9e0116f0cc13c680396
A server name is its host, port plus &lt;STRONG&gt;startcode&lt;/STRONG&gt;. For example:
&lt;STRONG&gt;host187.example.com,60020,1289493121758&lt;/STRONG&gt;
Examples:

  hbase&amp;gt; move 'ENCODED_REGIONNAME'
  hbase&amp;gt; &lt;STRONG&gt;move 'ENCODED_REGIONNAME', 'SERVER_NAME'&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For that I started to use the&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;hdfs dfs -du "/hbase/data/default_table_name/"&lt;/PRE&gt;&lt;P&gt;in order to find the region names.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;However, I do not know,&amp;nbsp;if there si a shell command to find out the startcode for each region&amp;nbsp;(?).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 09:56:11 GMT</pubDate>
    <dc:creator>AlinaGHERMAN</dc:creator>
    <dc:date>2022-09-16T09:56:11Z</dc:date>
    <item>
      <title>HBase - Get region start from one shell command</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-Get-region-start-from-one-shell-command/m-p/35936#M14417</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to do a script that decides where to move each region. For that I want to use the command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt; move&lt;/STRONG&gt;

ERROR: wrong number of arguments (0 for 1)

Here is some help for this command:
Move a region.  Optionally specify target regionserver else we choose one
at random.  NOTE: You pass the encoded region name, not the region name so
this command is a little different to the others.  The encoded region name
is the hash suffix on region names: e.g. if the region name were
TestTable,0094429456,1289497600452.527db22f95c8a9e0116f0cc13c680396. then
the encoded region name portion is 527db22f95c8a9e0116f0cc13c680396
A server name is its host, port plus &lt;STRONG&gt;startcode&lt;/STRONG&gt;. For example:
&lt;STRONG&gt;host187.example.com,60020,1289493121758&lt;/STRONG&gt;
Examples:

  hbase&amp;gt; move 'ENCODED_REGIONNAME'
  hbase&amp;gt; &lt;STRONG&gt;move 'ENCODED_REGIONNAME', 'SERVER_NAME'&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For that I started to use the&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;hdfs dfs -du "/hbase/data/default_table_name/"&lt;/PRE&gt;&lt;P&gt;in order to find the region names.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;However, I do not know,&amp;nbsp;if there si a shell command to find out the startcode for each region&amp;nbsp;(?).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:56:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-Get-region-start-from-one-shell-command/m-p/35936#M14417</guid>
      <dc:creator>AlinaGHERMAN</dc:creator>
      <dc:date>2022-09-16T09:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: HBase - Get region start from one shell command</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-Get-region-start-from-one-shell-command/m-p/37618#M14418</link>
      <description>You can get your live RegionServer IDs with startcodes included via the HBase Shell command: status 'simple'&lt;BR /&gt;&lt;BR /&gt;An output line from this, such as the below:&lt;BR /&gt;&lt;BR /&gt;host.cloudera.com:60020 1455726247381&lt;BR /&gt;&lt;BR /&gt;Can then be converted into the right format:&lt;BR /&gt;&lt;BR /&gt;host.cloudera.com,22101,1455726247381</description>
      <pubDate>Thu, 18 Feb 2016 09:03:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-Get-region-start-from-one-shell-command/m-p/37618#M14418</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2016-02-18T09:03:02Z</dc:date>
    </item>
  </channel>
</rss>

