[
https://issues.apache.org/jira/browse/HBASE-3465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12992080#comment-12992080
]
Ted Dunning commented on HBASE-3465:
------------------------------------
My suggestion is that there be an hbase jar that contains all dependencies
except for Hadoop. In addition, there would be a lib dir with a default
hadoop.jar that would satisfy all of transitive dependencies that are implied
by Hadoop.
This would allow the startup script (bin/hbase) to detect whether the user has
provided a hadoop home directory or not. The script could then build a class
path that either has the user specified hadoop or the default hadoop jar.
>From the user's point of view, hbase would generally just work. For somebody
>working with a different and API compatible but wire-level incompatible Hadoop
>such as Hadoop with security, one environment variable setting will cure the
>problem.
> Hbase should use a HADOOP_HOME environment variable if available.
> -----------------------------------------------------------------
>
> Key: HBASE-3465
> URL: https://issues.apache.org/jira/browse/HBASE-3465
> Project: HBase
> Issue Type: Bug
> Affects Versions: 0.90.0
> Reporter: Ted Dunning
> Fix For: 0.90.1, 0.92.0
>
>
> 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?
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira