[
https://issues.apache.org/jira/browse/MESOS-2529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14375466#comment-14375466
]
Littlestar commented on MESOS-2529:
-----------------------------------
/usr/bin/env: bash: No such file or directory
=======
each mesos slave node has JAVA and HADOOP DataNode.
mesos-master-env.sh and mesos-slave-env.sh has the following setting.
export MESOS_JAVA_HOME=/home/test/jdk
export MESOS_HADOOP_HOME=/home/test/hadoop-2.4.0
export
MESOS_PATH=/home/test/jdk/bin:/home/test/hadoop-2.4.0/sbin:/home/test/hadoop-2.4.0/bin:/sbin:/bin:/usr/sbin:/usr/bin
thanks.
> fetch hdfs executor failed with "sh: hadoop: command not found"
> ---------------------------------------------------------------
>
> Key: MESOS-2529
> URL: https://issues.apache.org/jira/browse/MESOS-2529
> Project: Mesos
> Issue Type: Bug
> Components: fetcher
> Affects Versions: 0.21.1
> Reporter: Littlestar
>
> fetch hdfs executor failed with "sh: hadoop: command not found"
> I set HADOOP_HOME and PATH in /etc/profile, but it not works well.
> WARNING: Logging before InitGoogleLogging() is written to STDERR
> I0323 11:46:41.758134 9312 fetcher.cpp:76] Fetching URI
> 'hdfs://192.168.1.9:54310/home/test/spark-1.3.0-bin-2.4.0.tar.gz'
> I0323 11:46:41.758301 9312 fetcher.cpp:105] Downloading resource from
> 'hdfs://192.168.1.9:54310/home/test/spark-1.3.0-bin-2.4.0.tar.gz' to
> '/home/mesos/work_dir/slaves/20150323-100710-1214949568-5050-3453-S1/frameworks/20150323-114534-1214949568-5050-12082-0000/executors/20150323-100710-1214949568-5050-3453-S1/runs/5bb19ef7-483a-4871-aa2a-cb18796775e9/spark-1.3.0-bin-2.4.0.tar.gz'
> E0323 11:46:41.762511 9312 fetcher.cpp:109] HDFS copyToLocal failed: hadoop
> fs -copyToLocal
> 'hdfs://192.168.1.9:54310/home/test/spark-1.3.0-bin-2.4.0.tar.gz'
> '/home/mesos/work_dir/slaves/20150323-100710-1214949568-5050-3453-S1/frameworks/20150323-114534-1214949568-5050-12082-0000/executors/20150323-100710-1214949568-5050-3453-S1/runs/5bb19ef7-483a-4871-aa2a-cb18796775e9/spark-1.3.0-bin-2.4.0.tar.gz'
> sh: hadoop: command not found
> Failed to fetch:
> hdfs://192.168.1.9:54310/home/test/spark-1.3.0-bin-2.4.0.tar.gz
> Failed to synchronize with slave (it's probably exited)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)