Setting Up Navigator Metadata Server

Setting up Navigator Role Instances on Different Hosts

By default, the Cloudera Manager installation wizard assigns the Navigator Audit Server and Navigator Metadata Server roles to the same Cloudera Management Service host. This configuration can support small clusters but larger production clusters often need these roles distributed to different nodes for better performance. You can distribute these roles to different nodes at install time or you can move the Navigator Metadata Server later if necessary.

Adding the Navigator Metadata Server Role

Cloudera Manager Required Role: Navigator Administrator (or Full Administrator)

  1. Configure the database where policies, roles, and audit report metadata is stored. For production environments, Cloudera supports only external databases. The internal PostgreSQL database should be used for non-production clusters only, such as proof-of-concept.
    • For external databases (production environments): The database should be up and running before you add the Navigator Metadata Server role to the cluster. You must have the database schema name (user name), password, and other details to provide when adding the role. When you have these ready, you can proceed.
    • For internal databases (non-production environments): No additional preliminary information is needed. You can proceed.
  2. Log in to the Cloudera Manager Admin Console.
  3. Select Clusters > Cloudera Management Service.
  4. Click the Instances tab.
  5. Click the Add Role Instances button. The Customize Role Assignments page displays and lists the nodes available to support additional roles, assuming the cluster has available resources. Reassign and customize role instances as needed.
  6. Select the Navigator Metadata Server role and assign it to appropriate host for your cluster.
  7. When finished, click Continue. The Database Setup page displays.
  8. Click Use Custom Database.
  9. In the Navigator Metadata Server section, enter the details of your database instance:
    • Database host name
    • Database type
    • Database name
    • Username
    • Password
    Here is an example of a configured custom (external) database instance that uses MySQL for the Navigator Metadata Server database:

  10. Click Test Connection to verify the communication between the cluster and the external database. If the test fails, check the database settings and try again. If you selected embedded database, a message displays regarding database creation.
  11. Click Continue.
  12. The Cluster Setup Review Changes page displays.
  13. Click Finish.

Removing the Navigator Metadata Server Role

Cloudera Manager Required Role: Navigator Administrator (or Full Administrator)

  1. Log in to the Cloudera Manager Admin Console.
  2. Select Clusters > Cloudera Management Service.
  3. Click the Instances tab.
  4. Select the Navigator Metadata Server role type.
  5. If the Navigator Metadata Server role is not already stopped, choose Actions for Selected > Stop.
    CAUTION:
    If you performed a backup of the Navigator Metadata Server storage directory while the Navigator Metadata Server was still running, your backup may be corrupted. For a clean backup, make sure the server is not running.

    Click Stop to confirm the action.

  6. Select the Navigator Metadata Server role type.
  7. Choose Actions for Selected > Delete.

    Click Delete to confirm the action.

Starting, Stopping, and Restarting a Navigator Metadata Server Role Instance

Cloudera Manager Required Role: Navigator Administrator (or Full Administrator)

  1. Log in to the Cloudera Manager Admin Console.
  2. Select Clusters > Cloudera Management Service.
  3. Click the Instances tab.
  4. Click the link for the Navigator Metadata Server from the Role Type list. The Actions for Selected button activates and displays (1) for the selected role.
  5. From the Actions for Selected (1) menu, select the Action you want to perform on this role instance:
    • Start
    • Stop
    • Restart
    • Enter Maintenance Mode
    • Exit Maintenance Mode
    • Delete
    A confirmation message displays giving you the option to Cancel or complete the specified Action.
  6. Click Cancel to abandon the process, or click Action to execute the action.

Backup Navigator Metadata Server Data

Navigator Metadata Server stores metadata in an embedded Solr data directory and in a database instance. Back up these locations together so the backups describe the same metadata state.

  1. Shut down the Navigator Metadata Server role.
  2. Backup the data directory.

    The Navigator Metadata Server default directory is /var/lib/cloudera-scm-navigator. To confirm that this is the path your deployment uses, log in to the Cloudera Manager Admin Console and search for the Navigator Metadata Server Storage Dir property (nav.data.dir).

  3. Backup the database instance.
    • Confirm the Navigator Metadata Server database location and connection information.

      To locate this information, log in to the Cloudera Manager Admin Console and go to Clusters > Cloudera Management Service. Click the Configuration tab. Select Scope > Navigator Metadata Server. Select Category > Database. The results indicate the type, host, database name, and login account.

    • Using the appropriate tool for the database instance (such as MySQL), backup the database. See Backing Up Databases.
  4. Start the Navigator Metadata Server role.

Moving the Navigator Metadata Server to a New Host

Cloudera Manager Required Role: Navigator Administrator (or Full Administrator)

