Open rabejens opened 7 years ago
Hello @rabejens. I was able to fix that error doing the following:
1-) Go to the script /var/lib/ambari-agent/cache/stacks/HDP/2.5/services/CASSANDRA/package/scripts/clients.py
and, in the affected line, replace format_hdp_stack_version
with format_stack_version
.
2-) In my case, a second error appeared after fixing the previous one. The error was the following:
Traceback (most recent call last): File "/var/lib/ambari-agent/cache/stacks/HDP/2.5/services/CASSANDRA/package/scripts/cassandra_master.py", line 60, in <module> Cassandra_Master().execute() File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute method(env) File "/var/lib/ambari-agent/cache/stacks/HDP/2.5/services/CASSANDRA/package/scripts/cassandra_master.py", line 46, in start self.configure(env) File "/var/lib/ambari-agent/cache/stacks/HDP/2.5/services/CASSANDRA/package/scripts/cassandra_master.py", line 35, in configure cassandra() File "/var/lib/ambari-agent/cache/stacks/HDP/2.5/services/CASSANDRA/package/scripts/cassandra.py", line 29, in cassandra recursive=True File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 114, in __new__ cls(names_list.pop(0), env, provider, **kwargs) File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 147, in __init__ raise Fail("%s received unsupported argument %s" % (self, key)) resource_management.core.exceptions.Fail: Directory['/var/log/cassandra'] received unsupported argument recursive
For this case, you should go to that script /var/lib/ambari-agent/cache/stacks/HDP/2.5/services/CASSANDRA/package/scripts/cassandra.py
and replace recursive=True
for create_parents=True
.
I hope this can help you too.
I am trying to install this on HDP 2.5, and I get: