Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
0.94.6
-
None
-
None
-
Cloudera Hadoop 4.4.0
hbase-0.94.6-cdh4.4.0-security.jar
Description
In a Java Pig UDF including an Hbase Client, which fetches the desired record from Hbase, 'hbase-site.xml' is not read from the Classpath.
// Set Zookeeper Quorum used by HBASE
// Read hbase-site.xml from CLASSPATH
Configuration config = HBaseConfiguration.addHbaseResources(UDFContext.getUDFContext().getJobConf());
We have verified that the directory 'etc/hbase/conf' where 'hbase-site.xml' is in, is on the HADOOP_CLASSPATH . I have tried everything, including the 'etc/hbase/conf' or '/etc/hbase/conf/hbase-site.xml' to PIG_CLASSPATH, CLASSPATH environment variables. We also tried adding the hbase-site.xml to our HADOOP_CONF_DIR and HBASE_CONF_DIR is set.
I have also tried REGISTER '/etc/hbase/conf/hbase-site.xml' in Pig. Finally the following did not work either:
conf.addResource("/etc/hbase/conf/hbase-site.xml");
I hope this helps.