hortonworks / ansible-hortonworks

Ansible playbooks for deploying Hortonworks Data Platform and DataFlow using Ambari Blueprints
Apache License 2.0
248 stars 253 forks source link

HCAT, SLIDER, WEBHCAT_SERVER cause failure when install HDP 3.0 #49

Closed huanganqing closed 6 years ago

huanganqing commented 6 years ago

###########################

cluster configuration

###########################

cluster_name: 'WS-HDP'

ambari_version: '2.7.0.0' # must be the 4-part full version number

hdp_version: '3.0.0.0' # must be the 4-part full version number hdp_build_number: 'auto' # the HDP build number from docs.hortonworks.com (if set to 'auto', Ansible will try to get it from the repository)

hdf_version: '3.2.0.0' # must be the 4-part full version number hdf_build_number: 'auto' # the HDF build number from docs.hortonworks.com (if set to 'auto', Ansible will try to get it from the repository)

hdpsearch_version: '3.0.0' # must be the full version number hdpsearch_build_number: '100' # the HDP Search build number from docs.hortonworks.com (hardcoded to 100 for the moment)

repo_base_url: 'http://public-repo-1.hortonworks.com' # change this if using a Local Repository

TASK [Fail if the selected components should not be part of an HDP 3 blueprint] **** failed: [master01] (item=HCAT) => {"changed": false, "item": "HCAT", "msg": "When installing HDP 3 the component HCAT must not be part of the blueprint."} failed: [master01] (item=SLIDER) => {"changed": false, "item": "SLIDER", "msg": "When installing HDP 3 the component SLIDER must not be part of the blueprint."} failed: [master01] (item=WEBHCAT_SERVER) => {"changed": false, "item": "WEBHCAT_SERVER", "msg": "When installing HDP 3 the component WEBHCAT_SERVER must not be part of the blueprint."} to retry, use: --limit @/Users/chandler/Documents/Projects/esxi/ansible/ansible-hortonworks/playbooks/configure_ambari.retry

playbooks/check_dynamic_blueprint.yml

  • name: Fail if the selected components should not be part of an HDP 3 blueprint fail: msg: "When installing HDP 3 the component {{ item }} must not be part of the blueprint." when: install_hdp and hdp_major_version == '3' and item in blueprint_all_clients | union(blueprint_all_services) with_items:
    • 'HCAT'
    • 'SLIDER'
    • 'WEBHCAT_SERVER'

Is there any way to get around this ? Thanks.

alexandruanghel commented 6 years ago

Yes, you have to remove those components as these are not valid for an HDP3 blueprint. You have to edit the blueprint_dynamic variable https://github.com/hortonworks/ansible-hortonworks/blob/master/playbooks/group_vars/all#L161 - this is also to customize the blueprint to how you'd want your cluster to be.

You can find some examples in the group_vars folder: https://github.com/hortonworks/ansible-hortonworks/tree/master/playbooks/group_vars

Like: https://github.com/hortonworks/ansible-hortonworks/blob/master/playbooks/group_vars/example-hdp3-ha-3-masters-with-druid-atlas-knox-log

At some point in future, I'll try to make this more nicer (like include one of the files rather than manually edit the variable / copy past the text).

huanganqing commented 6 years ago

Thanks.