hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Busbey (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-13120) Allow disabling hadoop classpath and native library lookup
Date Fri, 27 Feb 2015 06:45:05 GMT

    [ https://issues.apache.org/jira/browse/HBASE-13120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14339800#comment-14339800

Sean Busbey commented on HBASE-13120:

+if [ "$DISABLE_HADOOP_CLASSPATH_LOOKUP" != "true" ] ; then

Please name this HBASE_DISABLE_HADOOP_CLASSPATH_LOOKUP. Not that I think we're likely to conflict
on the name, but just in case.

Also, if you just check if the string is non-zero length it'll be easier to integrate programmatically
determining if we should disable.

I think this is a valid use case where there is hadoop installed on the node(s), but we are
trying to run HBase from a self-contained tarball. We should not try to find the "installed"
hadoop in this case.

This is a very good point. How much more work would it be to get this exported when we're
starting local distributed mode? At a minimum we should add a note to the ref guide telling
folks to set it.

> Allow disabling hadoop classpath and native library lookup
> ----------------------------------------------------------
>                 Key: HBASE-13120
>                 URL: https://issues.apache.org/jira/browse/HBASE-13120
>             Project: HBase
>          Issue Type: Improvement
>          Components: hbase
>    Affects Versions: 0.98.0
>            Reporter: Siddharth Wagle
>         Attachments: HBASE-13120.patch
> - Current bin/hbase script sets the java.library.path to include hadoop native libs based
on what version of hadoop is installed on the box.
> {code}
> HADOOP_IN_PATH=$(PATH="${HADOOP_HOME:-${HADOOP_PREFIX}}/bin:$PATH" which hadoop 2>/dev/null)
> {code}
> - This effectively means that a self-contained HBase running with a different version
of embedded hadoop jars will fail to work in case of version incompatibilities.
> - Example: AMBARI-5707, runs a embedded HBase on local FS side-by-side with cluster Hadoop
> - It would be good to have a hbase-env variable to completely override native lib path
or a config to disable native lib path lookup, in which case user has to provide it during

This message was sent by Atlassian JIRA

View raw message