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

Hbase should use a HADOOP_HOME environment variable if available.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.90.0
    • 0.92.0
    • None
    • None
    • Reviewed
    • If HADOOP_HOME is defined, we'll use this hadoop over whats in HBASE_HOME/lib

    Description

      I have been burned a few times lately while developing code by having the make sure that the hadoop jar in hbase/lib is exactly correct. In my own deployment, there are actually 3 jars and a native library to keep in sync that hbase shouldn't have to know about explicitly. A similar problem arises when using stock hbase with CDH3 because of the security patches changing the wire protocol.

      All of these problems could be avoided by not assuming that the hadoop library is in the local directory. Moreover, I think it might be possible to assemble the distribution such that the compile time hadoop dependency is in a cognate directory to lib and is referenced using a default value for HADOOP_HOME.

      Does anybody have any violent antipathies to such a change?

      Attachments

        1. a1-HBASE-3465.patch
          2 kB
          Alejandro Abdelnur

        Issue Links

          Activity

            People

              tucu00 Alejandro Abdelnur
              tdunning Ted Dunning
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: