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

Correctly read from process.stderr_file instead of empty process.stderr #640

Closed ptnapoleon closed 7 years ago

ptnapoleon commented 7 years ago

@mambocab does this resolve your issue?

ptnapoleon commented 7 years ago

Hold on, this has a TypeError

ptnapoleon commented 7 years ago

Okay, it's ready now!

mambocab commented 7 years ago

Looks good! Before:

❯ ccm create prepared -n 3 --install-dir . && echo '[starting]' && ccm start --wait-for-binary-proto 
Current cluster is now: prepared
[starting]
[node3 ERROR] Invalid yaml. Please remove properties [enable_legacy_ssl_storage_port, enable_materialized_views, optional, enabled] from your cassandra.yaml
[node2 ERROR] Invalid yaml. Please remove properties [enable_legacy_ssl_storage_port, enable_materialized_views, optional, enabled] from your cassandra.yaml
Error starting node1.
Standard error output is:
Traceback (most recent call last):
  File "/home/mambocab/.pyenv/versions/scratchenv/bin/ccm", line 105, in <module>
    cmd.run()
  File "/home/mambocab/.pyenv/versions/2.7.12/envs/scratchenv/lib/python2.7/site-packages/ccmlib/cmds/cluster_cmds.py", line 500, in run
    for line in e.process.stderr:
TypeError: 'NoneType' object is not iterable

After:

❯ ccm create prepared -n 3 --install-dir . && echo '[starting]' && ccm start --wait-for-binary-proto 
Current cluster is now: prepared
[starting]
Error starting node1.
Standard error output is: