Versions Compared

Key

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

Python client can be used to create a cluster.
Below lines of code show how you can create a cluster from scratch.It is assumed that all nodes have the agents running and configured and as such there is no need to bootstrap the nodes.

Note

This feature is still not available in the trunk as of Sept-5-2013.And will be available soon.currently under work for 1.6.0+

Code Block
languagepython
title1. get the client object
firstline1
linenumberstrue
client = AmbariClient("localhost", 8080, "admin", "admin", version=1)
print client.version
print client.host_url
print"\n"

...

wait for some time and you can check http://localhost:8080/#/main/dashboardImage Removed to see the cluster up and running