cloudera / cloudera-playbook

Cloudera deployment automation with Ansible
Apache License 2.0
198 stars 187 forks source link

Role configuration group reference in host template is not valid #65

Open tostroski opened 4 years ago

tostroski commented 4 years ago

I cannot seem to get around this:

TASK [cdh : Import cluster template] ** fatal: [xxxxxxxxxxxxxxxxx]: FAILED! => {"changed": false, "connection": "close", "content": "{\n \"message\" : \"Role configuration group reference in host template SPARK2_ON_YARN-1-SPARK2_YARN_HISTORY_SERVER-BASE is not valid.\nRole configuration group reference in host template SPARK2_ON_YARN-1-GATEWAY-BASE is not valid.\"\n}", "content_type": "application/json", "date": "Tue, 28 Apr 2020 18:30:08 GMT", "elapsed": 0, "expires": "Thu, 01-Jan-1970 00:00:00 GMT", "json": {"message": "Role configuration group reference in host template SPARK2_ON_YARN-1-SPARK2_YARN_HISTORY_SERVER-BASE is not valid.\nRole configuration group reference in host template SPARK2_ON_YARN-1-GATEWAY-BASE is not valid."}, "msg": "Status code was 400 and not [200]: HTTP Error 400: Bad Request", "redirected": false, "server": "Jetty(6.1.26.cloudera.4)", "set_cookie": "CLOUDERA_MANAGER_SESSIONID=qz8i0dbv9an36cbnv88y8xdk;Path=/;HttpOnly", "status": 400, "url": "http://xxxxxxxxxxxxxx:7180/api/v19/cm/importClusterTemplate?addRepositories=true"}

Data-drone commented 4 years ago

check if the csd has been deployed on cloudera manager and also check in cloudera manager if the parcel was deployed properly.

Note if you check the all file that the code picks csds based on detecting the cluster manager version. So it will download CSD for Spark2 only if CM is 5.x