Taiwan Hadoop Forum http://forum.hadoop.tw/ |
|
hbase与hive集成后select报错 http://forum.hadoop.tw/viewtopic.php?f=4&t=38069 |
第 1 頁 (共 1 頁) |
發表人: | king073a [ 2013-11-12, 18:58 ] |
文章主題 : | hbase与hive集成后select报错 |
场景: Oracle VirtualBOx 虚拟了四台计算机 操作系统:CentOS 6.4 minimal jdk1.6.0_31 hadoop2.2.0集群(master+slave1+slave2+slave3) zookeeper3.4.5独立集群(3个结点,slave1+slave2+slave3) hbase0.96.0集群(hmaster+slave1+slave2+slave3) hive0.11.0(master) 所有上述集群等,都可以正常运行.hbase与hive集成,关联建表和load数据,一切正常. 通过关联建的表,在hbase中可以正常查看.但是在hive中就报错. 具体情况: 输入: hive -hiveconf hbase.zookeeper.quorum=slave1,slave2,slave3 hive>create table hbase_ylj(key int ,value string) stored by 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' with serdeproperties ("hbase.columns.mapping"=":key,cfl:val")tblproperties("hbase.table.name"="hbase_ylj"); hive>select * from 关联建的表名; 出错: Failed with exception java.io.IOException:java.lang.ClassCastException: org.apache.hadoop.hbase.client.Result cannot be cast to org.apache.hadoop.io.Writable |
第 1 頁 (共 1 頁) | 所有顯示的時間為 UTC + 8 小時 |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |