ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alejandro Fernandez <afernan...@hortonworks.com>
Subject Re: Retrieving JDBC URLs from Ambari Server
Date Tue, 20 Jun 2017 00:09:54 GMT
This should all be available via the API, e.g.,
api/v1/clusters/$name/configurations?type=hive-site&tag=$latest

Grabbing the latest config tag requires comparing the timestamps
The Ambari Shell client may also have this logic already, same with


/var/lib/ambari-server/resources/scripts/configs.sh get $ambari_server_ip $clustername hive-site
$configkey

Thanks,
Alejandro

From: "<Ray Chaudhuri>", "Shirsha (Nokia - IN/Bangalore)" <shirsha.ray_chaudhuri@nokia.com<mailto:shirsha.ray_chaudhuri@nokia.com>>
Reply-To: "user@ambari.apache.org<mailto:user@ambari.apache.org>" <user@ambari.apache.org<mailto:user@ambari.apache.org>>
Date: Monday, June 19, 2017 at 5:31 AM
To: "user@ambari.apache.org<mailto:user@ambari.apache.org>" <user@ambari.apache.org<mailto:user@ambari.apache.org>>
Subject: Retrieving JDBC URLs from Ambari Server


Hi,

Is there a way to retrieve the jdbc url for HiveServer2, Spark Thrift Server etc, using Ambari
REST APIs?

Regards
Shirsha

Mime
View raw message