J.Andreina created HDFS-7730:
--------------------------------

             Summary: knox-env.sh script should exit with proper error message 
, if JAVA is not set. 
                 Key: HDFS-7730
                 URL: https://issues.apache.org/jira/browse/HDFS-7730
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: J.Andreina
            Assignee: J.Andreina


knox-env.sh script  does not exit when JAVA is not set .

Hence execution of other script (which invokes knox-env.sh to set JAVA) in an 
environment which does not contains JAVA , continues with execution and logs 
non-user friendly messages as below
{noformat}
Execution of gateway.sh:

nohup: invalid option -- 'j'
Try `nohup --help' for more information.
{noformat}
{noformat}
Execution of knoxcli.sh :

./knoxcli.sh: line 61: -jar: command not found
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to