Support Questions

Find answers, ask questions, and share your expertise

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
Rising Star
 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