[ https://issues.apache.org/jira/browse/SLIDER-347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ted Yu updated SLIDER-347: -------------------------- Attachment: (was: slider-347-v1.txt) > Slider script should handle the case where java is not in $PATH > --------------------------------------------------------------- > > Key: SLIDER-347 > URL: https://issues.apache.org/jira/browse/SLIDER-347 > Project: Slider > Issue Type: Bug > Components: other > Affects Versions: Slider 0.50 > Reporter: Ted Yu > Attachments: slider-347-v1.txt > > > {code} > -bash-4.1$ which java > /usr/bin/which: no java in > (/home/y/bin64:/home/y/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin) > {code} > I got the following error - note JAVA_HOME is defined: > {code} > 2014-08-21 > 18:29:15,275|test_startHBase|INFO|JAVA_HOME=/usr/hadoop-jdk1.6.0_31 > /usr/hdp/current/slider/bin/slider create hbCluster1--image > hdfs://10n03.net:8020/slider/agent/slider-agent.tar.gz --template > tests/slider/hbase/templates/appConfig.json --resources > tests/slider/hbase/templates/resources.json > 2014-08-21 18:29:15,275|beaver.machine|INFO|RUNNING: > JAVA_HOME=/usr/hadoop-jdk1.6.0_31 /usr/hdp/current/slider/bin/slider create > hbCluster1--image hdfs://hor10n03.net:8020/slider/agent/slider-agent.tar.gz > --template tests/slider/hbase/templates/appConfig.json --resources > tests/slider/hbase/templates/resources.json > 2014-08-21 18:29:15,289|beaver.machine|INFO|slider_home = > "/usr/hdp/2.9/slider" > 2014-08-21 18:29:15,289|beaver.machine|INFO|slider_jvm_opts = > "-Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Xmx256m > -Djava.confdir=/usr/hdp/2.9/slider/conf" > 2014-08-21 18:29:15,290|beaver.machine|INFO|classpath = > "/usr/hdp/2.9/slider/lib/*:/usr/hdp/2.9/slider/conf:" > 2014-08-21 18:29:15,290|beaver.machine|INFO| > 2014-08-21 > 18:29:15,290|beaver.machine|INFO|/usr/hdp/current/slider/bin/slider: line 74: > exec: java: not found > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)