Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Adding Hosts to a Cluster

avatar
Master Collaborator

Hi:

I am triying to add new host into the cluster but, long time the website is like that, any suggestions???

4120-captura.png

1 ACCEPTED SOLUTION

avatar
Master Collaborator

Hi:

after install the ambari version 2.2.1.0 same like ambari server and execute

ambari-agent start

now is working well

then I registered MANUALLYthe host, the warning are because there are some directories that i need to remove,,but is ok

4129-sin-titulo2.png

4130-sin-titulo.png

4141-sin-titulo3.png

[root@xxxxhdp]# python /usr/lib/python2.6/site-packages/ambari_agent/HostCleanup.py --silent --skip=users

after Rerun check ()the blue botton, everything is fine.

and now all nodes are working

{
  "href" : "http://xxxxx:8080/api/v1/hosts",
  "items" : [
    {
      "href" : "http://xxxxxx:8080/api/v1/hosts/a01hop04",
      "Hosts" : {
        "host_name" : "a01hop04"
      }
    },
    {
      "href" : "http://xxxxx:8080/api/v1/hosts/a01hop01",
      "Hosts" : {
        "cluster_name" : "RSI_DE",
        "host_name" : "a01hop01"
      }
    },
    {
      "href" : "http://xxxx:8080/api/v1/hosts/a01hop02",
      "Hosts" : {
        "cluster_name" : "RSI_DE",
        "host_name" : "a01hop02"
      }
    },
    {
      "href" : "http://xxxx:8080/api/v1/hosts/a01hop03",
      "Hosts" : {
        "cluster_name" : "RSI_DE",
        "host_name" : "a01hop03"
      }
    }
  ]
}

Thanks everyone

View solution in original post

20 REPLIES 20

avatar
Master Collaborator

Hi finally the problem was about the directory permission /var/run/ambari-server on the namenode I did:

chown -R ambari:ambari /var/run/ambari-server