Support Questions

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

Automate adding DN and NM

avatar
Rising Star

Team,

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

1 ACCEPTED SOLUTION

avatar
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

avatar

@suresh krish

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

avatar
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

avatar
Rising Star

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

avatar
Rising Star

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

avatar
Rising Star

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

avatar

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

avatar
Rising Star

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

avatar
Rising Star

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