You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/02/16 13:17:02 UTC
[jira] [Commented] (AMBARI-22349) Add host fails
[ https://issues.apache.org/jira/browse/AMBARI-22349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16367245#comment-16367245 ]
Hudson commented on AMBARI-22349:
---------------------------------
FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #8744 (See [https://builds.apache.org/job/Ambari-trunk-Commit/8744/])
AMBARI-22349. Changing hostname causes ambari-agent start to fail (aonishuk: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=9095c910d8ca42023887779b59c9cfc5f49f9ea0])
* (edit) ambari-agent/src/main/python/ambari_agent/ClusterTopologyCache.py
AMBARI-22349. Changing hostname causes ambari-agent start to fail (aonishuk: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=c0a57a724adc42fd33aa2d87f988d94149285817])
* (edit) ambari-agent/src/main/python/ambari_agent/ClusterTopologyCache.py
> Add host fails
> --------------
>
> Key: AMBARI-22349
> URL: https://issues.apache.org/jira/browse/AMBARI-22349
> Project: Ambari
> Issue Type: Bug
> Reporter: Andrew Onischuk
> Assignee: Andrew Onischuk
> Priority: Trivial
> Fix For: 3.0.0
>
> Attachments: AMBARI-22349.patch
>
>
> [root@gc6401 ~]# ambari-agent restart
> Restarting ambari-agent
> Verifying Python version compatibility...
> Using python /usr/bin/python
> ambari-agent is not running. No PID found at /var/run/ambari-agent/ambari-agent.pid
> Verifying Python version compatibility...
> Using python /usr/bin/python
> Checking for previously running Ambari Agent...
> Checking ambari-common dir...
> Starting ambari-agent
> /var/lib/ambari-agent/bin/ambari-agent: line 185: 10328 Killed nohup $PYTHON $AMBARI_AGENT_PY_SCRIPT "$@" > $OUTFILE 2>&1
> Verifying ambari-agent process status...
> ERROR: ambari-agent start failed. For more details, see /var/log/ambari-agent/ambari-agent.out:
> ====================
> self.topology_cache = ClusterTopologyCache(self.config.cluster_cache_dir, self.config)
> File "/usr/lib/python2.6/site-packages/ambari_agent/ClusterTopologyCache.py", line 50, in __init__
> super(ClusterTopologyCache, self).__init__(cluster_cache_dir)
> File "/usr/lib/python2.6/site-packages/ambari_agent/ClusterCache.py", line 72, in __init__
> self.rewrite_cache(cache_dict, self.hash)
> File "/usr/lib/python2.6/site-packages/ambari_agent/ClusterCache.py", line 98, in rewrite_cache
> self.on_cache_update()
> File "/usr/lib/python2.6/site-packages/ambari_agent/ClusterTopologyCache.py", line 75, in on_cache_update
> current_host_id = self.current_host_ids_to_cluster[cluster_id]
> KeyError: '2'
> ====================
> Agent out at: /var/log/ambari-agent/ambari-agent.out
> Agent log at: /var/log/ambari-agent/ambari-agent.log
>
> This happens because topology contains invalid hostname and cannot be loaded
> correctly.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)