{"action":"created","issue":{"url":"https://api.github.com/repos/Symantec/ambari-cassandra-service/issues/11","repository_url":"https://api.github.com/repos/Symantec/ambari-cassandra-service","labels_url":"https://api.github.com/repos/Symantec/ambari-cassandra-service/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/Symantec/ambari-cassandra-service/issues/11/comments","events_url":"https://api.github.com/repos/Symantec/ambari-cassandra-service/issues/11/events","html_url":"https://github.com/Symantec/ambari-cassandra-service/issues/11","id":194011594,"number":11,"title":"Fails on HDP 2.5: \"cannot import name format hdp_stack_version\"","user":{"login":"rabejens","id":8402886,"avatar_url":"https://avatars.githubusercontent.com/u/8402886?v=3","gravatar_id":"","url":"https://api.github.com/users/rabejens","html_url":"https://github.com/rabejens","followers_url":"https://api.github.com/users/rabejens/followers","following_url":"https://api.github.com/users/rabejens/following{/other_user}","gists_url":"https://api.github.com/users/rabejens/gists{/gist_id}","starred_url":"https://api.github.com/users/rabejens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rabejens/subscriptions","organizations_url":"https://api.github.com/users/rabejens/orgs","repos_url":"https://api.github.com/users/rabejens/repos","events_url":"https://api.github.com/users/rabejens/events{/privacy}","received_events_url":"https://api.github.com/users/rabejens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-07T10:26:39Z","updated_at":"2016-12-09T16:01:22Z","closed_at":null,"body":"I am trying to install this on HDP 2.5, and I get:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/var/lib/ambari-agent/cache/stacks/HDP/2.5/services/CASSANDRA/package/scripts/clients.py\", line 38, in <module>\r\n    clients().execute()\r\n  File \"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py\", line 280, in execute\r\n    method(env)\r\n  File \"/var/lib/ambari-agent/cache/stacks/HDP/2.5/services/CASSANDRA/package/scripts/clients.py\", line 32, in install\r\n    import params\r\n  File \"/var/lib/ambari-agent/cache/stacks/HDP/2.5/services/CASSANDRA/package/scripts/params.py\", line 16, in <module>\r\n    from resource_management.libraries.functions.version import format_hdp_stack_version, compare_versions\r\nImportError: cannot import name format_hdp_stack_version\r\n```"},"comment":{"url":"https://api.github.com/repos/Symantec/ambari-cassandra-service/issues/comments/266049620","html_url":"https://github.com/Symantec/ambari-cassandra-service/issues/11#issuecomment-266049620","issue_url":"https://api.github.com/repos/Symantec/ambari-cassandra-service/issues/11","id":266049620,"user":{"login":"juan-echeverria","id":10507306,"avatar_url":"https://avatars.githubusercontent.com/u/10507306?v=3","gravatar_id":"","url":"https://api.github.com/users/juan-echeverria","html_url":"https://github.com/juan-echeverria","followers_url":"https://api.github.com/users/juan-echeverria/followers","following_url":"https://api.github.com/users/juan-echeverria/following{/other_user}","gists_url":"https://api.github.com/users/juan-echeverria/gists{/gist_id}","starred_url":"https://api.github.com/users/juan-echeverria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juan-echeverria/subscriptions","organizations_url":"https://api.github.com/users/juan-echeverria/orgs","repos_url":"https://api.github.com/users/juan-echeverria/repos","events_url":"https://api.github.com/users/juan-echeverria/events{/privacy}","received_events_url":"https://api.github.com/users/juan-echeverria/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T16:01:22Z","updated_at":"2016-12-09T16:01:22Z","body":"Hello @rabejens. I was able to fix that error doing the following:\r\n\r\n1-) 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\".\r\n\r\n2-) In my case, a second error appeared after fixin previous one. The error was the following:\r\n\r\n`Traceback (most recent call last):\r\n  File \"/var/lib/ambari-agent/cache/stacks/HDP/2.5/services/CASSANDRA/package/scripts/cassandra_master.py\", line 60, in <module>\r\n    Cassandra_Master().execute()\r\n  File \"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py\", line 280, in execute\r\n    method(env)\r\n  File \"/var/lib/ambari-agent/cache/stacks/HDP/2.5/services/CASSANDRA/package/scripts/cassandra_master.py\", line 46, in start\r\n    self.configure(env)\r\n  File \"/var/lib/ambari-agent/cache/stacks/HDP/2.5/services/CASSANDRA/package/scripts/cassandra_master.py\", line 35, in configure\r\n    cassandra()\r\n  File \"/var/lib/ambari-agent/cache/stacks/HDP/2.5/services/CASSANDRA/package/scripts/cassandra.py\", line 29, in cassandra\r\n    recursive=True\r\n  File \"/usr/lib/python2.6/site-packages/resource_management/core/base.py\", line 114, in __new__\r\n    cls(names_list.pop(0), env, provider, **kwargs)\r\n  File \"/usr/lib/python2.6/site-packages/resource_management/core/base.py\", line 147, in __init__\r\n    raise Fail(\"%s received unsupported argument %s\" % (self, key))\r\nresource_management.core.exceptions.Fail: Directory['/var/log/cassandra'] received unsupported argument recursive`\r\n\r\nFor this case, you should got 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\".\r\n\r\nI hope this can help you too."}}
{"actor":{"display_login":"juan-echeverria"}}