[
https://issues.apache.org/jira/browse/HBASE-3465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987342#action_12987342
]
Ted Dunning commented on HBASE-3465:
------------------------------------
I am not suggesting a new hadoop lib dir. I am suggesting that hbase assume
that it will use an existing hadoop lib dir from an existing hadoop install.
Your suggestion of supplying a default lib directory is interesting since it
would make hbase self contained by default (though still delicate because of
version issues).
My major difficulty with the lib/hadoop/*.jar and HADOOP_HOME=lib/hadoop
default is that it makes the build significantly fancier. If somebody has a
cool and simple way to stick dependencies in the provided scope into a
different directory while still sticking the run dependencies into lib, then I
would have no objection. Sounds to me like it would require a custom assembly
at the least, but that isn't so hard.
In any case, it still seems that making an hbase-with-dependencies jar would be
good to do. In my estimation, this should not contain the hadoop jars, but
should assume the same trick. It would presumably be relatively easy to pour
all of the hadoop dependencies into a single hadoop-with-dependencies if it is
easy to select all provided scope dependencies. That would give us two jars
and one hadoop lib directory in the end that provide a lot of flexibility.
> 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.
-
You can reply to this email to add a comment to the issue online.