ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-22349) Add host fails
Date Thu, 02 Nov 2017 15:20:00 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-22349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrew Onischuk updated AMBARI-22349:
-------------------------------------
    Summary: Add host fails  (was: Changing hostname causes ambari-agent start to fail)

> 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
>             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
(v6.4.14#64029)

Mime
View raw message