- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Hive-clients with Curl command
- Labels:
-
Apache Ambari
-
Apache Hive
Created 03-07-2018 11:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello HCC,
We have a production cluster with 800+ data nodes and hive-clients installed one more than 200+ nodes, i can see that from Ambari
is there a simple way or CURL command to find all hive-clients installed in the cluster which i can see on Cli/Linux box.
HDP:2.6.1
Ambari 2.5.2.0
Thanks,Jalender.
Created 03-08-2018 10:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use this command to print all the hosts on which HIVE_CLIENT is installed
curl -k -u {ambari-username}:{ambari-password} -H "X-Requested-By:ambari" http://{ambari-host}:{ambari-port}/api/v1/clusters/{cluster-name}/services/HIVE/components/HIVE_CLIE... | grep host_name | awk '{ print $3 }'
Replace all the placeholders before running.
If this worked for you, please click on the Accept button to accept the answer. This will be really helpful for other community users
Thanks,
Aditya
Created 03-07-2018 11:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is an example for YARN_CLIENT
// Getting the state of the component
curl -k -u admin:admin -H "X-Requested-By:ambari" -i -X GET http://<HOST>:8080/api/v1/clusters/<CLUSTER_NAME>/hosts/<HOST_FQDN>/host_components/YARN_CLIENT
Hope that helps
Created 03-08-2018 08:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you.
Created 03-08-2018 10:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use this command to print all the hosts on which HIVE_CLIENT is installed
curl -k -u {ambari-username}:{ambari-password} -H "X-Requested-By:ambari" http://{ambari-host}:{ambari-port}/api/v1/clusters/{cluster-name}/services/HIVE/components/HIVE_CLIE... | grep host_name | awk '{ print $3 }'
Replace all the placeholders before running.
If this worked for you, please click on the Accept button to accept the answer. This will be really helpful for other community users
Thanks,
Aditya
Created 03-08-2018 08:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Aditya Sirna it works like a charm, thank you so much 🙂