When resources become tight on the host where Navigator servers are installed, one solution is to move one or both servers to another host or hosts. These instructions describe moving only the Navigator Metadata Server. Be sure to stop the Navigator Metadata Server before backing up the storage directory.

  1. Stop the Navigator Metadata Server role.
  2. Backup the Navigator Metadata Server database and storage directory.
  3. Delete the Navigator Metadata Server role from the existing host.
  4. If the storage directory is not on NFS/SAN, move the data to the same path on the new host.

    By default, the Navigator Metadata Server storage directory is /var/lib/cloudera-scm-navigator. This value is set in the Cloudera ManagerNavigator Metadata Server Storage Dir property (nav.data.dir). If you want to put the directory in a different location, change the property when you reconfigure the Navigator Metadata Server role and before you restart the role.

  5. Add the role to a new host.

    This step includes configuring the new storage directory location and specifying the database connection information. See Adding the Navigator Metadata Server Role for details.

  6. Make sure the Navigator Metadata Server storage directory is configured correctly for the new host. See Configuring the Navigator Metadata Server Storage Directory.
  7. Start the Navigator Metadata Server.

Setting the Navigator Metadata Server Java Heap Size

Cloudera Manager Required Role: Navigator Administrator (or Full Administrator)

Use the formula discussed in Memory Sizing Considerations for Navigator Metadata Server to calculate optimal Java heap size:
(num_nav_elements * 200 bytes) + 2 GB
Briefly, the total of num_nav_elements is the number of Solr element documents (per the Navigator Metadata Server log file) that comprise the index. See sizing guidelines for complete details. If you are just starting your Navigator deployment, set the Java heap size to at least 10 GB and as much as 30 GB if you have the memory available on the Navigator host.
After you have determined an appropriate Java heap setting using this or another technique, you can change the setting as follows:
  1. Log in to the Cloudera Manager Admin Console.
  2. Select Clusters > Cloudera Management Service.
  3. Click the Configuration tab.
  4. Select Scope > Navigator Metadata Server.
  5. For Filter Category, click Resource Management to display the Java heap size property. The default value is 1.5 GiB (specified in binary units).

  6. Use the drop-down selector to change the unit scale to B (Bytes), KiB, MiB, or GiB and set your preferred heap size.
  7. Click Save Changes. The setting takes effect only after restarting the role. Restart the Navigator Metadata Server role now or make other configuration changes and restart after you are finished with all changes. To restart the role:
  8. Click the Instances tab to display list the list of instances of each role type.
  9. Click the link for the Navigator Metadata Server to select it.
  10. From the Actions for Selected (1) menu, select Restart to restart the Navigator Metadata Server role instance using the new Java heap size.

Configuring the Navigator Metadata Server Storage Directory

Cloudera Manager Required Role: Navigator Administrator (or Full Administrator)

Navigator Metadata Server uses a Solr instance (a search engine) to index extracted metadata for fast search and retrieval. The searchable Solr documents are stored in a directory on the host on which the Navigator Metadata Server runs. The default location for the directory is /var/lib/cloudera-scm-navigator.

To change the location of the storage directory:

  1. Log in to the Cloudera Manager Admin Console.
  2. Select Clusters > Cloudera Management Service.
  3. Click the Instances tab.
  4. Click the link for the Navigator Metadata Server to select it.
  5. From the Actions for Selected (1) menu, select Stop.
  6. Open a terminal session and log in to the host configured to run Navigator Metadata Server.
  7. Copy the contents of the current storage directory to the new location. When copying is complete, return to the Cloudera Manager Admin Console.
  8. Click the Configuration tab.
  9. Select Scope > Navigator Metadata Server.
  10. Enter the directory path in the Navigator Metadata Server Storage Dir property. The property applies to the default role group, but you can apply to other role groups as needed. See Modifying Configuration Properties Using Cloudera Manager for details.
  11. Click Save Changes. This change does not take effect until the Navigator Metadata Server role is restarted.
  12. Click the Instances tab.
  13. Click the link for the Navigator Metadata Server from the list of instances.
  14. From the Actions for Selected menu, select Restart to restart the Navigator Metadata Server role instance.

Configuring the Navigator Metadata Server Port

Cloudera Manager Required Role: Navigator Administrator (or Full Administrator)

The Cloudera Navigator console is accessed at port 7187 by default, on the host supporting the Navigator Metadata Server role. Follow the steps below to change setting.

  1. Log in to the Cloudera Manager Admin Console.
  2. Select Clusters > Cloudera Management Service.
  3. Click the Configuration tab.
  4. In the Search box, type the word "ports" to display properties.
  5. Specify the port in the Navigator Metadata Server Port property. The property applies to the default role group, but you can apply to other role groups as needed. See Modifying Configuration Properties Using Cloudera Manager for details.
  6. Click Save Changes.
  7. Click the Instances tab.
  8. Restart the Navigator Metadata Server role.

