Versions Compared

Key

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

...

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('r01wn03')
print host1
s4 = host1.assign_role("ZOOKEEPER_SERVER")
print s4
host1 = mycluster.get_host('r01wn03')
print host1
s4 = host1.assign_role("ZOOKEEPER_CLIENT")
print s4

...