Managing Hive and Impala Lineage Properties
Minimum Required Role: Configurator (also provided by Cluster Administrator, Full Administrator)
For Hive and Impala, query information is not extracted by the Navigator Metadata Server. Instead, query information is written by the services to log files. The directory containing the log files is monitored by the Cloudera Manager Agent. Periodically the log files are collected by the Cloudera Manager Agent and forwarded to the Navigator Metadata Server.
Enabling and Disabling Hive and Impala Lineage
The Enable Lineage Collection property determines whether lineage logs should be collected by the Cloudera Manager Agent. Both Hive and Impala lineage
collection is enabled by default. To control whether the Impala Daemon role logs to the lineage log and whether the Cloudera Manager Agent collects the Hive and Impala lineage entries:
- Go to the Hive or Impala service.
- Click the Configuration tab.
- Type lineage in the Search box.
- Select or clear the Enable Lineage Collection checkbox.
- (Impala only) Select or clear the Enable Impala Lineage Generation checkbox.
- Click Save Changes to commit the changes.
- Restart the service.
Configuring Hive on Spark and Impala Daemon Lineage Logs
The following properties apply to the Hive and Impala lineage log files:
- Hive Lineage Log Directory - The directory in which Hive lineage log files are written.
- Hive Maximum Lineage Log File Size - The maximum size in MB of the Hive lineage log file before a new file is created.
- Enable Impala Lineage Generation - Indicates whether Impala lineage logs should be generated.
- Impala Daemon Lineage Log Directory - The directory in which Impala lineage log files are written.
- Impala Daemon Maximum Lineage Log File Size - The maximum size in number of queries of the lineage log file before a new file is created.
If the value of a log directory property is changed, and service is restarted, the Cloudera Manager Agent starts monitoring the new log directory. In this case it is possible that not
all events are published from the old directory. To avoid losing lineage information when this property is changed, perform the following steps:
- Stop the affected service.
- Copy the lineage log files and (for Impala only) the impalad_lineage_wal file from the old log directory to the new log directory. This needs to be done on the HiveServer2 host and all the hosts where Impala Daemon roles are running.
- Start the service.
To edit lineage log properties:
- Go to the service.
- Click the Configuration tab.
- Type lineage in the Search box.
- Edit the lineage log properties.
- Click Save Changes to commit the changes.
- Restart the service.
Page generated July 8, 2016.
<< Cloudera Navigator Metadata Server | ©2016 Cloudera, Inc. All rights reserved | Managing Metadata >> |
Terms and Conditions Privacy Policy |