<?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: How to salt row key in Hbase Table in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-salt-row-key-in-Hbase-Table/m-p/154655#M56956</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/223/jelser.html" nodeid="223"&gt;@Josh Elser&lt;/A&gt; If i use Apache Phoenix to create a View over my HBase table, i don't need to care about prefixing my rowkey right? Just need to specify the SALT_BUCKETS and Pre-Splitting (if not, it's automatic). &lt;/P&gt;</description>
    <pubDate>Wed, 15 Mar 2017 23:35:20 GMT</pubDate>
    <dc:creator>fmm_pires</dc:creator>
    <dc:date>2017-03-15T23:35:20Z</dc:date>
    <item>
      <title>How to salt row key in Hbase Table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-salt-row-key-in-Hbase-Table/m-p/154649#M56950</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;I want to salt my row key with a prefix, according this 'formula' :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt; new_row_key = (++index % BUCKETS_NUMBER) + original_key&lt;/PRE&gt;&lt;P&gt;Where can i add this prefix in my row key? It's coding some file, or it's implemented backwards in SQL?&lt;/P&gt;&lt;P&gt;Another question related, if i have a prefix in my row key, if i want to select a specific row key in hbase i won't know
what prefix that row key have, this is a limitation or am i seeing thins wrong?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Francisco&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 23:09:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-salt-row-key-in-Hbase-Table/m-p/154649#M56950</guid>
      <dc:creator>fmm_pires</dc:creator>
      <dc:date>2017-03-13T23:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to salt row key in Hbase Table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-salt-row-key-in-Hbase-Table/m-p/154650#M56951</link>
      <description>&lt;P&gt;"Where can i add this prefix in my row key? It's coding some file, or it's implemented backwards in SQL?"&lt;/P&gt;&lt;P&gt;You add it to your code which is ingesting data into HBase. That is the most simple way to implement this logic.&lt;/P&gt;&lt;P&gt;"if i have a prefix in my row key, if i want to select a specific row key
 in hbase i won't know what prefix that row key have, this is a 
limitation or am i seeing thins wrong?"&lt;/P&gt;&lt;P&gt;Yes, this is a limitation of your "formula". For salt/hashing, you want a stable hash such that, with the actual data in the rowKey, you can compute what the salt/hash is.&lt;/P&gt;&lt;P&gt;I'd recommend that you use Apache Phoenix if you want to implement salting. It provides this as a feature and would likely save you a bit of time/effort.
&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 23:23:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-salt-row-key-in-Hbase-Table/m-p/154650#M56951</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2017-03-13T23:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to salt row key in Hbase Table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-salt-row-key-in-Hbase-Table/m-p/154651#M56952</link>
      <description>&lt;P&gt;Thanks for your feedback Josh.&lt;/P&gt;&lt;P&gt;In which phase can i implement that?&lt;/P&gt;&lt;P&gt;I'm importing a table from Sql Server to Hbase via Sqoop.


Also, thanks for your suggestion about Apache Phoenix.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 23:41:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-salt-row-key-in-Hbase-Table/m-p/154651#M56952</guid>
      <dc:creator>fmm_pires</dc:creator>
      <dc:date>2017-03-13T23:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to salt row key in Hbase Table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-salt-row-key-in-Hbase-Table/m-p/154652#M56953</link>
      <description>&lt;P&gt;I would strongly recommend you reconsider your usecase to import a table from SQL Server to HBase. HBase is not a relation database, and most of the practice applied on relational database will not work or degrade HBase performance. Consider Hive or similar technologies for SQL server or relation DB offload.&lt;/P&gt;&lt;P&gt;Example, if you don't know your row key prefix in HBase you will end up doing a full table scan, which is an expensive operation in HBase. So designing rowkey is the most important step in HBase unlike relational DBs. More information here and why:&lt;/P&gt;&lt;P&gt;&lt;A href="https://hbase.apache.org/book.html#rowkey.design" target="_blank"&gt;https://hbase.apache.org/book.html#rowkey.design&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 22:32:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-salt-row-key-in-Hbase-Table/m-p/154652#M56953</guid>
      <dc:creator>umair_khan</dc:creator>
      <dc:date>2017-03-14T22:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to salt row key in Hbase Table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-salt-row-key-in-Hbase-Table/m-p/154653#M56954</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/2827/umairkhan.html" nodeid="2827"&gt;@Umair Khan&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Explaining all the cenario, i'm doing a small project (for master thesis) in which i'm trying to use some of the capabilities of Hortonworks and the world of Hadoop.&lt;/P&gt;&lt;P&gt;I have different types of data, and one of the types are stored in SQL Server, it's 4 or 5 simple tables, that i can model in 2 in Hbase. My ideia with this dataset is store in a non relational database like Hbase and query with Hive, exploring the capabilities of the Hbase and Hive together.&lt;/P&gt;&lt;P&gt;I know that Hbase isn't the ideal tool to retrieve a specific record, moreover with a specific record by rowkey prefixed. But i'm trying to implement one of this techniques to optimize and prevent hotspotting regions.&lt;/P&gt;&lt;P&gt;So, where can i do the implementation of a reversed rowkey or salted rowkey?
I can do this in Sql, but i think its very inneficient...&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 04:22:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-salt-row-key-in-Hbase-Table/m-p/154653#M56954</guid>
      <dc:creator>fmm_pires</dc:creator>
      <dc:date>2017-03-15T04:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to salt row key in Hbase Table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-salt-row-key-in-Hbase-Table/m-p/154654#M56955</link>
      <description>&lt;P&gt;At risk of repeating myself, you should use Apache Phoenix. It will give you the perks of HBase as a backing store with a SQL front-end for you to use as an entry-point.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 04:38:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-salt-row-key-in-Hbase-Table/m-p/154654#M56955</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2017-03-15T04:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to salt row key in Hbase Table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-salt-row-key-in-Hbase-Table/m-p/154655#M56956</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/223/jelser.html" nodeid="223"&gt;@Josh Elser&lt;/A&gt; If i use Apache Phoenix to create a View over my HBase table, i don't need to care about prefixing my rowkey right? Just need to specify the SALT_BUCKETS and Pre-Splitting (if not, it's automatic). &lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 23:35:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-salt-row-key-in-Hbase-Table/m-p/154655#M56956</guid>
      <dc:creator>fmm_pires</dc:creator>
      <dc:date>2017-03-15T23:35:20Z</dc:date>
    </item>
  </channel>
</rss>

