impala java api 操作_Cloudera Manager API操作Yarn/Impala队列资源
时间: 2024-03-13 13:46:56 浏览: 153
可以使用 Cloudera Manager API 操作 Yarn/Impala 队列资源,以下是一些操作的示例:
1. 获取 Yarn 队列信息:
```
GET /api/v19/clusters/<clusterName>/services/yarn/yarnScheduler
```
2. 获取 Impala 队列信息:
```
GET /api/v19/clusters/<clusterName>/services/impala/impalaConfiguration
```
3. 设置 Impala 队列资源限制:
```
PUT /api/v19/clusters/<clusterName>/services/impala/impalaConfiguration
{
"items": [
{
"name": "impala_scheduler_allocation_file",
"value": "/etc/hadoop/conf/impala_scheduler_allocation.xml"
},
{
"name": "impala_max_concurrent_queries",
"value": "50"
},
{
"name": "impala_max_queued_queries",
"value": "100"
}
]
}
```
这些操作可以通过编写 Java 代码来实现 Impala Java API 操作。
阅读全文