从HIVE Integration中插入HBASE表中的数据

时间:2012-09-16 04:35:25

标签: hadoop integration hbase hive

我在下面的第5步中遇到错误...非常感谢任何帮助。

我遵循https://cwiki.apache.org/Hive/hbaseintegration.html

中给出的步骤

步骤#1

hive> CREATE TABLE tblHbase(key int, a int, b int,c bigint)
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,f:a,f:b,f:c")
TBLPROPERTIES("hbase.table.name"="tblHbase");

步骤#2

hbase(main):001:0> describe "tblHbase"
DESCRIPTION                                        ENABLED                   
 {NAME => 'tblHbase', FAMILIES => [{NAME => 'f', B true                      
 LOOMFILTER => 'NONE', REPLICATION_SCOPE => '0', V                           
 ERSIONS => '3', COMPRESSION => 'NONE', MIN_VERSIO                           
 NS => '0', TTL => '2147483647', BLOCKSIZE => '655                           
 36', IN_MEMORY => 'false', BLOCKCACHE => 'true'}]                           
 }                      

步骤#3

hive> describe tblhive; 

行 id int 一个int b int c bigint

步骤#4

hive> select * from tblhive;

行 1 101 102 103 2 201 202 203

步骤#5 - 从Hive将数据插入HBase表时出错

hive> insert overwrite table tblHbase select id,a,b,c from tblhive;

Total MapReduce jobs = 1 Launching Job 1 out of 1 Number of reduce tasks is set to 0 
since there's no reduce operator Starting Job = job_1347311485447_0005, 
Tracking URL = <url_deleted> Kill Command = /usr/lib/hadoop/bin/hadoop job  -Dmapred.job.tracker=0.0.0.0:8021
-kill job_1347311485447_0005 Hadoop job information for Stage-0: 
number of mappers: 1; 
number of reducers: 0 
2012-09-10 18:19:35,844 Stage-0 map = 0%,  reduce = 0% Ended Job = job_1347311485447_0005 with errors Error during job, obtaining debugging information... 
Examining task ID: task_1347311485447_0005_m_000000 (and more) from job job_1347311485447_0005

Task with the most failures(4): 
----- Task ID:   task_1347311485447_0005_m_000000

URL:   http://x.x.x.x:50030/taskdetails.jsp?jobid=job_1347311485447_0005&tipid=task_1347311485447_0005_m_000000
-----

**FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.MapRedTask** 
MapReduce Jobs Launched:  Job 0: Map: 1   HDFS Read: 0 HDFS Write: 0 
FAIL Total MapReduce CPU Time Spent: 0 msec

0 个答案:

没有答案