소스 검색

AMBARI-6341. Ambari creates a mysterious file /root/&1 (during bootstrap?) (aonishuk)

Andrew Onishuk 11 년 전
부모
커밋
69fe4f67c7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ambari-agent/src/main/python/ambari_agent/PingPortListener.py

+ 1 - 1
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}"