I observed inconsistency of the configuration file used between hadoop and
hbase. Seems that when starting hadoop service using:
/etc/init.d/hadoop-xxx start
/etc/hadoop/conf/hadoop-env.sh is used.

When starting hbase service
/etc/init.d/hbase-xxx start
/usr/lib/hbase/conf/hbase-env.sh is used.

This leads to an issue during deb install: when JAVA is not installed at
the directory that is one of on the detection list, even if you set your
JAVA_HOME in /etc/hbase/conf/hbase-env.sh, it will still fail. You can try
to change the /usr/lib/hbase/conf/hbase-env.sh file. But it is overwritten
to what comes with the deb file during deb installation.

Would appreciate if someone can confirm it is a bug or not. If so, we
probably should track it in JIRA for fix in hbase or in bigtop.

Also, seems the list of java location used by hbase below
(/usr/lib/hbase/bin/hbase-conf.sh) is quite a bit shorter than the bigtop
detection list:
/usr/lib/jvm/java-6-sun \
    /usr/lib/jvm/java-1.6.0-sun-1.6.0.*/jre \
    /usr/lib/jvm/java-1.6.0-sun-1.6.0.* \
    /usr/lib/j2sdk1.6-sun \
    /usr/java/jdk1.6* \
    /usr/java/jre1.6* \
    /Library/Java/Home


Thanks,
David

On 3/20/12 2:09 PM, "Bruno Mahé" <[email protected]> wrote:

>On 03/20/2012 03:05 PM, Bruno Mahé wrote:
>> On 03/20/2012 11:03 AM, David Liu (gmail dev) wrote:
>>> I have added a build page for
>>> Ubuntu: 
>>>https://cwiki.apache.org/confluence/display/BIGTOP/Building+Bigtop+on+Ub
>>>untu
>>>
>>> Hope it is useful for other users.
>>>
>>> David
>> Great page!
>>
>> One note though:
>> When installing the packages, you shouldn't need to manually set
>> JAVA_HOME, unless you put it in a non-standard location.
>> All wrapper scripts will make use of bigtop-utils to auto-detect
>>JAVA_HOME.
>> See
>> 
>>https://github.com/apache/bigtop/blob/trunk/bigtop-packages/src/common/bi
>>gtop-utils/bigtop-detect-javahome
>>
>>
>> Thanks,
>> Bruno
>
>Sorry, I forgot to add:
>
>* sudo hadoop namenode -format => you must format the namenode as the
>user hdfs. So you should type "sudo -u hdfs hadoop namenode -format"
>
>* /usr/lib/hadoop/bin/st{art,op}-all.sh scripts are not supported and
>will be removed soon (as in as soon as someone tackles it). Services
>should be started/stopped through the init scripts located in
>/etc/init.d/hadoop-*


Reply via email to