Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 03-29-2016 04:31 AM
I use ambari 2.2.1.0 and use nonroot user running ther server and the agent.
Install hdp 2.3.4.0-3485 is ok,when I try to start the service such as hdfs ,it was failed with errors,the logs content is blow...
stderr: /var/lib/ambari-agent/data/errors-69.txtTraceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py", line 39, in <module>
BeforeStartHook().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute
method(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py", line 28, in hook
import params
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py", line 141, in <module>
ambari_db_rca_password = config['hostLevelParams']['ambari_db_rca_password'][0]
TypeError: 'int' object is unsubscriptable
stdout: /var/lib/ambari-agent/data/output-69.txt
2016-03-29 12:21:52,902 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.3.4.0-3485
2016-03-29 12:21:52,902 - Checking if need to create versioned conf dir /etc/hadoop/2.3.4.0-3485/0
2016-03-29 12:21:52,903 - call['conf-select create-conf-dir --package hadoop --stack-version 2.3.4.0-3485 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2016-03-29 12:21:52,952 - call returned (1, '/etc/hadoop/2.3.4.0-3485/0 exist already', '')
2016-03-29 12:21:52,952 - checked_call['conf-select set-conf-dir --package hadoop --stack-version 2.3.4.0-3485 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False}
2016-03-29 12:21:52,996 - checked_call returned (0, '/usr/hdp/2.3.4.0-3485/hadoop/conf -> /etc/hadoop/2.3.4.0-3485/0')
2016-03-29 12:21:52,997 - Ensuring that hadoop has the correct symlink structure
2016-03-29 12:21:52,997 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
I had google it for times but no result about.
Created 04-07-2016 03:17 AM
I have reslove the problem.
as I posrt above ,I print the data struct
'ambari_db_rca_password':'123456',
I think it is a sting ,but when I print its type,it is a int type.
So I change the password to 'ambari',it is a sting,then every thing is goto OK!!!
Is still a problem of ambari
Created 03-29-2016 12:10 PM
So to confirm: this is a clean install of Ambari 2.2.1.0, not an upgrade from a previous Ambari?
What OS are you using?
cc @mahadev
Created 03-29-2016 01:23 PM
My OS is centos6.5 and I not an upgrade Ambari
Created 03-30-2016 01:09 PM
Would you mind posting the content of your /etc/ambari-server/conf/ambari.properties file? Also provide the output of "ambari-server --version" and "ambari-server --hash". Thx
Created 03-31-2016 02:20 AM
# ambari-agent --version
2.2.1.0
# ambari-agent --hash
6a8abfa65789b87da764549c27ca0f1440b91297
Created 03-29-2016 01:58 PM
Are you able to start the concerned service manually on the given node? If so, please go ahead and file a technical support case / bug. Upgrade to 2.2.1.1 if possible.
Created 03-30-2016 08:09 AM
This is the contents of my local yum repo file content :
/etc/yum.repos.d/hdp.repo [Ambari-2.1.0] name=Ambari-2.1.0 baseurl=http://repo.test.yunwei/repo/ambari/centos6/ gpgcheck=0 enabled=1 #VERSION_NUMBER=2.2.1.0-161 [Updates-ambari-2.2.1.0] name=ambari-2.2.1.0 - Updates baseurl=http://repo.test.yunwei/repo/AMBARI-2.2.1.0/centos6/2.2.1.0-161/ gpgcheck=1 gpgkey=http://repo.test.yunwei/repo/AMBARI-2.2.1.0/centos6/2.2.1.0-161/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins enabled=1 priority=1 [HDP-2.1] name=HDP-2.1 baseurl=http://repo.test.yunwei/repo/HDP/centos6/2.x/GA/2.1.1.0/ path=/ enabled=1 gpgcheck=0 [HDP-UTILS-1.1.0.19] name=HDP-UTILS-1.1.0.19 baseurl=http://repo.test.yunwei/repo/HDP-UTILS-1.1.0.17/repos/centos6/ path=/ enabled=1 #VERSION_NUMBER=2.3.4.0-3485 [HDP-2.3.4.0] name=HDP Version - HDP-2.3.4.0 baseurl=http://repo.test.yunwei/repo/HDP/centos6/2.x/updates/2.3.4.0 #gpgcheck=1 #gpgkey=http://repo.test.yunwei/repo/HDP/centos6/2.x/updates/2.3.4.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins enabled=1 #priority=1 [HDP-UTILS-1.1.0.20] name=HDP Utils Version - HDP-UTILS-1.1.0.20 baseurl=http://repo.test.yunwei/repo/HDP-UTILS-1.1.0.20/repos/centos6 #gpgcheck=1 gpgkey=http://repo.test.yunwei/repo/HDP-UTILS-1.1.0.20/repos/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins enabled=1 #priority=1
Created 03-30-2016 01:22 PM
After I change the ambari-agent side python code of file:
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py"
as the contents I post above,I can start service on the host which the agent is installed through the ambari-server web gui.
So I think it must be a bug,but I check the same file of the agent at version 2.1,the code is the same and the dumped data structure in the memory is the same between two versions.So I don't know what differents lead the problem.
Created 04-05-2016 03:10 AM
/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py
How to modify params.py file ? you can start service
Created 04-06-2016 04:26 AM
I post it above
Created 04-07-2016 03:19 AM
I reslove the problem ,because the password of the account which ambari to access mysql is a pure number, the code read the type to int but not a sting . change your password and every thing is ok.