You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "stephen xie (JIRA)" <ji...@apache.org> on 2009/09/04 05:36:57 UTC

[jira] Commented: (HIVE-705) Let Hive can analyse hbase's tables

    [ https://issues.apache.org/jira/browse/HIVE-705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12751283#action_12751283 ] 

stephen xie commented on HIVE-705:
----------------------------------

Hi, Samuel

    Thankx very much for your new patch.
    There are some problem when i used it as the following,

1. create table src(key int, value string);
ok
2. LOAD DATA LOCAL INPATH './examples/files/kv1.txt' OVERWRITE INTO TABLE src;
ok
3. CREATE TABLE hbase_table_1(key int, value string) 
ROW FORMAT SERDE 'org.apache.hadoop.hive.contrib.hbase.HBaseSerDe' 
WITH SERDEPROPERTIES ("hbase.columns.mapping" = "cf:string"
) STORED AS HBASETABLE;
ok
4.FROM src INSERT OVERWRITE TABLE hbase_table_1 SELECT *;
FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.ExecDriver

I found error in the m/r map process, just as the following,

java.lang.RuntimeException: Map operator initialization failed
	at org.apache.hadoop.hive.ql.exec.ExecMapper.configure(ExecMapper.java:110)
	at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:58)
	at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:83)
	at org.apache.hadoop.mapred.MapRunner.configure(MapRunner.java:34)
	at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:58)
	at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:83)
	at org.apache.hadoop.mapred.MapTask.run(MapTask.java:338)
	at org.apache.hadoop.mapred.Child.main(Child.java:158)
Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.NullPointerException
	at org.apache.hadoop.hive.ql.exec.FileSinkOperator.initializeOp(FileSinkOperator.java:165)
	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:308)
	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:345)
	at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:330)
	at org.apache.hadoop.hive.ql.exec.SelectOperator.initializeOp(SelectOperator.java:58)
	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:308)
	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:345)
	at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:330)
	at org.apache.hadoop.hive.ql.exec.Operator.initializeOp(Operator.java:316)
	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:308)
	at org.apache.hadoop.hive.ql.exec.MapOperator.initializeOp(MapOperator.java:289)
	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:308)
	at org.apache.hadoop.hive.ql.exec.ExecMapper.configure(ExecMapper.java:82)
	... 7 more
Caused by: java.lang.NullPointerException
	at org.apache.hadoop.hive.ql.exec.FileSinkOperator.initializeOp(FileSinkOperator.java:88)
	... 19 more

> Let Hive can analyse hbase's tables
> -----------------------------------
>
>                 Key: HIVE-705
>                 URL: https://issues.apache.org/jira/browse/HIVE-705
>             Project: Hadoop Hive
>          Issue Type: New Feature
>            Reporter: Samuel Guo
>         Attachments: hbase-0.19.3-test.jar, hbase-0.19.3.jar, HIVE-705_draft.patch, HIVE-705_revision806905.patch
>
>
> Add a serde over the hbase's tables, so that hive can analyse the data stored in hbase easily.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.