[
https://issues.apache.org/jira/browse/HIVE-1597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12923569#action_12923569
]
Jean-Daniel Cryans commented on HIVE-1597:
------------------------------------------
I just tried it with hbase trunk (which gives a ZooKeeperConnectionException
instead of the MasterNotRunningException as we reworked that part). Looking at
the hive.log file, I see that it tries to connect to a non-default port:
{noformat}
2010-10-21 11:49:21,871 DEBUG zookeeper.ZKUtil (ZKUtil.java:connect(94)) -
hconnection opening connection to ZooKeeper with ensemble (localhost:21818)
{noformat}
This is because there's a hbase-site.xml file in hbase's src/test/resources
that's used for tests which has the port 21818 and it seems to get picked up on
the classpath. If I set hbase.zookeeper.client.port to 2181 in
conf/hive-site.xml, I can create the table just fine. I believe this is a HBase
issue, not Hive, and I'll make sure we fix this for 0.90.0. since I can easily
see "normal" users getting this error.
> Hive CLI returns MasterNotRunningException with HBase 0.89.x
> ------------------------------------------------------------
>
> Key: HIVE-1597
> URL: https://issues.apache.org/jira/browse/HIVE-1597
> Project: Hive
> Issue Type: Bug
> Components: HBase Handler
> Affects Versions: 0.7.0
> Reporter: Basab Maulik
>
> This is a follow on task to HIVE-1512.
> hive> CREATE TABLE hbase_table_1(key int, value string)
> > STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
> > WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf1:val")
> > TBLPROPERTIES ("hbase.table.name" = "xyz");
> FAILED: Error in metadata:
> MetaException(message:org.apache.hadoop.hbase.MasterNotRunningException:
> 10.2.128.92:60000 at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.getMaster(HConnectionManager.java:376)
> ...
> This reproduces in testing with CDH3 and with HBase 0.89.x snapshot/zookeeper
> 3.3.1.
> Interesting, the tests TestHBaseSerDe, TestLazyHBaseObject,
> TestHBaseCliDriver, and TestHBaseCliMinimrDriver pass using these upgraded
> versions.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.