<?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 not showing ascii value for ROW key in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/hbase-not-showing-ascii-value-for-ROW-key/m-p/235119#M196939</link>
    <description>&lt;P&gt;I am loading a phoenix table but in hbase this table row key is shown as hex values. how can I correct this to see the ASCII values ? that is the integer value&lt;/P&gt;&lt;PRE&gt;
sqlline version 1.1.8
0: jdbc:phoenix:localhost:2181:/hbase-unsecur&amp;gt; SELECT * FROM EXAMPLE;
+--------+-------------+------------+
| MY_PK &amp;nbsp;| FIRST_NAME &amp;nbsp;| LAST_NAME &amp;nbsp;|
+--------+-------------+------------+
| 12345 &amp;nbsp;| John &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Doe &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|
| 67890 &amp;nbsp;| Mary &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Jane &amp;nbsp; &amp;nbsp; &amp;nbsp; |
+--------+-------------+------------+
2 rows selected (0.053 seconds)

&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;Version 1.1.2.2.6.5.0-292, r897822d4dd5956ca186974c10382e9094683fa29, Fri May 11 08:01:42 UTC 2018
hbase(main):001:0&amp;gt; scan 'EXAMPLE'ROW &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;COLUMN+CELL&amp;nbsp;\x80\x00\x00\x00\x00\x0009 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;column=M:FIRST_NAME, timestamp=1551381906272, value=John&amp;nbsp;\x80\x00\x00\x00\x00\x0009 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;column=M:LAST_NAME, timestamp=1551381906272, value=Doe&amp;nbsp;\x80\x00\x00\x00\x00\x0009 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;column=M:_0, timestamp=1551381906272, value=x&amp;nbsp;\x80\x00\x00\x00\x00\x01\x092 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; column=M:FIRST_NAME, timestamp=1551381906272, value=Mary&amp;nbsp;\x80\x00\x00\x00\x00\x01\x092 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; column=M:LAST_NAME, timestamp=1551381906272, value=Jane&amp;nbsp;\x80\x00\x00\x00\x00\x01\x092 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; column=M:_0, timestamp=1551381906272, value=x2 row(s) in 0.2030 seconds&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2019 03:29:15 GMT</pubDate>
    <dc:creator>aliyesami</dc:creator>
    <dc:date>2019-03-01T03:29:15Z</dc:date>
    <item>
      <title>hbase not showing ascii value for ROW key</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hbase-not-showing-ascii-value-for-ROW-key/m-p/235119#M196939</link>
      <description>&lt;P&gt;I am loading a phoenix table but in hbase this table row key is shown as hex values. how can I correct this to see the ASCII values ? that is the integer value&lt;/P&gt;&lt;PRE&gt;
sqlline version 1.1.8
0: jdbc:phoenix:localhost:2181:/hbase-unsecur&amp;gt; SELECT * FROM EXAMPLE;
+--------+-------------+------------+
| MY_PK &amp;nbsp;| FIRST_NAME &amp;nbsp;| LAST_NAME &amp;nbsp;|
+--------+-------------+------------+
| 12345 &amp;nbsp;| John &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Doe &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|
| 67890 &amp;nbsp;| Mary &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Jane &amp;nbsp; &amp;nbsp; &amp;nbsp; |
+--------+-------------+------------+
2 rows selected (0.053 seconds)

&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;Version 1.1.2.2.6.5.0-292, r897822d4dd5956ca186974c10382e9094683fa29, Fri May 11 08:01:42 UTC 2018
hbase(main):001:0&amp;gt; scan 'EXAMPLE'ROW &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;COLUMN+CELL&amp;nbsp;\x80\x00\x00\x00\x00\x0009 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;column=M:FIRST_NAME, timestamp=1551381906272, value=John&amp;nbsp;\x80\x00\x00\x00\x00\x0009 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;column=M:LAST_NAME, timestamp=1551381906272, value=Doe&amp;nbsp;\x80\x00\x00\x00\x00\x0009 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;column=M:_0, timestamp=1551381906272, value=x&amp;nbsp;\x80\x00\x00\x00\x00\x01\x092 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; column=M:FIRST_NAME, timestamp=1551381906272, value=Mary&amp;nbsp;\x80\x00\x00\x00\x00\x01\x092 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; column=M:LAST_NAME, timestamp=1551381906272, value=Jane&amp;nbsp;\x80\x00\x00\x00\x00\x01\x092 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; column=M:_0, timestamp=1551381906272, value=x2 row(s) in 0.2030 seconds&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 03:29:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hbase-not-showing-ascii-value-for-ROW-key/m-p/235119#M196939</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2019-03-01T03:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: hbase not showing ascii value for ROW key</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hbase-not-showing-ascii-value-for-ROW-key/m-p/235120#M196940</link>
      <description>&lt;P&gt;Welcome to Phoenix... where the cardinal rule is if you are going to use Phoenix, then for that table, don't look at it or use it directly from the HBase API.  What you are seeing is pretty normal.  I don't see your DDL, but I'll give you an example to compare against.  &lt;/P&gt;&lt;P&gt;Check out the DDL at &lt;A rel="noopener noreferrer noopener noreferrer nofollow noopener noreferrer" href="https://github.com/apache/phoenix/blob/master/examples/WEB_STAT.sql" target="_blank"&gt;https://github.com/apache/phoenix/blob/master/examples/WEB_STAT.sql&lt;/A&gt; and focus on the CORE column which is a BIGINT and the ACTIVE_VISITOR column which is INTEGER.  Here's the data that gets loaded into it; &lt;A rel="noopener noreferrer noopener noreferrer nofollow noopener noreferrer" href="https://github.com/apache/phoenix/blob/master/examples/WEB_STAT.csv" target="_blank"&gt;https://github.com/apache/phoenix/blob/master/examples/WEB_STAT.csv&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Here's what it looks like via Phoenix...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="106942-queryviaphoenix.png" style="width: 1086px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14577i1168DCBFDAECCD59/image-size/medium?v=v2&amp;amp;px=400" role="button" title="106942-queryviaphoenix.png" alt="106942-queryviaphoenix.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here's what it looks like through HBase shell (using the API)...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="106863-queryviahbase.png" style="width: 1087px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14578iE797EB225E090E83/image-size/medium?v=v2&amp;amp;px=400" role="button" title="106863-queryviahbase.png" alt="106863-queryviahbase.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Notice the CORE and ACTIVE_VISITOR values looking a lot like your example?  Yep, welcome to Phoenix.  &lt;/P&gt;&lt;P&gt;Remember, use Phoenix only for Phoenix tables and you'll be all right.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  Good luck and happy Hadooping/HBasing!&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 23:54:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hbase-not-showing-ascii-value-for-ROW-key/m-p/235120#M196940</guid>
      <dc:creator>LesterMartin</dc:creator>
      <dc:date>2019-08-17T23:54:45Z</dc:date>
    </item>
  </channel>
</rss>

