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

Error installing on HDP 2.3 on node running RHEL 6.5 #6

Open
dasgoll opened this issue Jul 29, 2015 · 4 comments
Open

Error installing on HDP 2.3 on node running RHEL 6.5 #6

dasgoll opened this issue Jul 29, 2015 · 4 comments

Comments

@dasgoll
Copy link

dasgoll commented Jul 29, 2015

I'm getting this error when trying to install the service:

Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/2.3/services/jupyter-service/package/scripts/ambari/master.py", line 41, in
Master().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 218, in execute
method(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.3/services/jupyter-service/package/scripts/ambari/master.py", line 9, in install
helpers.add_repos()
File "/var/lib/ambari-agent/cache/stacks/HDP/2.3/services/jupyter-service/package/scripts/ambari/ambari_helpers.py", line 13, in add_repos
for repo in os.listdir(repo_dir):
UnboundLocalError: local variable 'repo_dir' referenced before assignment

@azimut
Copy link

azimut commented Mar 9, 2016

Any know workaround for this?

@azimut
Copy link

azimut commented Mar 9, 2016

I debug a little and it seems that the issue is on https://github.com/randerzander/jupyter-service/blob/master/package/scripts/ambari/ambari_helpers.py#L9 and the value returned there. On centos return "CentOS Linux".

@ghost
Copy link

ghost commented Apr 25, 2016

I hit this error as well, for a workaround I set the directory variables globally.

Once I did this the installation proceeded

repo_dir = package_dir()+'files/repos/rhel6/'
os_repo_dir = '/etc/yum.repos.d/'

def add_repos():
global repo_dir
global os_repo_dir
#distribution = platform.linux_distribution()[0].lower()
#TODO: add ubuntu
#if distribution in ['centos', 'redhat'] :
#repo_dir = package_dir()+'files/repos/rhel6/'
#os_repo_dir = '/etc/yum.repos.d/'

@minkymorgan
Copy link

@brownbullet, this also worked for me. thanks!

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

3 participants