Support Questions
Find answers, ask questions, and share your expertise

Automate adding DN and NM

Solved Go to solution

Automate adding DN and NM

Explorer

Team,

Can someone share steps to automate on adding DN & NM.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Automate adding DN and NM

Guru

Hi @suresh krish

You can use the Ambari REST API to add new hosts, and deploy services (such as DATANODE on the hosts). See the documentation here for the steps: https://cwiki.apache.org/confluence/display/AMBARI/Add+a+host+and+deploy+components+using+APIs

View solution in original post

10 REPLIES 10

Re: Automate adding DN and NM

@suresh krish

Could you please elaborate on what do you want to achieve exactly?

Re: Automate adding DN and NM

Guru

Hi @suresh krish

You can use the Ambari REST API to add new hosts, and deploy services (such as DATANODE on the hosts). See the documentation here for the steps: https://cwiki.apache.org/confluence/display/AMBARI/Add+a+host+and+deploy+components+using+APIs

View solution in original post

Re: Automate adding DN and NM

Explorer

Ambari registration on the new datanode which we cannot be automated. ??

Re: Automate adding DN and NM

Guru

Re: Automate adding DN and NM

Explorer

Sonu- I tried installing agent. But i see the below message RUNNING for long time. its not completing . any idea

# curl -i -uadmin:admin http://192.168.218.183:8080/api/v1/bootstrap/1
HTTP/1.1 200 OK
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
Set-Cookie: AMBARISESSIONID=h08834nky0l13v3s3e939xlz;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
User: admin
Content-Type: application/json
Vary: Accept-Encoding, User-Agent
Content-Length: 108
Server: Jetty(8.1.19.v20160209)
{"status":"RUNNING","hostsStatus":[{"hostName":"dn3.discovercts.com","status":"RUNNING","log":""}],"log":""}[root@ambari

Re: Automate adding DN and NM

Explorer

HI pdarvasi- Iam looking to automation adding Slave node and configure Datanode service and Nodemanger service on that datanode.

Re: Automate adding DN and NM

@suresh krish Do you have cloud or on-prem clusters?

Re: Automate adding DN and NM

Explorer

Its on-prem clusters. i need automate adding 4 nodes in the HA cluster. V 2.4.0. With DN and NM services

Re: Automate adding DN and NM

Explorer

Sonu- I tried installing agent. But i see the below message RUNNING for long time. its not completing . any idea