Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-11478

hbase-site.xml not read from Classpath

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 0.94.6
    • None
    • Client
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mvervuurt mark vervuurt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 96h
                96h
                Remaining:
                Remaining Estimate - 96h
                96h
                Logged:
                Time Spent - Not Specified
                Not Specified