You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "David J Garrett (Jira)" <ji...@apache.org> on 2021/06/04 15:01:00 UTC

[jira] [Commented] (HBASE-24095) HBase Bad Substitution ERROR on hadoop-functions.sh

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

David J Garrett commented on HBASE-24095:
-----------------------------------------

I'm getting the same error. hadoop version 3.2.2, hbase  2.3.5.

Whenever I run start-hbase.sh, I get basically four repetitions of the same error, accompanied by "No such file or directory".

I suspect it has to do with my JAVA_HOME env var. 

Here is the output of my command:

/home/hdoop/hadoop-3.2.2/libexec/hadoop-functions.sh: line 2366: HADOOP_ORG.APACHE.HADOOP.HBASE.UTIL.GETJAVAPROPERTY_USER: bad substitution
/home/hdoop/hadoop-3.2.2/libexec/hadoop-functions.sh: line 2461: HADOOP_ORG.APACHE.HADOOP.HBASE.UTIL.GETJAVAPROPERTY_OPTS: bad substitution
/usr/local/HBase/bin/hbase: line 774: /usr/lib/jvm/java-8-oracle/bin/java: No such file or directory
/home/hdoop/hadoop-3.2.2/libexec/hadoop-functions.sh: line 2366: HADOOP_ORG.APACHE.HADOOP.HBASE.UTIL.GETJAVAPROPERTY_USER: bad substitution
/home/hdoop/hadoop-3.2.2/libexec/hadoop-functions.sh: line 2461: HADOOP_ORG.APACHE.HADOOP.HBASE.UTIL.GETJAVAPROPERTY_OPTS: bad substitution
/usr/local/HBase/bin/hbase: line 774: /usr/lib/jvm/java-8-oracle/bin/java: No such file or directory
running master, logging to /usr/local/HBase/logs/hbase-hdoop-master-ip-172-31-94-192.out
/home/hdoop/hadoop-3.2.2/libexec/hadoop-functions.sh: line 2366: HADOOP_ORG.APACHE.HADOOP.HBASE.UTIL.GETJAVAPROPERTY_USER: bad substitution
/home/hdoop/hadoop-3.2.2/libexec/hadoop-functions.sh: line 2461: HADOOP_ORG.APACHE.HADOOP.HBASE.UTIL.GETJAVAPROPERTY_OPTS: bad substitution
/usr/local/HBase/bin/hbase: line 774: /usr/lib/jvm/java-8-oracle/bin/java: No such file or directory
: running regionserver, logging to /usr/local/HBase/logs/hbase-hdoop-regionserver-ip-172-31-94-192.out
: /home/hdoop/hadoop-3.2.2/libexec/hadoop-functions.sh: line 2366: HADOOP_ORG.APACHE.HADOOP.HBASE.UTIL.GETJAVAPROPERTY_USER: bad substitution
: /home/hdoop/hadoop-3.2.2/libexec/hadoop-functions.sh: line 2461: HADOOP_ORG.APACHE.HADOOP.HBASE.UTIL.GETJAVAPROPERTY_OPTS: bad substitution
: /usr/local/HBase/bin/hbase: line 774: /usr/lib/jvm/java-8-oracle/bin/java: No such file or directory

> HBase Bad Substitution ERROR on hadoop-functions.sh
> ---------------------------------------------------
>
>                 Key: HBASE-24095
>                 URL: https://issues.apache.org/jira/browse/HBASE-24095
>             Project: HBase
>          Issue Type: Bug
>          Components: hadoop3
>    Affects Versions: 2.2.3
>         Environment: hbase 2.2.3 with hadoop 3.2.1:
> Installed both hadoop and hbase according the apache "Getting Started" guides. for hbase, i have removed the hadoop jar files it downloaded with, which do not match my current version of hadoop, as per the documentation.
>            Reporter: Alex Swarner
>            Priority: Major
>
> Any Time i make a call to hbase (e.g. "hbase version" or "hbase-daemon.sh start master", i receive this error message:
> */usr/hdeco/hadoop/bin/../libexec/hadoop-functions.sh: line 2366: HADOOP_ORG.APACHE.HADOOP.HBASE.UTIL.GETJAVAPROPERTY_USER: bad substitution*
> */usr/hdeco/hadoop/bin/../libexec/hadoop-functions.sh: line 2461: HADOOP_ORG.APACHE.HADOOP.HBASE.UTIL.GETJAVAPROPERTY_OPTS: bad substitution*
>  
> "hbase version" does provide version information after this error message, but i am unable to start the hbase master, so i am unable to use hbase further.
>  
> I have never posted in any forum before, so let me know if more information is needed.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)