hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (HBASE-4243) HADOOP_HOME should be auto-detected
Date Thu, 08 Sep 2011 17:28:08 GMT

     [ https://issues.apache.org/jira/browse/HBASE-4243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

stack reopened HBASE-4243:
--------------------------


Reverted.  When I tried it I get this (on macosx)

h45:clean_trunk Stack$ cd ../hbase
h45:hbase Stack$ ./bin/start-hbase.sh 
readlink: illegal option -- f
usage: readlink [-n] [file ...]
master running as process 39080. Stop it first.

> HADOOP_HOME should be auto-detected
> -----------------------------------
>
>                 Key: HBASE-4243
>                 URL: https://issues.apache.org/jira/browse/HBASE-4243
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Roman Shaposhnik
>            Assignee: Roman Shaposhnik
>            Priority: Minor
>             Fix For: 0.92.0
>
>         Attachments: HBASE-4243.patch.txt
>
>
> Now that HBASE-3465 has been integrated, perhaps we should try to auto-detect the HADOOP_HOME
setting if it is not given explicitly. Something along the lines of:
> {noformat}
> # check for hadoop in the path
> 141	HADOOP_IN_PATH=`which hadoop 2>/dev/null`
> 142	if [ -f ${HADOOP_IN_PATH} ]; then
> 143	  HADOOP_DIR=`dirname "$HADOOP_IN_PATH"`/..
> 144	fi
> 145	# HADOOP_HOME env variable overrides hadoop in the path
> 146	HADOOP_HOME=${HADOOP_HOME:-$HADOOP_DIR}
> 147	if [ "$HADOOP_HOME" == "" ]; then
> 148	  echo "Cannot find hadoop installation: \$HADOOP_HOME must be set or hadoop must
be in the path";
> 149	  exit 4;
> 150	fi
> {noformat}
> Thoughts?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message