loading table of contents...

2. Creating or Editing the Tez View Instance

Depending on whether you must create a new Tez View instance for a manually deployed cluster or modify an Ambari-created Tez View, see one of the following sections:

To modify a Tez View instance on an Ambari-managed cluster:

  1. Navigate to the Ambari Administration interface.

  2. Click Views and expand the Tez View.

  3. On the Create Instance page, change the appropriate configuration parameters.

  4. Select Local Ambari-Managed Cluster:

    Figure 14.1. Tez View Create Instance Page


    [Important]Important

    Secure clusters that use wire encryption (SSL/TSL) cannot use the Local Ambari Managed Cluster option. Instead you must configure the view as described in the instructions for manually-deployed clusters.

  5. Click Save, grant Permissions on the view (see User Permissions for Tez Views), and click Go to instance to use the view. See Using the Tez View.

To create a new Tez View instance for a manually-deployed cluster:

  1. Navigate to the Ambari Administration interface.

  2. Click Views, expand the Tez View, and click Create Instance.

  3. On the Create Instance page, select the Version.

  4. Enter the Details (required). The Instance Name appears in the URI, the Display Name appears in the Views drop-down list, and the Description helps multiple users identify the view.

  5. Scroll down to the Cluster Configuration, verify that Custom is checked and enter the following values, which tell the Tez View how to access resources in the cluster:

    Table 14.2. Cluster Configuration Values for the Tez View in Ambari

    Property

    Value

    YARN Timeline Server URL (required)

    The URL to the YARN Application Timeline Server, used to provide Tez information. Typically, this is the yarn.timeline-service.webapp.address property that is specified in the etc/hadoop/conf/yarn-site.xml.

    When you enter the value in the view definition, pre-pend "http://" to the value you find in the yarn-site.xml file. For example, http://<timeline server host>:8188

    For wire encryption-enabled clusters:

    Set this based on the value of yarn.timeline-service.webapp.https.address in yarn-site.xml

    When you enter the value in the view definition, pre-pend "https://" to the value. For example, https://<timeline server host>:8190

    YARN ResourceManager URL (required)

    The URL to the YARN ResourceManager, used to provide YARN Application data. Typically, this is the yarn.resourcemanager.webapp.address property that is specified in the etc/hadoop/conf/yarn-site.xml.

    When you enter the value in the view definition, pre-pend "http://" to the value you find in the yarn-site.xml file. For example, http://<resourcemanager host>:8088

    Important: If YARN ResourceManager HA is enabled, provide a comma-separated list of URLs for all the Resource Managers.

    For wire encryption-enabled clusters:

    Set this based on the value of yarn.resourcemanager.webapp.https.address in yarn-site.xml

    When you enter the value in the view definition, pre-pend "https://" to the value. For example, https://<resourcemanager host>:8090


  6. Click Save and grant Permissions on the view (see User Permissions for Tez Views).

  7. At the top of the view instance configuration page, click Go to instance.

  8. When your browser is at the view instance page, copy the URL for the Tez View from your browser address bar:

    Figure 14.2. Tez View Instance Page


  9. In tez-site.xml, specify the URL that you copied in Step 8 as the value for the tez.tez-ui.history-url.base property, and save the file.

  10. Restart the HiveServer2 daemon to make sure that your changes to tez-site.xml take effect.

To use the view, see Using the Tez View.

[Important]Important

If your cluster is configured for Kerberos, you must set up Ambari Server for Kerberos for the Tez View to access the ATS component. See Kerberos Setup for Tez Views.