You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Robert Geiger (JIRA)" <ji...@apache.org> on 2015/09/22 03:05:04 UTC

[jira] [Created] (AMBARI-13176) Ambari agent should reject configured service ports for connections

Robert Geiger created AMBARI-13176:
--------------------------------------

             Summary: Ambari agent should reject configured service ports for connections
                 Key: AMBARI-13176
                 URL: https://issues.apache.org/jira/browse/AMBARI-13176
             Project: Ambari
          Issue Type: Bug
          Components: ambari-agent
    Affects Versions: 2.0.0
         Environment: CentOS release 6.7 (Final)
            Reporter: Robert Geiger


(may be related to AMBARI-10021 which was marked fixed for 2.0.0)

ambari-agent should reject ports obtained when connecting to the server if the conflict with a configured service port.

Below the agent got port 45454 when connecting to the server, but port 45454 is configured to be the namenode address port.

$ sudo netstat -a -n -p | grep 45454
tcp        0      0 172.31.26.5:45454           172.31.26.4:8441            ESTABLISHED 6706/python2.6      

$ ps aux | grep 6706
root      6706  0.4  0.0 1547504 27260 ?       Sl   Sep21   1:12 /usr/bin/python2.6 /usr/lib/python2.6/site-packages/ambari_agent/main.py start restart --expected-hostname=ip-172-31-26-5.us-west-2.compute.internal

The agent should probably check if a socket open gave a port that is a configured service port and try again if it is.

Ambari version is 2.0.0, installed as:

wget http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.0.0/ambari.repo -O /etc/yum.repos.d/ambari.repo


sudo yum install ambari-server





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)