Configuring the Navigator Metadata Server Log Directory

Cloudera Manager Required Role: Navigator Administrator (or Full Administrator)

The default location of the Navigator Metadata Server logs is /var/log/cloudera-scm-navigator, but you can change to a different location, as follows:
  1. Log in to the Cloudera Manager Admin Console.
  2. Select Clusters > Cloudera Management Service.
  3. Click the Configuration tab.
  4. Under the Filter for Scope, click Navigator Metadata Server.
  5. Under Filter Category, click Logs.
  6. Set the Navigator Metadata Server Log Directory property. The property applies to the default role group, but you can apply to other role groups as needed. See Modifying Configuration Properties Using Cloudera Manager for details.
  7. Click Save Changes.
  8. Restart the Navigator Metadata Server role instance.

Configuring the Navigator Metadata Server Session Timeout

Cloudera Manager Required Role: Navigator Administrator (or Full Administrator)

The default session timeout is 30 minutes (1800 seconds). To change the timeout period:
  1. Log in to the Cloudera Manager Admin Console.
  2. Select Clusters > Cloudera Management Service.
  3. Click the Configuration tab.
  4. Under the Filter for Scope, click Navigator Metadata Server.
  5. For Filter Category, click Advanced. Scroll to find the Advanced Configuration Snippet (Safety Valve) entry field for cloudera-navigator.properties.
  6. Set the value for the nav.max_inactive_interval property to the number of seconds that can elapse before system times out:
    nav.max_inactive_interval=num-seconds-until-timeout
    This example reduces the timeout period from the default of 30 minutes to 15 minutes:

  7. Click Save Changes.
  8. Restart the Navigator Metadata Server role instance.

Disabling Anonymous Usage Collection

Cloudera Manager Required Role: Navigator Administrator (or Full Administrator)

Cloudera Navigator by default sends anonymous usage information to Cloudera for analysis. The usage information helps Cloudera improve Cloudera Navigator functionality and pro-actively identify areas of the product to enhance. The information is completely anonymous and cannot be traced to any customer installation.

To disable anonymous usage information collection:

  1. Log in to the Cloudera Manager Admin Console.
  2. Select Clusters > Cloudera Management Service.
  3. Click the Configuration tab.
  4. Under the Filter for Scope, click Navigator Metadata Server.
  5. Click the Allow Usage Data Collection to clear the checkbox.
  6. Click Save Changes.
  7. Restart the Navigator Metadata Server role instance.

Cloudera Navigator stops emitting anonymous usage information.

This capability can be re-enabled at any time by clicking the Allow Usage Data Collection box that has been cleared.

Configuring Navigator Metadata Server for Kerberos and Custom Keytab Retrieval

If Navigator is running on a Kerberized cluster and the cluster is set up to use a custom keytab retrieval script, you need to manually put keytabs for HDFS and Hue principals into the Navigator home directory (typically /var/lib/cloudera-scm-navigator) for use by the Navigator web server.

If the keytabs are not available, you'll see Navigator Metadata Server log errors such as the following:

Error running extraction task.
  java.lang.RuntimeException: java.util.concurrent.ExecutionException:
  java.lang.RuntimeException: java.io.IOException: Login failure for hdfs/node.example.com@EXAMPLE.COM from keytab /var/lib/cloudera-scm-navigator/temp/1234/hadoop1234.keytab:
  javax.security.auth.login.LoginException: Unable to obtain password from user

Navigator Metadata Server Configuration Settings Summary

Access to the Cloudera Manager Admin Console and the ability to change any of the settings in the table below requires the Cloudera Manager user role of Navigator Administrator or Full Administrator.

Property Default Usage
Java Heap Size of Cloudera Navigator Metadata Server in Bytes 1536 MiB (1.5 GiB) Increase Java heap size temporarily during an upgrade. Increase Java heap size for large Solr indexes. See Estimating Optimal Java Heap Size Using Solr Document Counts for details.
Navigator Metadata Storage Dir /var/lib/cloudera-scm-navigator Change to another path if you like. Be sure to move existing content from the default directory to the new directory to maintain state. Offload content from this directory prior to upgrading for faster upgrades.
Cloudera Navigator Server Port 7187 Change to another port if necessary. This is the port used to access Cloudera Navigator console.
Navigator Metadata Server Log Directory /var/log/cloudera-scm-navigator Examine the log to find out how many documents the Solr index contains, and use that count to estimate Java heap size needed for normal operations and for upgrades. Use the log to troubleshoot issues.
Server Session Timeout 30 minutes (1800 seconds) Timeout is specified in number of seconds that must elapse before the system generates a timeout event.
Allow Usage Data Collection enabled Cloudera Navigator uses Google Analytics to anonymous usage data to Cloudera for product enhancement. Disable this setting if you do not want to send usage data.