riptano / ccm

A script to easily create and destroy an Apache Cassandra cluster on localhost
Apache License 2.0
1.22k stars 303 forks source link

removed nonexistent yaml key #629

Closed xytxytxyt closed 7 years ago

xytxytxyt commented 7 years ago

before:

ccm create test --install-dir=/Users/xianteng/bdp/
ccm populate -n 1
ccm setworkload graph
Traceback (most recent call last):
  File "/Users/xianteng/ctool-env/bin/ccm", line 90, in <module>
    cmd.run()
  File "/Users/xianteng/ctool-env/lib/python2.7/site-packages/ccmlib/cmds/cluster_cmds.py", line 855, in run
    node.set_workloads(workloads=self.workloads)
  File "/Users/xianteng/ctool-env/lib/python2.7/site-packages/ccmlib/dse_node.py", line 71, in set_workloads
    graph_options['gremlin_server']['host'] = self.ip_addr
TypeError: 'NoneType' object does not support item assignment

after, things work fine

it doesn't look like there was ever a graph.gremlin_server.host in dse.yaml

tolbertam commented 7 years ago

Encountered this same issue and this seems to fix it 👍