Ambari agent registering failed and no errors be found! I use RHEL7.3 and Python2.7.5











up vote
0
down vote

favorite
1












1、When I add a new host into the cluster,I met the below errors. As you see, there are no errors in the log!
2、There are no errors in ambari-server.log and ambari-agent.log



3、I tried to add other hosts,all of them are failed.



4、firewall、iptables、selinux all disabled. I use RHEL7.3 and Python2.7.5



5、When I add this physical machine to a cluster which the Ambari server installed in a virtual machine, it can be registered successfully, but when I add it to a cluster which the Ambari server installed in a physical machine,it's configuration also like the below info,I encountered the failure.



6、the physical machine configuration

CPU



Architecture:          x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 112
On-line CPU(s) list: 0-111
Thread(s) per core: 2
Core(s) per socket: 14
Socket(s): 4
NUMA node(s): 4
Vendor ID: GenuineIntel
CPU family: 6
Model: 79
Model name: Intel(R) Xeon(R) CPU E7-4830 v4 @ 2.00GHz
Stepping: 1
CPU MHz: 1995.140
BogoMIPS: 3996.78
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 35840K
NUMA node0 CPU(s): 0-13,56-69
NUMA node1 CPU(s): 14-27,70-83
NUMA node2 CPU(s): 28-41,84-97
NUMA node3 CPU(s): 42-55,98-111


Mem



free -g
total used free shared buff/cache available
Mem: 503 4 497 0 1 498
Swap: 31 0 31


7、the virtual machine configuration:

CPU



Architecture:          x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 16
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 42
Model name: Intel Xeon E312xx (Sandy Bridge)
Stepping: 1
CPU MHz: 2199.998
BogoMIPS: 4399.99
Virtualization: VT-x
Hypervisor vendor: KVM
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 4096K
L3 cache: 16384K
NUMA node0 CPU(s): 0-15


Mem



free -g
total used free shared buff/cache available
Mem: 31 6 9 0 14 23
Swap: 3 0 3


enter image description here



Here is the content of ambari-agent.log.
Has anyone ever encountered a similar error?



==========================
Creating target directory...
==========================

Command start time 2018-11-06 08:36:13

Connection to test-dldsj-datanode01 closed.
SSH command execution finished
host=test-dldsj-datanode01, exitcode=0
Command end time 2018-11-06 08:36:13

==========================
Copying ambari sudo script...
==========================

Command start time 2018-11-06 08:36:13

scp /var/lib/ambari-server/ambari-sudo.sh
host=test-dldsj-datanode01, exitcode=0
Command end time 2018-11-06 08:36:13

==========================
Copying common functions script...
==========================

Command start time 2018-11-06 08:36:13

scp /usr/lib/python2.6/site-packages/ambari_commons
host=test-dldsj-datanode01, exitcode=0
Command end time 2018-11-06 08:36:13

==========================
Copying OS type check script...
==========================

Command start time 2018-11-06 08:36:13

scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py
host=test-dldsj-datanode01, exitcode=0
Command end time 2018-11-06 08:36:13

==========================
Running OS type check...
==========================

Command start time 2018-11-06 08:36:13
Cluster primary/cluster OS family is redhat7 and local/current OS family is redhat7

Connection to test-dldsj-datanode01 closed.
SSH command execution finished
host=test-dldsj-datanode01, exitcode=0
Command end time 2018-11-06 08:36:14

==========================
Checking 'sudo' package on remote host...
==========================

Command start time 2018-11-06 08:36:14

Connection to test-dldsj-datanode01 closed.
SSH command execution finished
host=test-dldsj-datanode01, exitcode=0
Command end time 2018-11-06 08:36:14

==========================
Copying repo file to 'tmp' folder...
==========================

Command start time 2018-11-06 08:36:14

scp /etc/yum.repos.d/ambari.repo
host=test-dldsj-datanode01, exitcode=0
Command end time 2018-11-06 08:36:14

==========================
Moving file to repo dir...
==========================

Command start time 2018-11-06 08:36:14

Connection to test-dldsj-datanode01 closed.
SSH command execution finished
host=test-dldsj-datanode01, exitcode=0
Command end time 2018-11-06 08:36:14

==========================
Changing permissions for ambari.repo...
==========================

Command start time 2018-11-06 08:36:14

Connection to test-dldsj-datanode01 closed.
SSH command execution finished
host=test-dldsj-datanode01, exitcode=0
Command end time 2018-11-06 08:36:14

==========================
Copying setup script file...
==========================

Command start time 2018-11-06 08:36:14

scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py
host=test-dldsj-datanode01, exitcode=0
Command end time 2018-11-06 08:36:14

