You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2014/07/01 20:45:54 UTC
[2/2] git commit: AMBARI-6341. Ambari creates a mysterious file
/root/&1 (during bootstrap?) (aonishuk)
AMBARI-6341. Ambari creates a mysterious file /root/&1 (during bootstrap?) (aonishuk)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/b7eb36d0
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/b7eb36d0
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/b7eb36d0
Branch: refs/heads/branch-1.6.1
Commit: b7eb36d0ce3452244dfef2ed77fc0b9f48822210
Parents: 1a93b30
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Tue Jul 1 21:45:40 2014 +0300
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Tue Jul 1 21:45:40 2014 +0300
----------------------------------------------------------------------
ambari-agent/src/main/python/ambari_agent/PingPortListener.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/b7eb36d0/ambari-agent/src/main/python/ambari_agent/PingPortListener.py
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/python/ambari_agent/PingPortListener.py b/ambari-agent/src/main/python/ambari_agent/PingPortListener.py
index afaa0ea..e15bdb2 100644
--- a/ambari-agent/src/main/python/ambari_agent/PingPortListener.py
+++ b/ambari-agent/src/main/python/ambari_agent/PingPortListener.py
@@ -26,7 +26,7 @@ import socket
import subprocess
logger = logging.getLogger()
-FUSER_CMD = "fuser {0}/tcp 2>\&1 \| awk \'{1}\'"
+FUSER_CMD = "fuser {0}/tcp 2>/dev/null | awk '{1}'"
PSPF_CMD = "ps -fp {0}"
PORT_IN_USE_MESSAGE = "Could not open port {0} because port already used by another process:\n{1}"