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

Register the VDF with Ambari issue #184

Open
hasnain504 opened this issue Jun 9, 2020 · 3 comments
Open

Register the VDF with Ambari issue #184

hasnain504 opened this issue Jun 9, 2020 · 3 comments

Comments

@hasnain504
Copy link

Could you please help me to resolve this error which iam getting when i tried to run this command "bash configure_ambari.sh" in following ansible code to build hadoop cluster for automation. ambari is already installed using the below steps.

https://github.com/hortonworks/ansible-hortonworks/blob/master/INSTALL_static.md

Error:
TASK:Ambari-Config: Register the VDF with Ambari (Ambari>=2.6)
fatal: Failed! An Internal system exception occured: Could not load url from file:/tmp/cluster_vdf.xml. ParseError at [row,col]:[1,1]\nMessage:Content is not allowed in prolog."n) Status:500

Thanks.

@Viv1986
Copy link

Viv1986 commented Dec 17, 2020

same problem, does you found how to fix it?
Seems there is problem with file search

@Viv1986
Copy link

Viv1986 commented Dec 17, 2020

fix for this shitty indian code
- name: Upload the HDP Version Definition file (Ambari >= 2.6)
template:
src: "{{ item }}"
dest: "/tmp/cluster_vdf.xml"
mode: 0640
force: yes
with_first_found:
- files:
#- "vdf-HDP-{{ hdp_version }}.xml.j2"
- "vdf-HDP-3.1.0.0.xml.j2"
- "vdf-HDP-{{ hdp_minor_version }}-latest.xml.j2"
- "vdf-HDP-{{ hdp_major_version }}-latest.xml.j2"
paths:
- ../templates
when: ambari_version is version_compare('2.6', '>=')

@AquaBearCo
Copy link

I ended up having to create a vdf-HDP-3.0.1.0.xml.j2 (Copy of vdf-HDP-3.0.0.0.xml.j2) file in playbooks/roles/ambari-config/templates as the HDP version in my private REPO was not covered by the defined files. That resolves the issues that hasnain504 mentioned that I ran across.

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