You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ambari.apache.org by Satyanarayana Jampa <sj...@innominds.com> on 2016/10/04 11:52:01 UTC

How to get Hive host,user and password into my custom service

Hi,
     I have written a custom service in which I need the information of Hive_host, hive_user and hive_password.
     Instead of asking the end-user to enter these values during installation as config parameters for the custom service, is there a way that I can use some env parameters that use to hold these values.

Similarly, I need the env. Parameters for sqoop host etc.

Thanks,
Satya.


Re: How to get Hive host,user and password into my custom service

Posted by Nate Cole <nc...@hortonworks.com>.
Satya,

You can get the config values of any other service or host information – those are sent, in full, for each command to the agent.  You can find commands in /var/lib/ambari-agent/data.

Thanks,
Nate

From: Satyanarayana Jampa <sj...@innominds.com>
Reply-To: "user@ambari.apache.org" <us...@ambari.apache.org>
Date: Tuesday, October 4, 2016 at 7:52 AM
To: "user@ambari.apache.org" <us...@ambari.apache.org>
Subject: How to get Hive host,user and password into my custom service

Hi,
     I have written a custom service in which I need the information of Hive_host, hive_user and hive_password.
     Instead of asking the end-user to enter these values during installation as config parameters for the custom service, is there a way that I can use some env parameters that use to hold these values.

Similarly, I need the env. Parameters for sqoop host etc.

Thanks,
Satya.