hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kashif J S (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-10748) hbase-daemon.sh fails to execute with 'sh' command
Date Fri, 14 Mar 2014 10:41:44 GMT

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

Kashif J S commented on HBASE-10748:
------------------------------------

For consistency across shell instead of using name "hbase-daemon.sh", you can make use of
'basename' cmd like below 
thiscmd="$bin"/`basename "${BASH_SOURCE-$0}"`
	OR
thiscmd="$bin/$(basename ${BASH_SOURCE-$0})"

> hbase-daemon.sh fails to execute with 'sh' command
> --------------------------------------------------
>
>                 Key: HBASE-10748
>                 URL: https://issues.apache.org/jira/browse/HBASE-10748
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.94.11
>            Reporter: Ashish Singhi
>         Attachments: HBASE-10748.patch
>
>
> hostname:HBASE_HOME/bin # sh hbase-daemon.sh restart master
> *hbase-daemon.sh: line 188: hbase-daemon.sh: command not found*
> *hbase-daemon.sh: line 196: hbase-daemon.sh: command not found*



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message