Support Questions
Find answers, ask questions, and share your expertise

adding host in install option in ambari is not working..after registration and confirm its took lot of time..

Rising Star

Hi i want to install ambari 2.5 in ubutu 14..while i adding host in "install option" and i press registration and confirm ..its take lot of time ..i abort..how to find root cause of this ?

Please help me here ..

14 REPLIES 14

Expert Contributor

You will need to look at the ambari logs to potentially narrow this down.Without any information its hard to determine what the issue could be. Please look at the link below to help you identify / isolate the issue:

http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.0/bk_ambari_troubleshooting/content/_reviewing...

Rising Star

Thank you @Sumesh

I got some information in ambari-server log file

30 Dec 2016 10:19:31,154 INFO [qtp-client-23] PersistKeyValueService:82 - Looking for keyName CLUSTER_CURRENT_STATUS 30 Dec 2016 10:20:37,232 INFO [qtp-client-25] BootStrapImpl:108 - BootStrapping hosts ubuntu: 30 Dec 2016 10:20:37,283 INFO [Thread-78] BSRunner:160 - Kicking off the scheduler for polling on logs in /var/run/ambari-server/bootstrap/1 30 Dec 2016 10:20:37,290 INFO [Thread-78] BSRunner:335 - Error executing bootstrap Cannot create /var/run/ambari-server/bootstrap 30 Dec 2016 10:20:37,301 ERROR [Thread-78] BSRunner:390 - java.io.FileNotFoundException: /var/run/ambari-server/bootstrap/1/ubuntu.done (No such file or directory) 30 Dec 2016 10:20:37,315 WARN [Thread-78] BSRunner:361 - File does not exist: /var/run/ambari-server/bootstrap/1/sshKey 30 Dec 2016 10:20:37,331 INFO [pool-7-thread-1] BSHostStatusCollector:55 - Request directory /var/run/ambari-server/bootstrap/1 30 Dec 2016 10:20:37,339 INFO [pool-7-thread-1] BSHostStatusCollector:62 - HostList for polling on [ubuntu] 30 Dec 2016 10:20:47,341 INFO [pool-7-thread-1] BSHostStatusCollector:55 - Request directory /var/run/ambari-server/bootstrap/1 30 Dec 2016 10:20:47,341 INFO [pool-7-thread-1] BSHostStatusCollector:62 - HostList for polling on [ubuntu] 30 Dec 2016 10:20:57,346 INFO [pool-7-thread-1] BSHostStatusCollector:55 - Request directory /var/run/ambari-server/bootstrap/1 30 Dec 2016 10:20:57,346 INFO [pool-7-thread-1] BSHostStatusCollector:62 - HostList for polling on [ubuntu]

Expert Contributor

@rama

Good pointers in the answer below:

https://community.hortonworks.com/questions/30754/ambari-cluster-setup-is-not-proceeding-further-dur...

See if you can vet you settings against these and if that helps.

Expert Contributor

Looks like you get this exception as shown below

 Error executing bootstrap Cannot create /var/run/ambari-server/bootstrap 30 Dec 2016 10:20:37,301 ERROR [Thread-78] BSRunner:390 - java.io.FileNotFoundException: /var/run/ambari-server/bootstrap/1/ubuntu.done (No such file or directory) 30 Dec 2016 10:20:37,315 WARN [Thread-78] BSRunner:361 - File does not exist: /var/run/ambari-server/bootstrap/1/sshKey 30 Dec 2016 10:20:37,331 INFO [pool-7-thread-1] BSHostStatusCollector:55 - Request directory /var/run/ambari-server/bootstrap/1 30 Dec 2016 10:20:37,339 

Please check that on the ambari server ensure that the directory structure exists as below:

[vagrant@ambari-server ~]$ ls -l  /var/run/ambari-server
total 12
-rw-r--r--  1 root root    5 Dec 30 13:51 ambari-server.pid
drwxr-xr-x  2 root root 4096 Dec 21 18:37 bootstrap
drwxr-xr-x 30 root root 4096 Dec 30 06:50 stack-recommendations
[vagrant@ambari-server ~]$ ls -ld  /var/run/ambari-server
drwxr-xr-x 4 root root 4096 Dec 30 13:51 /var/run/ambari-server
[vagrant@ambari-server ~]$

Rising Star

@Sumesh

I could not find any file under above directory

ambari@ubuntu:/var/run/ambari-server$ ll

total 0 drwxr-xr-x 2 root root 40 Dec 30 22:00 ./

drwxr-xr-x 27 root root 900 Dec 30 21:50 ../

ambari@ubuntu:/var/run/ambari-server$ ls -ld /var/run/ambari-server drwxr-xr-x 2 root root 40 Dec 30 22:00 /var/run/ambari-server

Rising Star

@Sumesh

i got below file after reinstall but still i got error while add host

hadoop@ubuntu:/etc/apt/sources.list.d$ ls -l /var/run/ambari-serve

r total 4 -rw-r--r-- 1 root root 6 Jan 1 04:16 ambari-server.pid

drwxr-xr-x 2 hadoop root 40 Jan 1 04:13 bootstrap

drwxr-xr-x 2 hadoop root 40 Nov 22 23:22 stack-recommendations

ommand start time 2017-01-01 04:36:47 Warning: Permanently added 'ubuntu' (ECDSA) to the list of known hosts. Permission denied (publickey,password). SSH command execution finished host=ubuntu, exitcode=255 Command end time 2017-01-01 04:36:47 ERROR: Bootstrap of host ubuntu fails because previous action finished with non-zero exit code (255) ERROR MESSAGE: Warning: Permanently added 'ubuntu' (ECDSA) to the list of known hosts. Permission denied (publickey,password). STDOUT: Warning: Permanently added 'ubuntu' (ECDSA) to the list of known hosts. Permission denied (publickey,password).

Rising Star

@Sumesh

Any updated on my error?

Expert Contributor

@rama

I would recommend to reinstall ambari-server, instead of fixing issues thrown by logs. It seems ambari-server installation did not go well first time itself and that's why you see some missing directories. Please give more attention to any error thrown during the ambari-server installation. How to re-install ambari-server:

ambari-server stop

sudo apt-get install --reinstall ambari-server

Please try and let me know.

Rising Star

Thank you so much@Manish Gupta

yum re-install ambari-server not working in ubuntu