Support Questions
Find answers, ask questions, and share your expertise

rest api to fetch server configs

Highlighted

rest api to fetch server configs

curl -u amabriusername:amabripassword -H "X-Requested-By: ambari" -X GET http://localhost:8080/api/v1/clusters/clsutername/components?format=client_config_tar -o /tmp/All_Configs/cluster_configs.tar.gz

with above curl command i am only able to download client config at particular host but not able to get configs for

APP_TIMELINE_SERVER

HBASE_REGIONSERVER

DATANODE

HBASE_REGIONSERVER

HCAT.tar HISTORYSERVER

HIVE_METASTORE

HIVE_SERVER

INFRA_SOLR JOURNALNODE LIVY_SERVER

RESOURCEMANAGER

ect , what is rest api to achieve same

4 REPLIES 4
Highlighted

Re: rest api to fetch server configs

Highlighted

Re: rest api to fetch server configs

@Jay SenSharma can you suggest some solution ?

Highlighted

Re: rest api to fetch server configs

Super Mentor

@Anurag Mishra

What do you mean by you are not able to get configs for APP_TIMELINE_SERVER, HBASE_REGIONSERVER, DATANODE, HBASE_REGIONSERVER .... HIVE_METASTORE, HIVE_SERVER, INFRA_SOLR JOURNALNODE LIVY_SERVE, ..

.

The above names are for individual Components (not the Services). You can have the configurations for Services like "core-site.xml" and "hdfs-site.xml" are the configurations for HDFS service and with these configuration files you can get the details about DataNode as well.

Similarly if you have the "yarn-site.xml" , "capacity-scheduler.xml" then you get the about whole yarn.

As mentioned in the other thread: https://community.hortonworks.com/questions/135152/rest-api-to-fetch-config-files-like-hdfs-sitexml-...

.

For Individual Components like "JOURNALNODE" we do not have separate configration files. For example if you want to know the Journal Node specific informations like dfs.journalnode.edits.dir, dfs.journalnode.http-address, dfs.journalnode.https-address ...etc then you can fidn them inside the "hdfs-site.xml"

Re: rest api to fetch server configs

Explorer