Created 03-24-2017 10:34 AM
Hi,
I am trying to run Docker Sandbox HDP 2.5 image in Virtual Box (4.3.12).
When starting the Docker script (start_sandbox.sh) I get such errors in output:
Starting mysql [ OK ] Starting Ambari server [ OK ] Starting Flume [ OK ] Starting Ambari agent [ OK ] Starting Postgre SQL [ OK ] Starting name node [ OK ] Starting Oozie [ OK ] Starting Zookeeper nodes [ OK ] Starting data node [ OK ] Starting Ranger-admin [ OK ] safemode: java.net.UnknownHostException: sandbox.hortonworks.com Usage: hdfs dfsadmin [-safemode enter | leave | get | wait | forceExit] make: [datanode] Error 255 (ignored) Starting NFS portmap [ OK ] Starting Hdfs nfs [ OK ] Starting Hive server [ OK ] Starting Hiveserver2 [ OK ] Starting Ranger-usersync [ OK ] Starting Yarn history server [ OK ] Starting Node manager [ OK ] safemode: java.net.UnknownHostException: sandbox.hortonworks.com Usage: hdfs dfsadmin [-safemode enter | leave | get | wait | forceExit] Starting Webhcat server [ OK ] safemode: java.net.UnknownHostException: sandbox.hortonworks.com Usage: hdfs dfsadmin [-safemode enter | leave | get | wait | forceExit] Starting Spark [ OK ] safemode: java.net.UnknownHostException: sandbox.hortonworks.com Usage: hdfs dfsadmin [-safemode enter | leave | get | wait | forceExit] safemode: java.net.UnknownHostException: sandbox.hortonworks.com Usage: hdfs dfsadmin [-safemode enter | leave | get | wait | forceExit] Starting Zeppelin [ OK ] Starting Resource manager [ OK ] safemode: java.net.UnknownHostException: sandbox.hortonworks.com Usage: hdfs dfsadmin [-safemode enter | leave | get | wait | forceExit] safemode: java.net.UnknownHostException: sandbox.hortonworks.com Usage: hdfs dfsadmin [-safemode enter | leave | get | wait | forceExit] safemode: java.net.UnknownHostException: sandbox.hortonworks.com Usage: hdfs dfsadmin [-safemode enter | leave | get | wait | forceExit]
Please help me to start sandbox docker image correctly!
Created 03-24-2017 10:41 AM
Do you see the hostname entry in the /etc/hosts?
# cat /etc/hosts | grep sandbox 172.17.0.2 sandbox.hortonworks.com # hostname -f sandbox.hortonworks.com
.
Created 03-24-2017 10:44 AM
vagrant@sandbox:~$ cat /etc/hosts | grep sandbox 127.0.0.1 sandbox.hortonworks.com sandbox.hortonworks.com vagrant-ubuntu-trusty-64 vagrant-hadooop.vagrantup.com localhost vagrant@sandbox:~$ hostname -f sandbox.hortonworks.com
Created 03-24-2017 10:49 AM
Have you edited the /etc/hosts file manually ?
The entry should not end with localhost. Also localhost need not be mapped with the sandbox.hortonworks.com
See Example from my Sandbox HDP 2.5 default setting: "/etc/hosts"
127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 172.17.0.2 sandbox.hortonworks.com
Created 03-24-2017 11:25 AM
I was editing it manually. Changed as you have proposed:
cat /etc/hosts 127.0.0.1 localhost
# The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts
172.17.0.2 sandbox.hortonworks.com
But still got the same error