When I tried adding Host on Ambari 22.214.171.124, I encountered "Error while bootstrapping: Cannot run program "/usr/lib/python2.6/site-packages/ambari_server/bootstrap.py": error=2, No such file or directory" in "Confirm Hosts" step. This issue https://issues.apache.org/jira/browse/AMBARI-22983 seems to relate this problem, but the patch in this issue did not work.
OS of all hosts to be added and the host Ambari Server running is CentOS7.3.
How can I solve this problem?
As the fix is "prop_value = prop_value.replace("/usr/lib/python2.6/site-packages", "/usr/lib/ambari-server/lib")", how about creating a symlink?
ln -s /usr/lib/ambari-server/lib /usr/lib/python2.6/site-packages
Thank you all!
OK. I'll upgrade Ambari to 126.96.36.199 ASAP.
The solution that Hajime showed also worked with a trivial modification.
ln -s /usr/lib/ambari-server/lib/ambari_server /usr/lib/python2.6/site-packages/ambari_server