Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Using the CDAP site configuration cdap-site.xml:

    The configuration parameter of the queue name for Master Services, CDAP programs can be specified at the CDAP instance level. This is then applied for all programs. For example:

    Code Block
    <property>
      <name>master.services.scheduler.queue</name>
      <value>sys</value>
      <description>Scheduler queue for CDAP Master Services</description>
    </property>
    
    <property>
      <name>apps.scheduler.queue</name>
      <value>app</value>
      <description>Scheduler queue for CDAP programs</description>
    </property>
  2. Using a namespace-level property:

    The queue name to submit programs in YARN can be specified at a namespace-level by using the v3 Microservices to configure the property scheduler.queue.name.

    The configuration specified at the namespace-level will override the configuration specified in cdap-site.xml.

    For example, to set A as the queue name to be used for the namespace <namespace-id>, you use this HTTP PUT method:

    Code Block
    PUT /v3/namespaces/<namespace-id>/properties

    with the property as a JSON string in the body:

    Code Block
    {"config": {"scheduler.queue.name": "A"}

    Note: The configuration at the namespace level can only be set for CDAP programs and Explore queries. This configuration cannot be applied for Master Services, since Master Services are not tied to a namespace level.

    Note: If the configuration is not specified at either the namespace or cdap-site levels, then all the Master Services, CDAP programs will be submitted to default YARN queues.