<?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: Exception in creating hbase table from hive in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Exception-in-creating-hbase-table-from-hive/m-p/165413#M127778</link>
    <description>&lt;P&gt;20/5000 
I have the same problem. How can I solve it? Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 16 Apr 2018 14:48:34 GMT</pubDate>
    <dc:creator>zhaodechao</dc:creator>
    <dc:date>2018-04-16T14:48:34Z</dc:date>
    <item>
      <title>Exception in creating hbase table from hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Exception-in-creating-hbase-table-from-hive/m-p/165410#M127775</link>
      <description>&lt;P&gt;I am trying to execute below query from java api &lt;/P&gt;&lt;PRE&gt;CREATE TABLE hive_aps (key struct&amp;lt;f1:string, f2:string&amp;gt;, value string) ROW FORMAT DELIMITED COLLECTION ITEMS TERMINATED BY '~' STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH SERDEPROPERTIES ("hbase.columns.mapping"=":key,f:c1") TBLPROPERTIES ("hbase.table.name" = "hbase_aps", "hbase.mapred.output.outputtable" = "hbase_aps")&lt;/PRE&gt;&lt;P&gt;And getting below error&lt;/P&gt;&lt;PRE&gt;java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations
        at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.getRegionLocations(RpcRetryingCallerWithReadReplicas.java:312)
        at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:156)
        at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:60)
        at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:200)
        at org.apache.hadoop.hbase.client.ClientScanner.call(ClientScanner.java:327)
        at org.apache.hadoop.hbase.client.ClientScanner.nextScanner(ClientScanner.java:302)
        at org.apache.hadoop.hbase.client.ClientScanner.initializeScannerInConstruction(ClientScanner.java:167)
        at org.apache.hadoop.hbase.client.ClientScanner.&amp;lt;init&amp;gt;(ClientScanner.java:162)
        at org.apache.hadoop.hbase.client.HTable.getScanner(HTable.java:794)
        at org.apache.hadoop.hbase.MetaTableAccessor.fullScan(MetaTableAccessor.java:602)
        at org.apache.hadoop.hbase.MetaTableAccessor.tableExists(MetaTableAccessor.java:366)
        at org.apache.hadoop.hbase.client.HBaseAdmin.tableExists(HBaseAdmin.java:405)
        at org.apache.hadoop.hbase.client.HBaseAdmin.tableExists(HBaseAdmin.java:415)
        at org.apache.hadoop.hive.hbase.HBaseStorageHandler.preCreateTable(HBaseStorageHandler.java:214)
        at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.createTable(HiveMetaStoreClient.java:690)
        at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.createTable(HiveMetaStoreClient.java:683)
        at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:159)
        at com.sun.proxy.$Proxy14.createTable(Unknown Source)
        at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:757)
        at org.apache.hadoop.hive.ql.exec.DDLTask.createTable(DDLTask.java:4322)
        at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:314)
        at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:160)
        at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:89)
        at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1745)
        at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1491)
        at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1289)
        at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1156)
        at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1151)
        at org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:197)
        at org.apache.hive.service.cli.operation.SQLOperation.access$300(SQLOperation.java:76)
        at org.apache.hive.service.cli.operation.SQLOperation$2$1.run(SQLOperation.java:253)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1724)
        at org.apache.hive.service.cli.operation.SQLOperation$2.run(SQLOperation.java:264)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
)
        at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:296)
        at com.bigframe.perl.api.HiveHbaseIntegrationHDInsight.main(HiveHbaseIntegrationHDInsight.java:72)&lt;/PRE&gt;&lt;P&gt;Above query is running fine from hive CLI and it is creating table in hive as well as in HBase. I am getting this issue only from java api. Also I am able to create simple hive table from java . If I try hive and hbase together , getting above issue. Please help. This is urgent.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 14:18:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Exception-in-creating-hbase-table-from-hive/m-p/165410#M127775</guid>
      <dc:creator>arkaprova</dc:creator>
      <dc:date>2017-02-08T14:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in creating hbase table from hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Exception-in-creating-hbase-table-from-hive/m-p/165411#M127776</link>
      <description>&lt;P&gt;It looks like your app cannot locate HBase master and/or Region Servers, meaning that you haven't provided HBase configuration. Here are &lt;A href="http://www.programcreek.com/java-api-examples/org.apache.hadoop.hbase.HBaseConfiguration"&gt;some examples&lt;/A&gt; how to do that.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 14:58:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Exception-in-creating-hbase-table-from-hive/m-p/165411#M127776</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2017-02-08T14:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in creating hbase table from hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Exception-in-creating-hbase-table-from-hive/m-p/165412#M127777</link>
      <description>&lt;P&gt;This issue is resolved after setting proper configuration in hive.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 14:59:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Exception-in-creating-hbase-table-from-hive/m-p/165412#M127777</guid>
      <dc:creator>arkaprova</dc:creator>
      <dc:date>2017-02-08T14:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in creating hbase table from hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Exception-in-creating-hbase-table-from-hive/m-p/165413#M127778</link>
      <description>&lt;P&gt;20/5000 
I have the same problem. How can I solve it? Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 14:48:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Exception-in-creating-hbase-table-from-hive/m-p/165413#M127778</guid>
      <dc:creator>zhaodechao</dc:creator>
      <dc:date>2018-04-16T14:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in creating hbase table from hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Exception-in-creating-hbase-table-from-hive/m-p/165414#M127779</link>
      <description>&lt;P&gt;Hi,I hava the same issue ,How  can  I solve it ? please!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 15:26:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Exception-in-creating-hbase-table-from-hive/m-p/165414#M127779</guid>
      <dc:creator>zhaodechao</dc:creator>
      <dc:date>2018-04-16T15:26:48Z</dc:date>
    </item>
  </channel>
</rss>

