You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The installation of the R-Service fails on an HDP 2.2.4 and Ambari 2.0 release.
The script r-service/package/scripts/ambari/ambari_helpers.py threws an exception because the variable repo_dir is used before any value is assigned. The following code partial produces the error:
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/2.3/services/r-service/package/scripts/ambari/client.py", line 20, in <module>
Client().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute
method(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.3/services/r-service/package/scripts/ambari/client.py", line 7, in install
helpers.add_repos()
File "/var/lib/ambari-agent/cache/stacks/HDP/2.3/services/r-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
The installation of the R-Service fails on an HDP 2.2.4 and Ambari 2.0 release.
The script r-service/package/scripts/ambari/ambari_helpers.py threws an exception because the variable repo_dir is used before any value is assigned. The following code partial produces the error:
When I try platform.linux_distribution()[0].lower() on my cluster I receive the following value:
The text was updated successfully, but these errors were encountered: