A lot of services rely on how the process is started. It analysis its
current working directory to find the version of HDP from the path.
E.g.,
/usr/hdp/current/$component-name symlink to /usr/hdp/#.#.#.#-###/$component
/usr/hdp/#.#.#.#-###/$component/bin/start.sh

Thanks,
Alejandro

On 2/29/16, 11:52 AM, "Di Li" <[email protected]> wrote:

>Hello folks,
>
>I notice many services uses ${hdp.version} in their Python scripts.  I
>yet failed to locate the logic in Ambari code that shows how hdp.version
>is calculated to an exact value based on the stack.
>
>Could someone please give me some points on how hdp.version is calculated
>?
>
>Thanks.
>
>Di.

Reply via email to