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 "2.5.0.0-1245" comes from ? Thank you very much ------------------ Best Regards! GUO JUN ???? ------------------ Original ------------------ From: "Alejandro Fernandez";<[email protected]>; Date: Tue, Dec 6, 2016 03:44 AM To: "[email protected]"<[email protected]>; "[email protected]"<[email protected]>; 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 ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py 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/conf_select.py has commands like conf-select create-conf-dir <comp> <version> conf-select set-conf-dir <comp> <version> Thanks, Alejandro From: Discovery <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Monday, December 5, 2016 at 3:34 AM To: user <[email protected]> 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-1.0.0.0-1234 . 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 package? [email protected] Hopefully I have described the problem clearly, ;-) Thanks you in advance!
