ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rohit Kale <>
Subject Need help Regarding Ambari Custom service Creation
Date Fri, 08 Jan 2016 12:28:32 GMT
I need a help regarding ambari custom service,
I want to add a custom service in ambari which copies a file to multiple ambari agents,
For this I want to provide variables for file path in python scripts, these python scripts
get called by the service.
I want to get some variable or a way by which I can use the relative path for copying my file
For e.g. I want to copy a file from location X to Y in python script
X location in contained in some ambari folder let's say "/var/lib/ambari-server/resources/stacks/HDP/2.2/services/<MY
SERVICE NAME>/my_sample_file.txt"
Y location some location in same node say "/tmp/"

I want that I can fetch X location by some variable so that I can use to copy like:
Copy  some_variable_name/my_sample_file.txt   /tmp/

Can someone help me in this, I tried using "../../" relative path but it doesn't work.

Rohit Kale

This e-mail may contain privileged and confidential information which is the property of Persistent
Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed.
If you are not the intended recipient, you are not authorized to read, retain, copy, print,
distribute or use this message. If you have received this communication in error, please notify
the sender and delete all copies of this message. Persistent Systems Ltd. does not accept
any liability for virus infected mails.

View raw message