==========================
Running setup agent script...
==========================

Command start time 2018-11-06 08:36:14
('INFO 2018-11-05 17:03:53,137 DataCleaner.py:120 - Data cleanup started
INFO 2018-11-05 17:03:53,137 DataCleaner.py:122 - Data cleanup finished
INFO 2018-11-05 17:03:53,189 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2018-11-05 17:03:53,191 main.py:349 - Connecting to Ambari server at https://test-dldsj-datanode01:8440 (10.212.155.20)
INFO 2018-11-05 17:03:53,191 NetUtil.py:62 - Connecting to https://test-dldsj-datanode01:8440/ca
INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
INFO 2018-11-06 08:36:16,394 HeartbeatHandlers.py:83 - Ambari-agent received 15 signal, stopping...
INFO 2018-11-06 08:36:46,537 main.py:226 - Agent not going to die gracefully, going to execute kill -9
INFO 2018-11-06 08:36:46,553 ExitHelper.py:53 - Performing cleanup before exiting...
INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
INFO 2018-11-06 08:36:46,906 DataCleaner.py:39 - Data cleanup thread started
INFO 2018-11-06 08:36:46,908 DataCleaner.py:120 - Data cleanup started
INFO 2018-11-06 08:36:46,909 DataCleaner.py:122 - Data cleanup finished
INFO 2018-11-06 08:36:46,961 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2018-11-06 08:36:46,964 main.py:349 - Connecting to Ambari server at https://test-dldsj-datanode01:8440 (10.212.155.20)
INFO 2018-11-06 08:36:46,964 NetUtil.py:62 - Connecting to https://test-dldsj-datanode01:8440/ca
', None)
('INFO 2018-11-05 17:03:53,137 DataCleaner.py:120 - Data cleanup started
INFO 2018-11-05 17:03:53,137 DataCleaner.py:122 - Data cleanup finished
INFO 2018-11-05 17:03:53,189 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2018-11-05 17:03:53,191 main.py:349 - Connecting to Ambari server at https://test-dldsj-datanode01:8440 (10.212.155.20)
INFO 2018-11-05 17:03:53,191 NetUtil.py:62 - Connecting to https://test-dldsj-datanode01:8440/ca
INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
INFO 2018-11-06 08:36:16,394 HeartbeatHandlers.py:83 - Ambari-agent received 15 signal, stopping...
INFO 2018-11-06 08:36:46,537 main.py:226 - Agent not going to die gracefully, going to execute kill -9
INFO 2018-11-06 08:36:46,553 ExitHelper.py:53 - Performing cleanup before exiting...
INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
INFO 2018-11-06 08:36:46,906 DataCleaner.py:39 - Data cleanup thread started
INFO 2018-11-06 08:36:46,908 DataCleaner.py:120 - Data cleanup started
INFO 2018-11-06 08:36:46,909 DataCleaner.py:122 - Data cleanup finished
INFO 2018-11-06 08:36:46,961 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2018-11-06 08:36:46,964 main.py:349 - Connecting to Ambari server at https://test-dldsj-datanode01:8440 (10.212.155.20)
INFO 2018-11-06 08:36:46,964 NetUtil.py:62 - Connecting to https://test-dldsj-datanode01:8440/ca
', None)

Connection to test-dldsj-datanode01 closed.
SSH command execution finished
host=test-dldsj-datanode01, exitcode=0
Command end time 2018-11-06 08:36:49

Registering with the server...
Registration with the server failed.


If someone has the same problem, I hope you can help me.thank you very much!










share|improve this question




























    up vote
    0
    down vote

    favorite
    1












    1、When I add a new host into the cluster,I met the below errors. As you see, there are no errors in the log!
    2、There are no errors in ambari-server.log and ambari-agent.log



    3、I tried to add other hosts,all of them are failed.



    4、firewall、iptables、selinux all disabled. I use RHEL7.3 and Python2.7.5



    5、When I add this physical machine to a cluster which the Ambari server installed in a virtual machine, it can be registered successfully, but when I add it to a cluster which the Ambari server installed in a physical machine,it's configuration also like the below info,I encountered the failure.



    6、the physical machine configuration

    CPU



    Architecture:          x86_64
    CPU op-mode(s): 32-bit, 64-bit
    Byte Order: Little Endian
    CPU(s): 112
    On-line CPU(s) list: 0-111
    Thread(s) per core: 2
    Core(s) per socket: 14
    Socket(s): 4
    NUMA node(s): 4
    Vendor ID: GenuineIntel
    CPU family: 6
    Model: 79
    Model name: Intel(R) Xeon(R) CPU E7-4830 v4 @ 2.00GHz
    Stepping: 1
    CPU MHz: 1995.140
    BogoMIPS: 3996.78
    Virtualization: VT-x
    L1d cache: 32K
    L1i cache: 32K
    L2 cache: 256K
    L3 cache: 35840K
    NUMA node0 CPU(s): 0-13,56-69
    NUMA node1 CPU(s): 14-27,70-83
    NUMA node2 CPU(s): 28-41,84-97
    NUMA node3 CPU(s): 42-55,98-111


    Mem



    free -g
    total used free shared buff/cache available
    Mem: 503 4 497 0 1 498
    Swap: 31 0 31


    7、the virtual machine configuration:

    CPU



    Architecture:          x86_64
    CPU op-mode(s): 32-bit, 64-bit
    Byte Order: Little Endian
    CPU(s): 16
    On-line CPU(s) list: 0-15
    Thread(s) per core: 1
    Core(s) per socket: 1
    Socket(s): 16
    NUMA node(s): 1
    Vendor ID: GenuineIntel
    CPU family: 6
    Model: 42
    Model name: Intel Xeon E312xx (Sandy Bridge)
    Stepping: 1
    CPU MHz: 2199.998
    BogoMIPS: 4399.99
    Virtualization: VT-x
    Hypervisor vendor: KVM
    Virtualization type: full
    L1d cache: 32K
    L1i cache: 32K
    L2 cache: 4096K
    L3 cache: 16384K
    NUMA node0 CPU(s): 0-15


    Mem



    free -g
    total used free shared buff/cache available
    Mem: 31 6 9 0 14 23
    Swap: 3 0 3


    enter image description here



    Here is the content of ambari-agent.log.
    Has anyone ever encountered a similar error?



    ==========================
    Creating target directory...
    ==========================

    Command start time 2018-11-06 08:36:13

    Connection to test-dldsj-datanode01 closed.
    SSH command execution finished
    host=test-dldsj-datanode01, exitcode=0
    Command end time 2018-11-06 08:36:13

    ==========================
    Copying ambari sudo script...
    ==========================

    Command start time 2018-11-06 08:36:13

    scp /var/lib/ambari-server/ambari-sudo.sh
    host=test-dldsj-datanode01, exitcode=0
    Command end time 2018-11-06 08:36:13

    ==========================
    Copying common functions script...
    ==========================

    Command start time 2018-11-06 08:36:13

    scp /usr/lib/python2.6/site-packages/ambari_commons
    host=test-dldsj-datanode01, exitcode=0
    Command end time 2018-11-06 08:36:13

    ==========================
    Copying OS type check script...
    ==========================

    Command start time 2018-11-06 08:36:13

    scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py
    host=test-dldsj-datanode01, exitcode=0
    Command end time 2018-11-06 08:36:13

    ==========================
    Running OS type check...
    ==========================

    Command start time 2018-11-06 08:36:13
    Cluster primary/cluster OS family is redhat7 and local/current OS family is redhat7

    Connection to test-dldsj-datanode01 closed.
    SSH command execution finished
    host=test-dldsj-datanode01, exitcode=0
    Command end time 2018-11-06 08:36:14

    ==========================
    Checking 'sudo' package on remote host...
    ==========================

    Command start time 2018-11-06 08:36:14

    Connection to test-dldsj-datanode01 closed.
    SSH command execution finished
    host=test-dldsj-datanode01, exitcode=0
    Command end time 2018-11-06 08:36:14

    ==========================
    Copying repo file to 'tmp' folder...
    ==========================

    Command start time 2018-11-06 08:36:14

    scp /etc/yum.repos.d/ambari.repo
    host=test-dldsj-datanode01, exitcode=0
    Command end time 2018-11-06 08:36:14

    ==========================
    Moving file to repo dir...
    ==========================

    Command start time 2018-11-06 08:36:14

    Connection to test-dldsj-datanode01 closed.
    SSH command execution finished
    host=test-dldsj-datanode01, exitcode=0
    Command end time 2018-11-06 08:36:14

    ==========================
    Changing permissions for ambari.repo...
    ==========================

    Command start time 2018-11-06 08:36:14

    Connection to test-dldsj-datanode01 closed.
    SSH command execution finished
    host=test-dldsj-datanode01, exitcode=0
    Command end time 2018-11-06 08:36:14

    ==========================
    Copying setup script file...
    ==========================

    Command start time 2018-11-06 08:36:14

    scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py
    host=test-dldsj-datanode01, exitcode=0
    Command end time 2018-11-06 08:36:14

    ==========================
    Running setup agent script...
    ==========================

    Command start time 2018-11-06 08:36:14
    ('INFO 2018-11-05 17:03:53,137 DataCleaner.py:120 - Data cleanup started
    INFO 2018-11-05 17:03:53,137 DataCleaner.py:122 - Data cleanup finished
    INFO 2018-11-05 17:03:53,189 PingPortListener.py:50 - Ping port listener started on port: 8670
    INFO 2018-11-05 17:03:53,191 main.py:349 - Connecting to Ambari server at https://test-dldsj-datanode01:8440 (10.212.155.20)
    INFO 2018-11-05 17:03:53,191 NetUtil.py:62 - Connecting to https://test-dldsj-datanode01:8440/ca
    INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
    INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
    INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
    INFO 2018-11-06 08:36:16,394 HeartbeatHandlers.py:83 - Ambari-agent received 15 signal, stopping...
    INFO 2018-11-06 08:36:46,537 main.py:226 - Agent not going to die gracefully, going to execute kill -9
    INFO 2018-11-06 08:36:46,553 ExitHelper.py:53 - Performing cleanup before exiting...
    INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
    INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
    INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
    INFO 2018-11-06 08:36:46,906 DataCleaner.py:39 - Data cleanup thread started
    INFO 2018-11-06 08:36:46,908 DataCleaner.py:120 - Data cleanup started
    INFO 2018-11-06 08:36:46,909 DataCleaner.py:122 - Data cleanup finished
    INFO 2018-11-06 08:36:46,961 PingPortListener.py:50 - Ping port listener started on port: 8670
    INFO 2018-11-06 08:36:46,964 main.py:349 - Connecting to Ambari server at https://test-dldsj-datanode01:8440 (10.212.155.20)
    INFO 2018-11-06 08:36:46,964 NetUtil.py:62 - Connecting to https://test-dldsj-datanode01:8440/ca
    ', None)
    ('INFO 2018-11-05 17:03:53,137 DataCleaner.py:120 - Data cleanup started
    INFO 2018-11-05 17:03:53,137 DataCleaner.py:122 - Data cleanup finished
    INFO 2018-11-05 17:03:53,189 PingPortListener.py:50 - Ping port listener started on port: 8670
    INFO 2018-11-05 17:03:53,191 main.py:349 - Connecting to Ambari server at https://test-dldsj-datanode01:8440 (10.212.155.20)
    INFO 2018-11-05 17:03:53,191 NetUtil.py:62 - Connecting to https://test-dldsj-datanode01:8440/ca
    INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
    INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
    INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
    INFO 2018-11-06 08:36:16,394 HeartbeatHandlers.py:83 - Ambari-agent received 15 signal, stopping...
    INFO 2018-11-06 08:36:46,537 main.py:226 - Agent not going to die gracefully, going to execute kill -9
    INFO 2018-11-06 08:36:46,553 ExitHelper.py:53 - Performing cleanup before exiting...
    INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
    INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
    INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
    INFO 2018-11-06 08:36:46,906 DataCleaner.py:39 - Data cleanup thread started
    INFO 2018-11-06 08:36:46,908 DataCleaner.py:120 - Data cleanup started
    INFO 2018-11-06 08:36:46,909 DataCleaner.py:122 - Data cleanup finished
    INFO 2018-11-06 08:36:46,961 PingPortListener.py:50 - Ping port listener started on port: 8670
    INFO 2018-11-06 08:36:46,964 main.py:349 - Connecting to Ambari server at https://test-dldsj-datanode01:8440 (10.212.155.20)
    INFO 2018-11-06 08:36:46,964 NetUtil.py:62 - Connecting to https://test-dldsj-datanode01:8440/ca
    ', None)

    Connection to test-dldsj-datanode01 closed.
    SSH command execution finished
    host=test-dldsj-datanode01, exitcode=0
    Command end time 2018-11-06 08:36:49

    Registering with the server...
    Registration with the server failed.


    If someone has the same problem, I hope you can help me.thank you very much!










    share|improve this question


























      up vote
      0
      down vote

      favorite
      1









      up vote
      0
      down vote

      favorite
      1






      1





      1、When I add a new host into the cluster,I met the below errors. As you see, there are no errors in the log!
      2、There are no errors in ambari-server.log and ambari-agent.log



      3、I tried to add other hosts,all of them are failed.



      4、firewall、iptables、selinux all disabled. I use RHEL7.3 and Python2.7.5



      5、When I add this physical machine to a cluster which the Ambari server installed in a virtual machine, it can be registered successfully, but when I add it to a cluster which the Ambari server installed in a physical machine,it's configuration also like the below info,I encountered the failure.



      6、the physical machine configuration

      CPU



      Architecture:          x86_64
      CPU op-mode(s): 32-bit, 64-bit
      Byte Order: Little Endian
      CPU(s): 112
      On-line CPU(s) list: 0-111
      Thread(s) per core: 2
      Core(s) per socket: 14
      Socket(s): 4
      NUMA node(s): 4
      Vendor ID: GenuineIntel
      CPU family: 6
      Model: 79
      Model name: Intel(R) Xeon(R) CPU E7-4830 v4 @ 2.00GHz
      Stepping: 1
      CPU MHz: 1995.140
      BogoMIPS: 3996.78
      Virtualization: VT-x
      L1d cache: 32K
      L1i cache: 32K
      L2 cache: 256K
      L3 cache: 35840K
      NUMA node0 CPU(s): 0-13,56-69
      NUMA node1 CPU(s): 14-27,70-83
      NUMA node2 CPU(s): 28-41,84-97
      NUMA node3 CPU(s): 42-55,98-111


      Mem



      free -g
      total used free shared buff/cache available
      Mem: 503 4 497 0 1 498
      Swap: 31 0 31


      7、the virtual machine configuration:

      CPU



      Architecture:          x86_64
      CPU op-mode(s): 32-bit, 64-bit
      Byte Order: Little Endian
      CPU(s): 16
      On-line CPU(s) list: 0-15
      Thread(s) per core: 1
      Core(s) per socket: 1
      Socket(s): 16
      NUMA node(s): 1
      Vendor ID: GenuineIntel
      CPU family: 6
      Model: 42
      Model name: Intel Xeon E312xx (Sandy Bridge)
      Stepping: 1
      CPU MHz: 2199.998
      BogoMIPS: 4399.99
      Virtualization: VT-x
      Hypervisor vendor: KVM
      Virtualization type: full
      L1d cache: 32K
      L1i cache: 32K
      L2 cache: 4096K
      L3 cache: 16384K
      NUMA node0 CPU(s): 0-15


      Mem



      free -g
      total used free shared buff/cache available
      Mem: 31 6 9 0 14 23
      Swap: 3 0 3


      enter image description here



      Here is the content of ambari-agent.log.
      Has anyone ever encountered a similar error?



      ==========================
      Creating target directory...
      ==========================

      Command start time 2018-11-06 08:36:13

      Connection to test-dldsj-datanode01 closed.
      SSH command execution finished
      host=test-dldsj-datanode01, exitcode=0
      Command end time 2018-11-06 08:36:13

      ==========================
      Copying ambari sudo script...
      ==========================

      Command start time 2018-11-06 08:36:13

      scp /var/lib/ambari-server/ambari-sudo.sh
      host=test-dldsj-datanode01, exitcode=0
      Command end time 2018-11-06 08:36:13

      ==========================
      Copying common functions script...
      ==========================

      Command start time 2018-11-06 08:36:13

      scp /usr/lib/python2.6/site-packages/ambari_commons
      host=test-dldsj-datanode01, exitcode=0
      Command end time 2018-11-06 08:36:13

      ==========================
      Copying OS type check script...
      ==========================

      Command start time 2018-11-06 08:36:13

      scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py
      host=test-dldsj-datanode01, exitcode=0
      Command end time 2018-11-06 08:36:13

      ==========================
      Running OS type check...
      ==========================

      Command start time 2018-11-06 08:36:13
      Cluster primary/cluster OS family is redhat7 and local/current OS family is redhat7

      Connection to test-dldsj-datanode01 closed.
      SSH command execution finished
      host=test-dldsj-datanode01, exitcode=0
      Command end time 2018-11-06 08:36:14

      ==========================
      Checking 'sudo' package on remote host...
      ==========================

      Command start time 2018-11-06 08:36:14

      Connection to test-dldsj-datanode01 closed.
      SSH command execution finished
      host=test-dldsj-datanode01, exitcode=0
      Command end time 2018-11-06 08:36:14

      ==========================
      Copying repo file to 'tmp' folder...
      ==========================

      Command start time 2018-11-06 08:36:14

      scp /etc/yum.repos.d/ambari.repo
      host=test-dldsj-datanode01, exitcode=0
      Command end time 2018-11-06 08:36:14

      ==========================
      Moving file to repo dir...
      ==========================

      Command start time 2018-11-06 08:36:14

      Connection to test-dldsj-datanode01 closed.
      SSH command execution finished
      host=test-dldsj-datanode01, exitcode=0
      Command end time 2018-11-06 08:36:14

      ==========================
      Changing permissions for ambari.repo...
      ==========================

      Command start time 2018-11-06 08:36:14

      Connection to test-dldsj-datanode01 closed.
      SSH command execution finished
      host=test-dldsj-datanode01, exitcode=0
      Command end time 2018-11-06 08:36:14

      ==========================
      Copying setup script file...
      ==========================

      Command start time 2018-11-06 08:36:14

      scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py
      host=test-dldsj-datanode01, exitcode=0
      Command end time 2018-11-06 08:36:14

      ==========================
      Running setup agent script...
      ==========================

      Command start time 2018-11-06 08:36:14
      ('INFO 2018-11-05 17:03:53,137 DataCleaner.py:120 - Data cleanup started
      INFO 2018-11-05 17:03:53,137 DataCleaner.py:122 - Data cleanup finished
      INFO 2018-11-05 17:03:53,189 PingPortListener.py:50 - Ping port listener started on port: 8670
      INFO 2018-11-05 17:03:53,191 main.py:349 - Connecting to Ambari server at https://test-dldsj-datanode01:8440 (10.212.155.20)
      INFO 2018-11-05 17:03:53,191 NetUtil.py:62 - Connecting to https://test-dldsj-datanode01:8440/ca
      INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:16,394 HeartbeatHandlers.py:83 - Ambari-agent received 15 signal, stopping...
      INFO 2018-11-06 08:36:46,537 main.py:226 - Agent not going to die gracefully, going to execute kill -9
      INFO 2018-11-06 08:36:46,553 ExitHelper.py:53 - Performing cleanup before exiting...
      INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:46,906 DataCleaner.py:39 - Data cleanup thread started
      INFO 2018-11-06 08:36:46,908 DataCleaner.py:120 - Data cleanup started
      INFO 2018-11-06 08:36:46,909 DataCleaner.py:122 - Data cleanup finished
      INFO 2018-11-06 08:36:46,961 PingPortListener.py:50 - Ping port listener started on port: 8670
      INFO 2018-11-06 08:36:46,964 main.py:349 - Connecting to Ambari server at https://test-dldsj-datanode01:8440 (10.212.155.20)
      INFO 2018-11-06 08:36:46,964 NetUtil.py:62 - Connecting to https://test-dldsj-datanode01:8440/ca
      ', None)
      ('INFO 2018-11-05 17:03:53,137 DataCleaner.py:120 - Data cleanup started
      INFO 2018-11-05 17:03:53,137 DataCleaner.py:122 - Data cleanup finished
      INFO 2018-11-05 17:03:53,189 PingPortListener.py:50 - Ping port listener started on port: 8670
      INFO 2018-11-05 17:03:53,191 main.py:349 - Connecting to Ambari server at https://test-dldsj-datanode01:8440 (10.212.155.20)
      INFO 2018-11-05 17:03:53,191 NetUtil.py:62 - Connecting to https://test-dldsj-datanode01:8440/ca
      INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:16,394 HeartbeatHandlers.py:83 - Ambari-agent received 15 signal, stopping...
      INFO 2018-11-06 08:36:46,537 main.py:226 - Agent not going to die gracefully, going to execute kill -9
      INFO 2018-11-06 08:36:46,553 ExitHelper.py:53 - Performing cleanup before exiting...
      INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:46,906 DataCleaner.py:39 - Data cleanup thread started
      INFO 2018-11-06 08:36:46,908 DataCleaner.py:120 - Data cleanup started
      INFO 2018-11-06 08:36:46,909 DataCleaner.py:122 - Data cleanup finished
      INFO 2018-11-06 08:36:46,961 PingPortListener.py:50 - Ping port listener started on port: 8670
      INFO 2018-11-06 08:36:46,964 main.py:349 - Connecting to Ambari server at https://test-dldsj-datanode01:8440 (10.212.155.20)
      INFO 2018-11-06 08:36:46,964 NetUtil.py:62 - Connecting to https://test-dldsj-datanode01:8440/ca
      ', None)

      Connection to test-dldsj-datanode01 closed.
      SSH command execution finished
      host=test-dldsj-datanode01, exitcode=0
      Command end time 2018-11-06 08:36:49

      Registering with the server...
      Registration with the server failed.


      If someone has the same problem, I hope you can help me.thank you very much!










      share|improve this question















      1、When I add a new host into the cluster,I met the below errors. As you see, there are no errors in the log!
      2、There are no errors in ambari-server.log and ambari-agent.log



      3、I tried to add other hosts,all of them are failed.



      4、firewall、iptables、selinux all disabled. I use RHEL7.3 and Python2.7.5



      5、When I add this physical machine to a cluster which the Ambari server installed in a virtual machine, it can be registered successfully, but when I add it to a cluster which the Ambari server installed in a physical machine,it's configuration also like the below info,I encountered the failure.



      6、the physical machine configuration

      CPU



      Architecture:          x86_64
      CPU op-mode(s): 32-bit, 64-bit
      Byte Order: Little Endian
      CPU(s): 112
      On-line CPU(s) list: 0-111
      Thread(s) per core: 2
      Core(s) per socket: 14
      Socket(s): 4
      NUMA node(s): 4
      Vendor ID: GenuineIntel
      CPU family: 6
      Model: 79
      Model name: Intel(R) Xeon(R) CPU E7-4830 v4 @ 2.00GHz
      Stepping: 1
      CPU MHz: 1995.140
      BogoMIPS: 3996.78
      Virtualization: VT-x
      L1d cache: 32K
      L1i cache: 32K
      L2 cache: 256K
      L3 cache: 35840K
      NUMA node0 CPU(s): 0-13,56-69
      NUMA node1 CPU(s): 14-27,70-83
      NUMA node2 CPU(s): 28-41,84-97
      NUMA node3 CPU(s): 42-55,98-111


      Mem



      free -g
      total used free shared buff/cache available
      Mem: 503 4 497 0 1 498
      Swap: 31 0 31


      7、the virtual machine configuration:

      CPU



      Architecture:          x86_64
      CPU op-mode(s): 32-bit, 64-bit
      Byte Order: Little Endian
      CPU(s): 16
      On-line CPU(s) list: 0-15
      Thread(s) per core: 1
      Core(s) per socket: 1
      Socket(s): 16
      NUMA node(s): 1
      Vendor ID: GenuineIntel
      CPU family: 6
      Model: 42
      Model name: Intel Xeon E312xx (Sandy Bridge)
      Stepping: 1
      CPU MHz: 2199.998
      BogoMIPS: 4399.99
      Virtualization: VT-x
      Hypervisor vendor: KVM
      Virtualization type: full
      L1d cache: 32K
      L1i cache: 32K
      L2 cache: 4096K
      L3 cache: 16384K
      NUMA node0 CPU(s): 0-15


      Mem



      free -g
      total used free shared buff/cache available
      Mem: 31 6 9 0 14 23
      Swap: 3 0 3


      enter image description here



      Here is the content of ambari-agent.log.
      Has anyone ever encountered a similar error?



      ==========================
      Creating target directory...
      ==========================

      Command start time 2018-11-06 08:36:13

      Connection to test-dldsj-datanode01 closed.
      SSH command execution finished
      host=test-dldsj-datanode01, exitcode=0
      Command end time 2018-11-06 08:36:13

      ==========================
      Copying ambari sudo script...
      ==========================

      Command start time 2018-11-06 08:36:13

      scp /var/lib/ambari-server/ambari-sudo.sh
      host=test-dldsj-datanode01, exitcode=0
      Command end time 2018-11-06 08:36:13

      ==========================
      Copying common functions script...
      ==========================

      Command start time 2018-11-06 08:36:13

      scp /usr/lib/python2.6/site-packages/ambari_commons
      host=test-dldsj-datanode01, exitcode=0
      Command end time 2018-11-06 08:36:13

      ==========================
      Copying OS type check script...
      ==========================

      Command start time 2018-11-06 08:36:13

      scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py
      host=test-dldsj-datanode01, exitcode=0
      Command end time 2018-11-06 08:36:13

      ==========================
      Running OS type check...
      ==========================

      Command start time 2018-11-06 08:36:13
      Cluster primary/cluster OS family is redhat7 and local/current OS family is redhat7

      Connection to test-dldsj-datanode01 closed.
      SSH command execution finished
      host=test-dldsj-datanode01, exitcode=0
      Command end time 2018-11-06 08:36:14

      ==========================
      Checking 'sudo' package on remote host...
      ==========================

      Command start time 2018-11-06 08:36:14

      Connection to test-dldsj-datanode01 closed.
      SSH command execution finished
      host=test-dldsj-datanode01, exitcode=0
      Command end time 2018-11-06 08:36:14

      ==========================
      Copying repo file to 'tmp' folder...
      ==========================

      Command start time 2018-11-06 08:36:14

      scp /etc/yum.repos.d/ambari.repo
      host=test-dldsj-datanode01, exitcode=0
      Command end time 2018-11-06 08:36:14

      ==========================
      Moving file to repo dir...
      ==========================

      Command start time 2018-11-06 08:36:14

      Connection to test-dldsj-datanode01 closed.
      SSH command execution finished
      host=test-dldsj-datanode01, exitcode=0
      Command end time 2018-11-06 08:36:14

      ==========================
      Changing permissions for ambari.repo...
      ==========================

      Command start time 2018-11-06 08:36:14

      Connection to test-dldsj-datanode01 closed.
      SSH command execution finished
      host=test-dldsj-datanode01, exitcode=0
      Command end time 2018-11-06 08:36:14

      ==========================
      Copying setup script file...
      ==========================

      Command start time 2018-11-06 08:36:14

      scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py
      host=test-dldsj-datanode01, exitcode=0
      Command end time 2018-11-06 08:36:14

      ==========================
      Running setup agent script...
      ==========================

      Command start time 2018-11-06 08:36:14
      ('INFO 2018-11-05 17:03:53,137 DataCleaner.py:120 - Data cleanup started
      INFO 2018-11-05 17:03:53,137 DataCleaner.py:122 - Data cleanup finished
      INFO 2018-11-05 17:03:53,189 PingPortListener.py:50 - Ping port listener started on port: 8670
      INFO 2018-11-05 17:03:53,191 main.py:349 - Connecting to Ambari server at https://test-dldsj-datanode01:8440 (10.212.155.20)
      INFO 2018-11-05 17:03:53,191 NetUtil.py:62 - Connecting to https://test-dldsj-datanode01:8440/ca
      INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:16,394 HeartbeatHandlers.py:83 - Ambari-agent received 15 signal, stopping...
      INFO 2018-11-06 08:36:46,537 main.py:226 - Agent not going to die gracefully, going to execute kill -9
      INFO 2018-11-06 08:36:46,553 ExitHelper.py:53 - Performing cleanup before exiting...
      INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:46,906 DataCleaner.py:39 - Data cleanup thread started
      INFO 2018-11-06 08:36:46,908 DataCleaner.py:120 - Data cleanup started
      INFO 2018-11-06 08:36:46,909 DataCleaner.py:122 - Data cleanup finished
      INFO 2018-11-06 08:36:46,961 PingPortListener.py:50 - Ping port listener started on port: 8670
      INFO 2018-11-06 08:36:46,964 main.py:349 - Connecting to Ambari server at https://test-dldsj-datanode01:8440 (10.212.155.20)
      INFO 2018-11-06 08:36:46,964 NetUtil.py:62 - Connecting to https://test-dldsj-datanode01:8440/ca
      ', None)
      ('INFO 2018-11-05 17:03:53,137 DataCleaner.py:120 - Data cleanup started
      INFO 2018-11-05 17:03:53,137 DataCleaner.py:122 - Data cleanup finished
      INFO 2018-11-05 17:03:53,189 PingPortListener.py:50 - Ping port listener started on port: 8670
      INFO 2018-11-05 17:03:53,191 main.py:349 - Connecting to Ambari server at https://test-dldsj-datanode01:8440 (10.212.155.20)
      INFO 2018-11-05 17:03:53,191 NetUtil.py:62 - Connecting to https://test-dldsj-datanode01:8440/ca
      INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:16,388 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:16,394 HeartbeatHandlers.py:83 - Ambari-agent received 15 signal, stopping...
      INFO 2018-11-06 08:36:46,537 main.py:226 - Agent not going to die gracefully, going to execute kill -9
      INFO 2018-11-06 08:36:46,553 ExitHelper.py:53 - Performing cleanup before exiting...
      INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:46,905 main.py:90 - loglevel=logging.INFO
      INFO 2018-11-06 08:36:46,906 DataCleaner.py:39 - Data cleanup thread started
      INFO 2018-11-06 08:36:46,908 DataCleaner.py:120 - Data cleanup started
      INFO 2018-11-06 08:36:46,909 DataCleaner.py:122 - Data cleanup finished
      INFO 2018-11-06 08:36:46,961 PingPortListener.py:50 - Ping port listener started on port: 8670
      INFO 2018-11-06 08:36:46,964 main.py:349 - Connecting to Ambari server at https://test-dldsj-datanode01:8440 (10.212.155.20)
      INFO 2018-11-06 08:36:46,964 NetUtil.py:62 - Connecting to https://test-dldsj-datanode01:8440/ca
      ', None)

      Connection to test-dldsj-datanode01 closed.
      SSH command execution finished
      host=test-dldsj-datanode01, exitcode=0
      Command end time 2018-11-06 08:36:49

      Registering with the server...
      Registration with the server failed.


      If someone has the same problem, I hope you can help me.thank you very much!







      ambari






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited yesterday

























      asked Nov 7 at 8:53









      Andy

      13




      13





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53186124%2fambari-agent-registering-failed-and-no-errors-be-found-i-use-rhel7-3-and-python%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53186124%2fambari-agent-registering-failed-and-no-errors-be-found-i-use-rhel7-3-and-python%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          Tangent Lines Diagram Along Smooth Curve

          Yusuf al-Mu'taman ibn Hud

          Zucchini