...
Code Block |
---|
language | python |
---|
title | 3. create service |
---|
firstline | 1 |
---|
linenumbers | true |
---|
|
s2 = mycluster.create_service(services_name"ZOOKEEPER")
print s2 |
Code Block |
---|
language | python |
---|
title | 4. create a new config |
---|
firstline | 1 |
---|
linenumbers | true |
---|
|
TODO |
...
Code Block |
---|
language | python |
---|
title | 6. add service components |
---|
firstline | 1 |
---|
linenumbers | true |
---|
|
s2 = mycluster.create_service_components("1.3.0", "HDFSZOOKEEPER")
print s2 |
Code Block |
---|
language | python |
---|
title | 7. add host components |
---|
firstline | 1 |
---|
linenumbers | true |
---|
|
host1 = mycluster.get_host('hostname')
print host1
s4 = host1.assign_role("ZOOKEEPER_SERVER")
print s4
host1 = mycluster.get_host('r01wn02')
print host1
s4 = host1.assign_role("ZOOKEEPER_SERVER")
print s4
host1 = mycluster.get_host('hostname1r01wn03')
print host1
s4 = host1.assign_role("ZOOKEEPER_SERVER")
print s4
host1 = mycluster.get_host('r01wn03')
print host1
s4 = host1.assign_role("NAMENODEZOOKEEPER_CLIENT")
print s4
|
Code Block |
---|
language | python |
---|
title | 8. Install & Start the service |
---|
firstline | 1 |
---|
linenumbers | true |
---|
|
s2zk = mycluster.get_service("ZOOKEEPER")
print zk
s = zk.stop()
s2
print s
s = zk.start()
print s
|
TODO....needs to be updated