Skip to content

Instantly share code, notes, and snippets.

@HariSekhon
Forked from gbraccialli/tez_rest_api_calls
Created November 8, 2019 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HariSekhon/fee43b130680488f821b1091f290c147 to your computer and use it in GitHub Desktop.
Save HariSekhon/fee43b130680488f821b1091f290c147 to your computer and use it in GitHub Desktop.
--get running applications
http://seregion02.cloud.hortonworks.com:8088/ws/v1/cluster/apps?states=accepted,running
--get dag id for counters and callerId (hive session) for hive details
http://seregion02.cloud.hortonworks.com:8188/ws/v1/timeline/TEZ_DAG_ID?limit=1000&primaryFilter=applicationId%3Aapplication_1458195563211_0034
--get counters on the fly
http://seregion02.cloud.hortonworks.com:8088/proxy/application_1458195563211_0034/ws/v2/tez/verticesInfo?dagID=2&counters=org.apache.tez.common.counters.FileSystemCounter%2FHDFS_BYTES_WRITTEN%2CHDFS_BYTES_READ%3Borg.apache.tez.common.counters.TaskCounter%2FNUM_SPECULATIONS%2CREDUCE_INPUT_GROUPS
http://seregion02.cloud.hortonworks.com:8088/proxy/application_1458195563211_0034/ws/v2/tez/verticesInfo?dagID=3&counters=*
--get counters when application finish
http://seregion02.cloud.hortonworks.com:8188/ws/v1/timeline/TEZ_DAG_ID?limit=1000&primaryFilter=applicationId%3Aapplication_1458195563211_0034
--get hive details (such as original user when doAs=false)
http://seregion02.cloud.hortonworks.com:8188/ws/v1/timeline/HIVE_QUERY_ID/hive_20160330062211_6917b0b2-a34f-4735-b332-57083a18199f
http://seregion02.cloud.hortonworks.com:8188/ws/v1/timeline/HIVE_QUERY_ID/hive_20160330064546_192ee370-d548-44fc-8073-903eaf6bf02a
--get full application properties
http://seregion02.cloud.hortonworks.com:8188/ws/v1/timeline/TEZ_APPLICATION/tez_application_1458195563211_0034
http://seregion02.cloud.hortonworks.com:8188/ws/v1/timeline/TEZ_APPLICATION/tez_application_1458195563211_0004
--filter queries by user
http://seregion02.cloud.hortonworks.com:8188/ws/v1/timeline/HIVE_QUERY_ID?secondaryFilter=requestuser%3Aadminxpto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment