Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError with HDP 2.5 #2

Open
goelprateek opened this issue Jan 7, 2017 · 1 comment
Open

ImportError with HDP 2.5 #2

goelprateek opened this issue Jan 7, 2017 · 1 comment

Comments

@goelprateek
Copy link

Hi ,

I am trying to use this service with my HDP cluster , i downloaded this folder and moved to the desired location under scrvices . even i manage show service in add service section of ambari web ui .

But when I try to install a service to nodes it gives following error and failed to install service

Traceback (most recent call last): File "/var/lib/ambari-agent/cache/stacks/HDP/2.5/services/ELASTICSEARCH/package/scripts/elastic_master.py", line 51, in <module> Elasticsearch().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/ELASTICSEARCH/package/scripts/elastic_master.py", line 16, in install import params File "/var/lib/ambari-agent/cache/stacks/HDP/2.5/services/ELASTICSEARCH/package/scripts/params.py", line 6, in <module> from resource_management.libraries.functions.version import format_hdp_stack_version, compare_versions ImportError: cannot import name format_hdp_stack_version

Please help me out.

@Seidzi
Copy link

Seidzi commented Oct 17, 2018

HI from 2018 :D

vim /var/lib/ambari-server/resources/stacks/HDP/${VERSION}/services/ELASTICSEARCH/package/scripts/params.py

change from resource_management.libraries.functions.version import format_hdp_stack_version, compare_versions
on from resource_management.libraries.functions.version import format_stack_version, compare_versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants