[
https://issues.apache.org/jira/browse/EAGLE-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15057588#comment-15057588
]
Zhaokun Qin commented on EAGLE-78:
----------------------------------
the below information is from docker ambari's issue to solve the problem in
window and mac.
The default shell in boot2docker VM is sh, which doesn't support functions as
well.
docker@boot2docker:~$ ps -p $$
PID TTY TIME CMD
19277 pts/1 00:00:00 sh
To use the ambari-functions you have to execute it on Bash. If you are a mac
user it's quite easy, because the default shell is bash. Just source
ambari-functions locally. You only need to take care a routing rule, because
otherwise the ambari-functions couldn't connect to the docker containers inside
the VM.
sudo route add -net 172.17.0.0/16 192.168.59.103
If you are on Windows, you have to install bash first
tce-load -wi bash
bash
> eagle-lib.sh script not work for mac osx and windows
> ----------------------------------------------------
>
> Key: EAGLE-78
> URL: https://issues.apache.org/jira/browse/EAGLE-78
> Project: Eagle
> Issue Type: Sub-task
> Affects Versions: 0.3.0
> Environment: mac osx, windows
> Reporter: Hao Chen
> Assignee: Zhaokun Qin
> Fix For: 0.3.0
>
>
> Error under MacOSX
> {code}
> $ source eagle-external/eagle-docker/bin/eagle-lib.sh
> -sh: `run-command': not a valid identifier
> -sh: `amb-clean': not a valid identifier
> -sh: `get-ambari-server-ip': not a valid identifier
> -sh: `get-host-ip': not a valid identifier
> -sh: `amb-members': not a valid identifier
> -sh: `amb-settings': not a valid identifier
> -sh: `docker-ps': not a valid identifier
> -sh: `docker-psa': not a valid identifier
> -sh: `amb-start-cluster': not a valid identifier
> -sh: `amb-shell': not a valid identifier
> -sh: `eagle-deploy-cluster': not a valid identifier
> -sh: `amb-start-first': not a valid identifier
> -sh: `amb-copy-to-hdfs': not a valid identifier
> -sh: `amb-create-hdfs-dir': not a valid identifier
> -sh: `amb-scp-to-first': not a valid identifier
> -sh: `amb-start-node': not a valid identifier
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)