3

我在下面的第 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; 

OK id int a int b int c bigint

第4步

hive> select * from tblhive;

正常 1 101 102 103 2 201 202 203

Step#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
4

0 回答 0