mark vervuurt created HBASE-11478:
-------------------------------------

             Summary: hbase-site.xml not read from Classpath
                 Key: HBASE-11478
                 URL: https://issues.apache.org/jira/browse/HBASE-11478
             Project: HBase
          Issue Type: Bug
          Components: Client
    Affects Versions: 0.94.6
         Environment: Cloudera Hadoop 4.4.0
hbase-0.94.6-cdh4.4.0-security.jar
            Reporter: mark vervuurt
             Fix For: 0.94.6


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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to