Repository: ambari Updated Branches: refs/heads/trunk a763ace5e -> f9e70802c
AMBARI-16124. On restarting ambari-agent goes in heartbeat lost state due to other java processes configurations.(vbrodetskyi) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/f9e70802 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/f9e70802 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/f9e70802 Branch: refs/heads/trunk Commit: f9e70802c7833e7e49b306a7bf0004dbb25bc08f Parents: a763ace Author: Vitaly Brodetskyi <[email protected]> Authored: Tue Apr 26 10:42:45 2016 +0300 Committer: Vitaly Brodetskyi <[email protected]> Committed: Tue Apr 26 10:42:45 2016 +0300 ---------------------------------------------------------------------- ambari-agent/src/main/python/ambari_agent/HostInfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/f9e70802/ambari-agent/src/main/python/ambari_agent/HostInfo.py ---------------------------------------------------------------------- diff --git a/ambari-agent/src/main/python/ambari_agent/HostInfo.py b/ambari-agent/src/main/python/ambari_agent/HostInfo.py index 2aae19e..9eb36d8 100644 --- a/ambari-agent/src/main/python/ambari_agent/HostInfo.py +++ b/ambari-agent/src/main/python/ambari_agent/HostInfo.py @@ -225,7 +225,7 @@ class HostInfoLinux(HostInfo): for filter in self.PROC_FILTER: if filter in cmd: dict['hadoop'] = True - dict['command'] = cmd.strip() + dict['command'] = unicode(cmd.strip(), errors='ignore') for line in open(os.path.join('/proc', pid, 'status')): if line.startswith('Uid:'): uid = int(line.split()[1])
