Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Ambari Agent can be installed on a number of target hosts via the Ambari REST API .
This is done via the endpoint /api/v1/bootstrapif the hosts have been set up for passwordless SSH (as root or a sudo account) with a common SSH key.

See below for an example ("user" is the SSH user account).

Code Block
curl -i -uadmin:admin -H 'X-Requested-By: ambari' -H 'Content-Type: application/json' -X POST -d'{
   "verbose":true,
   "sshKey":"-----BEGIN RSA PRIVATE KEY-----\nPRIVATE-KEY-CONTENT-HERE\n----END RSA PRIVATE KEY-----\n",
   "hosts":[
      "c6401.ambari.apache.org",
      "c6402.ambari.apache.org",
      "c6403.ambari.apache.org"
   ],
   "user":"vagrant"
}' http://localhost:8080/api/v1/bootstrap

...