hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amit jaiswal <amit_...@yahoo.com>
Subject Re: hive hbase handler metadata NullPointerException
Date Sun, 13 Mar 2011 23:05:06 GMT
Hi,

I am also facing the same issue (hive-0.7, hbase-0.90.1, hadoop-0.20.2). 

Any help?

-amit



________________________________
From: Bennie Schut <bschut@ebuddy.com>
To: "user@hive.apache.org" <user@hive.apache.org>
Sent: Wed, 9 March, 2011 4:39:49 AM
Subject: hive hbase handler metadata NullPointerException

 Hi All,

I was trying out hbase 0.89.20100924 with hive trunk with hadoop     0.20.2

When I'm running a simple insert I get this:
java.lang.RuntimeException: Error in configuring object 	at 
org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:93) 	at 
org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:64) 	at 
org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117) 	at 
org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:354) 	at 
org.apache.hadoop.mapred.MapTask.run(MapTask.java:307) 	at 
org.apache.hadoop.mapred.Child.main(Child.java:170) Caused by: 
java.lang.reflect.InvocationTargetException 	at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597) 	at 
org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:88) 	... 
5 more Caused by: java.lang.RuntimeException: Error in configuring object 	at 
org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:93) 	at 
org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:64) 	at 
org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117) 	at 
org.apache.hadoop.mapred.MapRunner.configure(MapRunner.java:34) 	... 10 more 
Caused by: java.lang.reflect.InvocationTargetException 	at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:597) 	at 
org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:88) 	... 
13 more Caused by: java.lang.RuntimeException: Map operator initialization 
failed 	at 
org.apache.hadoop.hive.ql.exec.ExecMapper.configure(ExecMapper.java:121) 	... 18 
more Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: 
java.lang.NullPointerException 	at 
org.apache.hadoop.hive.ql.exec.FileSinkOperator.initializeOp(FileSinkOperator.java:335)
 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357) 	at 
org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:433) 	at 
org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:389) 
	at 
org.apache.hadoop.hive.ql.exec.SelectOperator.initializeOp(SelectOperator.java:62)
 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357) 	at 
org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:433) 	at 
org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:389) 
	at 
org.apache.hadoop.hive.ql.exec.TableScanOperator.initializeOp(TableScanOperator.java:133)
 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357) 	at 
org.apache.hadoop.hive.ql.exec.MapOperator.initializeOp(MapOperator.java:444) 
	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357) 	at 
org.apache.hadoop.hive.ql.exec.ExecMapper.configure(ExecMapper.java:98) 	... 18 
more Caused by: java.lang.NullPointerException 	at 
org.apache.hadoop.hive.ql.exec.FileSinkOperator.initializeOp(FileSinkOperator.java:280)
 	... 30 moreinsert overwrite table hbase_table_1 select cldr_id,     iso_date 
from calendar;

I could create the table just fine. like :
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");

I've set the properties hbase.master, hbase.zookeeper.quorum,     
hbase.zookeeper.property.clientPort should that be enough?

Thanks
Bennie.

Mime
View raw message