Support Questions

Find answers, ask questions, and share your expertise

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:

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

avatar
Master Collaborator

Hi.

after all, I cant continue into the next step, I am clicking into the green botom, but nothing is happening.

4143-sin-titulo.png

I am cliking into the next botom but, nothing is happening.

please any suggestion??

Thanks

avatar
Guru

@Roberto Sancho in the browser, are you seeing an JavaScript errors?

avatar
Master Collaborator

Hi:

Any error, just nothing hapennig, like the botton doesnt have an event... I try with Chrome and Mozilla.....

Please help.

Thanks

avatar
Super Collaborator

can you retry after clearing browser cache?

avatar
Super Collaborator

@Roberto Sancho retry step after clearing your browser cache or start ambari server in incognito mode and try this step.

avatar
Master Collaborator

hi, i did the same with other browsers and clining the cache, but i didnt check javascript error, also y tried in other computers and the same errors

avatar
Master Guru

Make sure Ambari Agent is installed and started. Make sure firewall is off, passwordless SSH is on and working.

Restart ambari server.

Make sure SELINUX is off.

Make sure network ports are open.

avatar
Master Collaborator

Hi:

I check everything, here the log:

INFO 2016-05-12 09:25:12,139 RecoveryManager.py:650 - ==> Auto recovery is enabled with maximum 6 in 60 minutes with gap of 5 minutes between and lifetime max being 1024. Enabled components - METRICS_COLLECTOR and Disabled components -
INFO 2016-05-12 09:25:12,139 AmbariConfig.py:265 - Updating config property (agent.check.remote.mounts) with value (false)
INFO 2016-05-12 09:25:12,140 AmbariConfig.py:265 - Updating config property (agent.auto.cache.update) with value (true)
INFO 2016-05-12 09:25:12,140 AmbariConfig.py:265 - Updating config property (agent.check.mounts.timeout) with value (0)
WARNING 2016-05-12 09:25:12,140 AlertSchedulerHandler.py:96 - There are no alert definition commands in the heartbeat; unable to update definitions
INFO 2016-05-12 09:25:12,140 Controller.py:394 - Registration response from a01hop01 was OK
INFO 2016-05-12 09:25:12,140 Controller.py:399 - Resetting ActionQueue...
INFO 2016-05-12 09:25:22,150 Heartbeat.py:78 - Building Heartbeat: {responseId = 0, timestamp = 1463037922150, commandsInProgress = False, componentsMapped = False}
INFO 2016-05-12 09:25:22,209 logger.py:67 - call['test -w /'] {'sudo': True, 'timeout': 5}
INFO 2016-05-12 09:25:22,215 logger.py:67 - call returned (0, '')
INFO 2016-05-12 09:25:22,215 logger.py:67 - call['test -w /dev'] {'sudo': True, 'timeout': 5}
INFO 2016-05-12 09:25:22,220 logger.py:67 - call returned (0, '')
INFO 2016-05-12 09:25:22,221 logger.py:67 - call['test -w /dev/shm'] {'sudo': True, 'timeout': 5}
INFO 2016-05-12 09:25:22,226 logger.py:67 - call returned (0, '')
INFO 2016-05-12 09:25:22,227 logger.py:67 - call['test -w /run'] {'sudo': True, 'timeout': 5}
INFO 2016-05-12 09:25:22,232 logger.py:67 - call returned (0, '')
INFO 2016-05-12 09:25:22,233 logger.py:67 - call['test -w /sys/fs/cgroup'] {'sudo': True, 'timeout': 5}
INFO 2016-05-12 09:25:22,238 logger.py:67 - call returned (1, '')
INFO 2016-05-12 09:25:22,238 logger.py:67 - call['test -w /tmp'] {'sudo': True, 'timeout': 5}
INFO 2016-05-12 09:25:22,244 logger.py:67 - call returned (0, '')
INFO 2016-05-12 09:25:22,244 logger.py:67 - call['test -w /var/log'] {'sudo': True, 'timeout': 5}
INFO 2016-05-12 09:25:22,250 logger.py:67 - call returned (0, '')
INFO 2016-05-12 09:25:22,250 logger.py:67 - call['test -w /usr/hdp'] {'sudo': True, 'timeout': 5}
INFO 2016-05-12 09:25:22,255 logger.py:67 - call returned (0, '')
INFO 2016-05-12 09:25:22,256 logger.py:67 - call['test -w /home'] {'sudo': True, 'timeout': 5}
INFO 2016-05-12 09:25:22,261 logger.py:67 - call returned (0, '')
INFO 2016-05-12 09:25:22,261 logger.py:67 - call['test -w /boot'] {'sudo': True, 'timeout': 5}
INFO 2016-05-12 09:25:22,267 logger.py:67 - call returned (0, '')
INFO 2016-05-12 09:25:22,267 logger.py:67 - call['test -w /run/user/0'] {'sudo': True, 'timeout': 5}
INFO 2016-05-12 09:25:22,273 logger.py:67 - call returned (0, '')
INFO 2016-05-12 09:25:22,278 Controller.py:268 - Heartbeat response received (id = 1)
INFO 2016-05-12 09:25:32,278 Heartbeat.py:78 - Building Heartbeat: {responseId = 1, timestamp = 1463037932278, commandsInProgress = False, componentsMapped = False}
INFO 2016-05-12 09:25:32,282 Controller.py:268 - Heartbeat response received (id = 2)
INFO 2016-05-12 09:25:42,283 Heartbeat.py:78 - Building Heartbeat: {responseId = 2, timestamp = 1463037942283, commandsInProgress = False, componentsMapped = False}
INFO 2016-05-12 09:25:42,287 Controller.py:268 - Heartbeat response received (id = 3)
INFO 2016-05-12 09:25:42,287 ActionQueue.py:113 - Adding EXECUTION_COMMAND for role check_host for service null of cluster null to the queue.
INFO 2016-05-12 09:25:42,335 ActionQueue.py:233 - Executing command with id = 348-0 for role = check_host of cluster null.
INFO 2016-05-12 09:25:42,352 Heartbeat.py:78 - Building Heartbeat: {responseId = 3, timestamp = 1463037942351, commandsInProgress = True, componentsMapped = False}
INFO 2016-05-12 09:25:42,385 Controller.py:268 - Heartbeat response received (id = 4)
INFO 2016-05-12 09:25:42,550 Heartbeat.py:78 - Building Heartbeat: {responseId = 4, timestamp = 1463037942550, commandsInProgress = True, componentsMapped = False}
INFO 2016-05-12 09:25:42,562 Controller.py:268 - Heartbeat response received (id = 5)


avatar
Super Collaborator

can you also paste ambari-server log?