<?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: HBase - alter table - add pre-splits in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-alter-table-add-pre-splits/m-p/44888#M23027</link>
    <description>&lt;P&gt;After some more testing I found that the following command is working:&lt;/P&gt;&lt;P&gt;split '&amp;lt;namespace&amp;gt;:&amp;lt;table_name&amp;gt;', 'NEW_SPLIT_VALUE'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just need to call it once per "pre-split" value I need.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2016 10:03:38 GMT</pubDate>
    <dc:creator>mathieu.d</dc:creator>
    <dc:date>2016-09-08T10:03:38Z</dc:date>
    <item>
      <title>HBase - alter table - add pre-splits</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-alter-table-add-pre-splits/m-p/38723#M23024</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to change my HBase table and add some splits for the keys that don't exists yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the folowings without success :&lt;/P&gt;&lt;PRE&gt;split 'table_name', 'key_that_dont_exists_yet'
alter 'table_name', {SPLITS=&amp;gt;['my_new_split1','my_new_split2']}&lt;/PRE&gt;&lt;P&gt;However, I have the felling that is not working. When I check the splits, I have the same splits as before in the browser and when I do a&lt;/P&gt;&lt;PRE&gt;hdfs dfs -ls /hbase/data/default/table_name&lt;/PRE&gt;&lt;P&gt;I also have no additional folders...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I'm using CDH 5.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:09:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-alter-table-add-pre-splits/m-p/38723#M23024</guid>
      <dc:creator>AlinaGHERMAN</dc:creator>
      <dc:date>2022-09-16T10:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: HBase - alter table - add pre-splits</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-alter-table-add-pre-splits/m-p/38729#M23025</link>
      <description>&lt;P&gt;What's strange is that it worked when I did&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;cat file_with_all_split_cmmands|hbase shell&lt;/PRE&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alina&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 12:54:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-alter-table-add-pre-splits/m-p/38729#M23025</guid>
      <dc:creator>AlinaGHERMAN</dc:creator>
      <dc:date>2016-03-16T12:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: HBase - alter table - add pre-splits</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-alter-table-add-pre-splits/m-p/44887#M23026</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using &lt;U&gt;CDH 5.5.2&lt;/U&gt;. So my version of HBase is not the same.&lt;/P&gt;&lt;P&gt;I did try the | thing into the hbase shell command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to "pre-split" an existing empty table. But the following command seems to not be correct for this version of HBase :&lt;/P&gt;&lt;P&gt;alter '&amp;lt;namespace&amp;gt;:&amp;lt;table_name&amp;gt;',{ SPLITS =&amp;gt; ['value1','value2'] }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following message, so I guess the "SPLITS" part is not taken into account&amp;nbsp; :&lt;/P&gt;&lt;P&gt;Unknown argument ignored: SPLITS&lt;BR /&gt;Updating all regions with the new schema...&lt;BR /&gt;1/2 regions updated.&lt;BR /&gt;2/2 regions updated.&lt;BR /&gt;Done.&lt;BR /&gt;0 row(s) in 2.4780 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does someone knows the syntax for pre-splitting and already existing table (empty table) ?&lt;/P&gt;&lt;P&gt;For CDH 5.5.2, it use HBase 1.0.0 I think.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 09:55:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-alter-table-add-pre-splits/m-p/44887#M23026</guid>
      <dc:creator>mathieu.d</dc:creator>
      <dc:date>2016-09-08T09:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: HBase - alter table - add pre-splits</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-alter-table-add-pre-splits/m-p/44888#M23027</link>
      <description>&lt;P&gt;After some more testing I found that the following command is working:&lt;/P&gt;&lt;P&gt;split '&amp;lt;namespace&amp;gt;:&amp;lt;table_name&amp;gt;', 'NEW_SPLIT_VALUE'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just need to call it once per "pre-split" value I need.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 10:03:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-alter-table-add-pre-splits/m-p/44888#M23027</guid>
      <dc:creator>mathieu.d</dc:creator>
      <dc:date>2016-09-08T10:03:38Z</dc:date>
    </item>
  </channel>
</rss>

