ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "GUO JUN" <>
Subject Re: How can I change the default stack version and build id?
Date Tue, 06 Dec 2016 02:05:29 GMT
Dear experts,

According to your answer ,I found the  conf-select set-conf-dir <comp> <version>
command calling .
The <version> is a parameter from a json file in /var/lib/ambari-agent/data/structured-out-*.json.
In this json file I found the <version>

So could you tell me who generates the json file and where the para "" comes from
Thank you very much 

Best Regards!


------------------ Original ------------------
From:  "Alejandro Fernandez";<>;
Date:  Tue, Dec 6, 2016 03:44 AM
To:  ""<>; ""<>;

Subject:  Re: How can I change the default stack version and build id?

 Each stack defines a file called stack_tools.json, which includes the name of a utility like
conf-select or hdp-select/distro-select.
 E.g., ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_tools.json
 distro-select should support commands like
 distro-select set all <version>
 distro-select set <comp> <version>
 distro-select status
 distro-select status <comp>
 ambari-common/src/main/python/resource_management/libraries/functions/ has
commands like
 conf-select create-conf-dir <comp> <version>
 conf-select set-conf-dir <comp> <version>
   From: Discovery <>
 Reply-To: "" <>
 Date: Monday, December 5, 2016 at 3:34 AM
 To: user <>
 Subject: How can I change the default stack version and build id?
   Hi Ambari experts,
                      I have a requirement for defining my own stack with following the Ambari
rule, from my understanding, HDP is just one of the defined stacks, when I try to define a
new HDP-similar stack and package all RPMs, how I can make Ambari knows  and find my own HDP-similar
installation packages. For example, myownstack- .
                     Where does the Ambari python code read the stack version/build id? And
where does the version-reading Python code locate in Ambari source code? Now I find Ambari
always read HDP stack and version RPM when doing installation.:-(
                     I do not know if I need to define my own files as below in the HDP-similar
                  Hopefully I have described the problem clearly, ;-) Thanks you in advance!
View raw message