THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
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 available from currently under work for 1.46.1.0+ |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
client = AmbariClient("localhost", 8080, "admin", "admin", version=1) print client.version print client.host_url print"\n" |
...