可以使用CM提供的api查询cdh集群的信息
http://cloudera.github.io/cm_api/
7.0.3的api文档
https://archive.cloudera.com/cm7/7.0.3/generic/jar/cm_api/apidocs/index.html
查询impala query的api
https://archive.cloudera.com/cm7/7.0.3/generic/jar/cm_api/apidocs/json_ApiImpalaQuery.html
比如
https://xxxx:7180/api/v9/clusters/dev-cdh/services/impala/impalaQueries?from=2020-03-10T06:26:01.927Z
支持的参数如图所示