Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run.sh from-source fails because the ssh service hasn't started in the docker container #12

Open
anuvab opened this issue Jan 16, 2017 · 1 comment

Comments

@anuvab
Copy link

anuvab commented Jan 16, 2017

Running this script (caochong/from-source/run.sh) gives this error:

WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [caochong-master]
caochong-master: ssh: connect to host caochong-master port 22: Connection refused
localhost: ssh: connect to host localhost port 22: Connection refused
Starting secondary namenodes [0.0.0.0]
0.0.0.0: ssh: connect to host 0.0.0.0 port 22: Connection refused
17/01/16 06:51:36 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
starting yarn daemons
chown: missing operand after '/hadoop/logs'
Try 'chown --help' for more information.
starting resourcemanager, logging to /hadoop/logs/yarn--resourcemanager-fbad3ebe7cdf.out
localhost: ssh: connect to host localhost port 22: Connection refused
starting resourcemanager, logging to /hadoop/logs/yarn--resourcemanager-ed26fb8707b6.out

The relevant part is

localhost: ssh: connect to host localhost port 22: Connection refused

The reason is that the ssh service hasn't been started in the docker container.

The simplest fix for this would be to add a line to start ssh in the container,i.e add this line:

# Start hdfs and yarn services
docker exec -it $master_id service ssh start
docker exec -it $master_id $HADOOP_HOME/sbin/start-dfs.sh
docker exec -it $master_id $HADOOP_HOME/sbin/start-yarn.sh

I have tried this solution and it works well. Am I missing something, or should this line be added to the script?

@liuml07
Copy link
Collaborator

liuml07 commented Feb 15, 2017

We use the supervisor to start the sshd service (and other incoming services) automatically; it must stop working sometimes. Will have a look at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants