Add Queue

Run the following to add a queue.

Request URL

PUT
http://<cm_host>:7180/cmf/clusters/<Cluster-id>/queue-manager-api/api/v1/environments/support/clusters/<Cluster-id>/resources/scheduler/partitions/default/queues/<path-to-the-queue>

Request Body

{
  "queuePath": "{<path-to-the-queue>",
  "queueName": "{queue-name}",
  "capacity": "{queue-capacity}",
  "maximum-capacity": "{maximum-capacity-of-the-queue}"",
  "siblingCapacities": [
    {
      "queuePath": "root.default",
      "queueName": "default",
      "capacity": "{queue-capacity}",
      "maximum-capacity": "{maximum-capacity-of-the-queue}"",
    }
  ],
  "message": "Added "{queue-name}"
}
Parameter Description
cm_host Cloudera Manager host address
Cluster-id Name of the cluster
queuePath Path to the queue
queueName Name of the queue
capacity Capacity of the queue
maximum-capacity Maximum capacity of the queue
siblingCapacities Capacity of the sibling queue

Example Request

curl -v -X PUT -b cookie.txt --key cm-auto-host_key_decrypted.pem --cert cm-auto-host_cert_chain.pem --cacert cm-auto-global_cacerts.pem -H "Referer: https://<cm_host>:7183/cmf/clusters/Cluster%201/queue-manager/" 

my-cluster-1.my-cluster.root.hwx.site:7180/cmf/clusters/Cluster201/queue-manager-api/api/v1/environments/support/clusters/Cluster201/resources/scheduler/partitions/default/queues/root.samplequeue -d @request.json