Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

HDP blueprint issue

Highlighted

HDP blueprint issue

Expert Contributor

Hi,

Im trying to get a blueprint from my hdp cluster 2.5 (after upgrade from 2.4 to 2.5) but getting the response below:

any idea?

thanks!

http://10.0.1.1:8080/api/v1/clusters/cluster1?format=blueprint returns: { "status" : 400, "message" : "Invalid Request: Specified configuration type is not associated with any service: hst-common-conf" }

2 REPLIES 2

Re: HDP blueprint issue

Super Guru
@John Smith

Are you using smartsense? If not then try to remove host-common-conf using configs.sh script on Ambari server

Example

To get the configuration

sh /var/lib/ambari-server/resources/scripts/configs.sh get <ambari-server> <cluster-name> hst-common-conf

To delete the configuration

sh /var/lib/ambari-server/resources/scripts/configs.sh delete <ambari-server> <cluster-name> hst-common-conf

Please note - above command will delete the configuration, please run only if you know what you are doing :)

Re: HDP blueprint issue

@John Smith

It appears at one point SMARTSENSE was installed and the related configs were not removed when SMARTSENSE was removed.

You will need to remove the hst-common-conf and capture-levels configurations from the current cluster's database and then you can export a Blueprint. Here is what I would do:

  1. Stop Ambari
  2. Backup the Ambari database
  3. Execute the SQL statements presented below
  4. Start Ambari

SQL statements to remove the orphaned SMARTSENSE configurations:

delete from clusterconfigmapping where type_name in ('hst-common-conf', 'capture-levels');
delete from clusterconfig where type_name in ('hst-common-conf', 'capture-levels');
Don't have an account?
Coming from Hortonworks? Activate your account here