ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sumit Mohanty <>
Subject Re: Retrieving JDBC URLs from Ambari Server
Date Wed, 21 Jun 2017 05:17:23 GMT
I am not sure about that. Posting that on the knox dev group may be better. Larry or Sumit
Gupta from knox dev team may be able to help.

Get Outlook for iOS<>

On Tue, Jun 20, 2017 at 9:54 PM -0700, "Ray Chaudhuri, Shirsha (Nokia - IN/Bangalore)" <<>>

Thanks Sumit. Have you used the Knox Gateway with Ambari? Am just curious, how that gets configured
with the target URLs? Does that do the same, construct the url after fetching the key-values?


From: Sumit Mohanty []
Sent: Wednesday, June 21, 2017 10:09 AM
To:; Alejandro Fernandez <>;
Subject: Re: Retrieving JDBC URLs from Ambari Server

I believe the jdbc url is not stored as a single value in any of the configs. UI does the
same too. So you may have read the individual values and construct the url.

Get Outlook for iOS<>
From: Ray Chaudhuri, Shirsha (Nokia - IN/Bangalore) <<>>
Sent: Tuesday, June 20, 2017 8:59 PM
Subject: RE: Retrieving JDBC URLs from Ambari Server
To: Alejandro Fernandez <<>>,

Thanks Alejandro, however this is only going to give us the values for the keys in hive-site.
The jdbc url itself will still need to be constructed using zk quorum, service discovery string
keys. Isn’t there an easier way to just fetch the url, which ambari server anyways displays
on its GUI for the Hive service?


From: Alejandro Fernandez [ Alejandro Fernandez []
Sent: Tuesday, June 20, 2017 5:40 AM
To:<>; Ray Chaudhuri, Shirsha (Nokia
- IN/Bangalore) <<>>
Subject: Re: Retrieving JDBC URLs from Ambari Server

This should all be available via the API, e.g.,

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/ get $ambari_server_ip $clustername hive-site


From:"<Ray Chaudhuri>", "Shirsha (Nokia - IN/Bangalore)" <<>>
Reply-To: "<>" <<>>
Date: Monday, June 19, 2017 at 5:31 AM
To: "<>" <<>>
Subject: Retrieving JDBC URLs from Ambari Server


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


View raw message