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

AMBARI-23995. stack advisor error : UnboundLocalError: local variable 'host' referenced before assignment (amagyar) #1426

Merged
merged 1 commit into from
May 31, 2018

Conversation

zeroflag
Copy link
Contributor

What changes were proposed in this pull request?

Stack advisor resulted an error because of incorrect indentation.

  File "/var/lib/ambari-server/resources/stacks/HDP/3.0/services/HIVE/service_advisor.py", line 196, in recommendHiveConfigurationsFromHDP30
    druid_coordinator_host_port = str(host['Hosts']['host_name']) + ":" + str(
UnboundLocalError: local variable 'host' referenced before assignment

I changed the 4 spaces wide indentation to 2 and extracted out the common logic.

How was this patch tested?

Triggered stack advisor by modifying hive config on a cluster that had druid and tez installed.

… 'host' referenced before assignment (amagyar)
@asfgit
Copy link

asfgit commented May 31, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2536/
Test PASSed.

@zeroflag zeroflag merged commit c345720 into apache:trunk May 31, 2018
@zeroflag zeroflag deleted the AMBARI-23995-trunk branch May 31, 2018 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants