<?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: Create HBASE Table using Beeline in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-HBASE-Table-using-Beeline/m-p/8650#M1545</link>
    <description>&lt;P&gt;Thank You very much Chris - that fixed the issue...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Murthy&lt;/P&gt;</description>
    <pubDate>Thu, 10 Apr 2014 17:47:09 GMT</pubDate>
    <dc:creator>Murthy</dc:creator>
    <dc:date>2014-04-10T17:47:09Z</dc:date>
    <item>
      <title>Create HBASE Table using Beeline</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-HBASE-Table-using-Beeline/m-p/8636#M1543</link>
      <description>&lt;P&gt;Hello We are trying to create a HBASE table in beeline and getting an error -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have implemented Kerberos security...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how we are logging in to beeline -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;beeline&amp;gt; !connect jdbc:hive2://&amp;lt;Servername&amp;gt;&lt;A target="_blank" href="http://ldxhdfsm3.dx.deere.com:10000/default;principal=hive/ldxhdfsm3.dx.deere.com@HADOOP.DEV.DEERE.COM"&gt;:10000/default;principal=hive/&amp;lt;Kerberos&lt;/A&gt; Realm&amp;gt; org.apache.hive.jdbc.HiveDriver&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;scan complete in 3ms&lt;/P&gt;&lt;P&gt;Connecting to jdbc:hive2://&lt;A target="_blank" href="http://ldxhdfsm3.dx.deere.com:10000/default;principal=hive/ldxhdfsm3.dx.deere.com@HADOOP.DEV.DEERE.COM"&gt;&amp;lt;Servername&amp;gt;:10000/default;principal=hive/&amp;lt;kerberos&lt;/A&gt; Realm&amp;gt;&lt;/P&gt;&lt;P&gt;Enter password for jdbc:hive2://&lt;A target="_blank" href="http://ldxhdfsm3.dx.deere.com:10000/default;principal=hive/ldxhdfsm3.dx.deere.com@HADOOP.DEV.DEERE.COM"&gt;&amp;lt;Servername&amp;gt;:10000/default;principal=hive/&amp;lt;kerberos&lt;/A&gt; Realm&amp;gt;:&lt;/P&gt;&lt;P&gt;Connected to: Apache Hive (version 0.10.0)&lt;/P&gt;&lt;P&gt;Driver: Hive (version 0.10.0-cdh4.6.0)&lt;/P&gt;&lt;P&gt;Transaction isolation: TRANSACTION_REPEATABLE_READ&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the command we are running to create the HBASE Table -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://&lt;A target="_blank" href="http://ldxhdfsm3.dx.deere.com:10000/"&gt;&amp;lt;Servername&amp;gt;:10000/&lt;/A&gt;&amp;gt; CREATE EXTERNAL TABLE hbase_supercells_01(key string, ssurgo map&amp;lt;string,binary&amp;gt;, counties map&amp;lt;string,binary&amp;gt;, mpe map&amp;lt;string,binary&amp;gt;)&lt;/P&gt;&lt;P&gt;. . . . . . . . . . . . . . . . . . . . . . .&amp;gt; STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'&lt;/P&gt;&lt;P&gt;. . . . . . . . . . . . . . . . . . . . . . .&amp;gt; WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,ssurgo:,counties:,mpe:")&lt;/P&gt;&lt;P&gt;. . . . . . . . . . . . . . . . . . . . . . .&amp;gt; TBLPROPERTIES ("&lt;A target="_blank" href="http://hbase.table.name"&gt;hbase.table.name&lt;/A&gt;" = "supercells.01");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error –&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2014-04-03 16:01:06,707 INFO org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation: getMaster attempt 4 of 14 failed; retrying after sleep of 2008&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: hive/&lt;A target="_blank" href="mailto:ldxhdfsm3.dx.deere.com@HADOOP.DEV.DEERE.COM"&gt;&amp;lt;kerberos&lt;/A&gt; Realm&amp;gt; is not allowed to impersonate mv66708&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have updated the property in Cloudera Manager --&amp;gt; Services --&amp;gt; Hive1 --&amp;gt;HiveServer2(Default)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font: bold 14px/20px 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #595959; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;"&gt;HiveServer2 Enable Impersonation&lt;/SPAN&gt; - this is checked&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have updated the property in Cloudera Manager --&amp;gt; Services --&amp;gt; Hive1 --&amp;gt;HiveServer2 --&amp;gt; Advanced&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font: bold 14px/20px 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #595959; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; font-size-adjust: none; font-stretch: normal; background-color: #f5f5f5; -webkit-text-stroke-width: 0px;"&gt;HiveServer2 Configuration Safety Valve for hive-site.xml&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;SPAN style="color: #595959; text-transform: none; line-height: 20px; text-indent: 0px; letter-spacing: normal; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; font-size-adjust: none; font-stretch: normal; background-color: #f5f5f5; -webkit-text-stroke-width: 0px;"&gt;&amp;lt;property&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;hive.server2.authentication&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;KERBEROS&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;hive.aux.jars.path&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;file:///opt/cloudera/parcels/CDH/lib/hive/lib/hive-hbase-handler-0.10.0-cdh4.6.0.jar,file:///opt/cloudera/parcels/CDH/lib/hbase/hbase.jar,file:///opt/cloudera/parcels/CDH/lib/zookeeper/zookeeper.jar,file:///opt/cloudera/parcels/CDH/lib/hive/lib/guava-11.0.2.jar,file:///opt/cloudera/parcels/CDH/lib/hadoop/lib/hive-serdes-1.0-SNAPSHOT.jar,file:///opt/cloudera/parcels/CDH/lib/hadoop/lib/TwitterUtil.jar&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;hbase.security.authentication&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;kerberos&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;mapred.input.pathFilter.class&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;com.twitter.util.FileFilterExcludeTmpFiles&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;hbase.zookeeper.quorum&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;ldxhdfsm3.dx.deere.com,ldxhdfsm2.dx.deere.com,ldxhdfsm1.dx.deere.com&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;hbase.master.kerberos.principal&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;hbase/_HOST@HADOOP.DEV.DEERE.COM&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;hbase.regionserver.kerberos.principal&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;hbase/_HOST@HADOOP.DEV.DEERE.COM&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;hbase.rpc.engine&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;org.apache.hadoop.hbase.ipc.SecureRpcEngine&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:57:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-HBASE-Table-using-Beeline/m-p/8636#M1543</guid>
      <dc:creator>Murthy</dc:creator>
      <dc:date>2022-09-16T08:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create HBASE Table using Beeline</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-HBASE-Table-using-Beeline/m-p/8642#M1544</link>
      <description>&lt;P&gt;Hey Murthy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the issue is that HBase does not allow hive to impersonate users. &amp;nbsp;So you'll need to setup hive as a proxy user in HBase. &amp;nbsp;Can you try the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Go to the HDFS service configuration in CM.&lt;/P&gt;&lt;P&gt;- Go to Service-Wide-&amp;gt;Advanced and add the following to "&lt;SPAN&gt;Cluster-wide Configuration Safety Valve for core-site.xml":&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  &amp;lt;property&amp;gt;
    &amp;lt;name&amp;gt;hadoop.proxyuser.hive.hosts&amp;lt;/name&amp;gt;
    &amp;lt;value&amp;gt;*&amp;lt;/value&amp;gt;
  &amp;lt;/property&amp;gt;
  &amp;lt;property&amp;gt;
    &amp;lt;name&amp;gt;hadoop.proxyuser.hive.groups&amp;lt;/name&amp;gt;
    &amp;lt;value&amp;gt;*&amp;lt;/value&amp;gt;
  &amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Then restart Hbase.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By default, CM does not add the hive proxuser config to hbase, that's why you see the errors you are seeing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Apr 2014 16:54:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-HBASE-Table-using-Beeline/m-p/8642#M1544</guid>
      <dc:creator>cconner</dc:creator>
      <dc:date>2014-04-10T16:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create HBASE Table using Beeline</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-HBASE-Table-using-Beeline/m-p/8650#M1545</link>
      <description>&lt;P&gt;Thank You very much Chris - that fixed the issue...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Murthy&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2014 17:47:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-HBASE-Table-using-Beeline/m-p/8650#M1545</guid>
      <dc:creator>Murthy</dc:creator>
      <dc:date>2014-04-10T17:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create HBASE Table using Beeline</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-HBASE-Table-using-Beeline/m-p/8652#M1546</link>
      <description>&lt;P&gt;Glad it worked!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2014 17:50:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-HBASE-Table-using-Beeline/m-p/8652#M1546</guid>
      <dc:creator>cconner</dc:creator>
      <dc:date>2014-04-10T17:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create HBASE Table using Beeline</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-HBASE-Table-using-Beeline/m-p/8654#M1547</link>
      <description>Glad to hear it!!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Apr 2014 17:51:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-HBASE-Table-using-Beeline/m-p/8654#M1547</guid>
      <dc:creator>cconner</dc:creator>
      <dc:date>2014-04-10T17:51:09Z</dc:date>
    </item>
  </channel>
</rss>

