Member since
03-24-2016
91
Posts
7
Kudos Received
5
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
3033 | 10-06-2017 04:29 AM | |
4535 | 09-21-2017 05:37 AM | |
3612 | 08-11-2017 02:34 AM | |
5749 | 04-07-2016 03:17 AM | |
4640 | 03-29-2016 06:08 AM |
03-31-2016
02:20 AM
1 Kudo
# ambari-agent --version 2.2.1.0 # ambari-agent --hash 6a8abfa65789b87da764549c27ca0f1440b91297
... View more
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.
... View more
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
... View more
03-29-2016
02:57 PM
@jeff I once think it was the upgrade cause this problem,so I use clean virtual machine to try thi s,but problem is still the same。 My OS is centos 6.6 64 bit in virtual box,and I use my local ambari repo ,repo name is ambari 2.2.1 upgrade。When I try to install,I use yum install,an show that 2.2.1 is installed,is this the problem?
... View more
03-29-2016
11:20 AM
I have try to use an new virtual machine install the new ambari-agent version 2.2.1,but when I start server on that virtual machine,the ,og still told me : 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 So I think there must be something wrong about the ambari-agent code. May be the basic ambari-agent python lib change lead the problem?? PS: I use the local ambari and hdp repo.
... View more
03-29-2016
08:50 AM
4 Kudos
@Sagar Shimpi @Divakar Annapureddy @gor don I modifythe code of /var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py and find line 141: ambari_db_rca_url = config['hostLevelParams']['ambari_db_rca_url'][0] I add import pprint
print "xxxxxxxxxxxxxxx"
pprint.pprint(config['hostLevelParams'])
print "xxxxxxxxxxxxxxx"
to debug the dictionary content: {'agentCacheDir': '/var/lib/ambari-agent/cache',
'ambari_db_rca_driver': 'com.mysql.jdbc.Driver',
'ambari_db_rca_password': '123456',
'ambari_db_rca_url': 'jdbc:mysql://127.0.0.1:3306/ambari',
'ambari_db_rca_username': 'ambari',
... So I think it call wrong,so I change ambari_db_rca_url = config['hostLevelParams']['ambari_db_rca_url'][0] to ambari_db_rca_url = config['hostLevelParams']['ambari_db_rca_url'] then start the service is OK. so I think is a bug of ambari-agent ??
... View more
03-29-2016
08:13 AM
@Divakar Annapuredd @Sagar Shimpi How to see the real command line ambari-agent execute? So I can debug the python yo find out what problem it is??
... View more
03-29-2016
07:55 AM
@gor don I have google it and find out some people have the same problem ,but no body resloved it yet. Just wait some to tell us and I will have some try.
... View more
03-29-2016
06:08 AM
@Geoffrey Shelton Okot I try to use openjdk 1.8.0_77,install and upgrade from the centos 6 repo,then the problem is resolved. And I post to the content of the blew link https://community.hortonworks.com/questions/145/openssl-error-upon-host-registration.html
... View more
03-29-2016
06:04 AM
@Divakar Annapureddy No,I am not upgrade HDP,just test upgrade ambari,when I met the error: https://community.hortonworks.com/questions/24208/help-ambari-agent-registe-fail-with-netutilpy77-er.html#answer-24705 and the problem is resolved now. Then I install hdp,then met the error as I show in this topic
... View more
- « Previous
- Next »