Hi, I just installed a new HDP 184.108.40.206 cluster with 10 nodes, when I tried to 'add new service' it is in 'Loading....' and get no where.
this is first time to my cluster, I have installed so many, never have this problem. I did all ambari-server restart, stop all service and start all service, also, chown root:root /var/run/ambari still not let me add new service.
anyone have any ideas to help me here? thank you very much.
Looks like one of your host is causing the problem.
Please check the following:
1). Check the "host_version" table and findout which host is not pointing to "220.127.116.11-37"
SELECT * FROM host_version;
2). Login to the problematic host using SSH and then run the following command to find out if it really has the 18.104.22.168-37 packages installed or not?
3). If you see that the hdp-select command output shows that all the packages installed to that host is having the correct version then following the next step.
4). If you find the problematic host then find it's host_id from the "hosts" table and then check if it is pointing to OLD repo_version_id , if yes then update it to point to the current version.
UPDATE host_version SET state='CURRENT' WHERE host_id='xx';
Also you can update the "repo_version_id" for this host to point to the latest version of repo (if it is not set already)
Please make sure that after this change the host is pointing to the repo_version_id mentioned in the "cluster_version" table which has state as "CURRENT". .
5). After the DB changes (commits) ambari-server need to be restarted.
# ambari-server restart
Did you notice any warning/error in ambari-server.log? (before or after the UI hung).
The OS where the Ambari is running has enough memory (free -m). Also does ambari has enough Free space left. Following command will list the ambari memory details in run time.
# $JAVA_HOME/bin/jmap -heap $AMBARI_PID
Did you try opening the ambari UI in incognito mode browser?
thank you so much for your respond.
ambari-server.log showed this error: error=/var/run/ambari-server/stack-recommendations/1/stackadvisor.err
[root@ip-172-31-6-79 bin]# free -m
total used free shared buff/cache available
Mem: 7565 1478 119 48 5967 5714
Swap: 0 0 0
Sometimes this Add Service UI can get hung when some of the Hosts of the cluster are in OUT_OF_SYNC state.
Please check the ambari DB to findout those host states.
SELECT host_id, state FROM host_version WHERE state = "OUT_OF_SYNC"; SELECT host_id, host_name FROM hosts where host_id IN (SELECT host_id FROM host_version WHERE state = "OUT_OF_SYNC");
If you find any problematic host then please Enable the "Maintenance Mode" ON for those hosts first and then perform Add Service.
sorry, somehow it not uploaded last time. here it comes. please see current 6/7, one of my host do have issues, but I could not find any alert in any hosts in the cluster.
I dont know how to query on ambari database, I did hdp-select, it is hard to compare the versions on each states on all hosts.
I saw your ealier post
# mysql -u ambari ambari -pbigdata mysql> SELECT host_id, state FROM host_version WHERE state = "OUT_OF_SYNC"; [root@ip-172-31-6-79 bin]# mysql bash: mysql: command not found
You will need to have "mysql" client packages installed on the host where you are running this command:
# yum install mysql-community-client
And then you can run the following command:
# mysql -u ambari ambari -pbigdata