Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagepython
title3. create service
firstline1
linenumberstrue
s2 = mycluster.create_service(services_name"ZOOKEEPER")
print s2
Code Block
languagepython
title4. create a new config
firstline1
linenumberstrue
TODO

...

Code Block
languagepython
title6. add service components
firstline1
linenumberstrue
s2 = mycluster.create_service_components("1.3.0", "HDFSZOOKEEPER")
print s2
Code Block
languagepython
title7. add host components
firstline1
linenumberstrue
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
languagepython
title8. Install & Start the service
firstline1
linenumberstrue
s2zk = mycluster.get_service("ZOOKEEPER")
print zk
    
s = zk.stop()
s2
print s

s = zk.start()
print s

TODO....needs to be updated