A report of all apps and tables and their lineage relationships (input tables, output tables, etc.). You can create this report either from the UI or the command line. Using this report, you can analyze data from MR, Hive, Spark, and Impala applications.
Click Generate Reports > New button.
In the New Report dialog box, enter the following details.
Click OK. The generated reports will be listed under Reports on the App UI.
Select the generated report and then click Run. After the report is successfully run, the details of the report runs are listed in the Run box on the right.
Click the following:
HTML files link to view the report details.
Input parameters link to view the parameters you chose to run the report.
Log file link to view the logs of the report.
From the terminal, change directories to
unity-one/src
directory.cd /opt/unravel/data/apps/unity-one/src
Use a screen editor, such as vi editor, to edit the
job.json
file and copy-paste the following text into the file.{ "enabled": false, "retention_days": 10, "report_type": "catalog", "params": { "kind": "hive", "start_date": null, "end_date": null, "days": 300, "reports": [ "app_dependencies", "app_catalog" ], "topk": 20, "topk_options": [ "io", "memorySeconds", "cpuTime", "duration" ] }, "notifications": {} }
Parameters
Description
kind
The type of data. For example, Hive, Impala, Spark etc.
start_date
Can be null or a valid start date in YYYYMMDD format.
end_date
Can be null or a valid start date.
days
The number of days to look back while downloading data.
topk
The number of applications to be shown in the report.
topk_options
An array of options for TopK.
Save and exit the screen editor.
Run the following command to generate the report:
./unity-cli.sh report generate job.json catalog report true
The Catalog report is generated based on the options selected when creating the report. The following report types are displayed.
Complexity Analysis Pie chart
Shows the distribution of queries in different categories of complexity. The complexity of a query is defined by the number of joins, unions, groupby, etc. in a query. The more the number of joins, unions, etc. in the query, the higher the complexity level is assigned. The above graph represents the query complexity in percentage.
Summary report
The summary report contains the complexity pie chart and TopK apps based on different criteria along with app signature, total runs, etc.
Detailed report
The detailed report contains information from the summary report along with upstream and downstream tables.
Dependency report
The dependency report shows upstream and downstream tables in detail.
Open the report and click any app link from the Signature column.
The Metrics tab displays the trend charts for the Duration, IO, MemorySeconds, and CPU metrics. The dots plotted on the trend charts are the app runs. The app info is provided in the right panel.
You can select any of the following features to view the metric trends:
status
cluster id
cluster UID
Click any dot on any of the Metric trend charts. This becomes the app target run. The details of the app target run appear in the App Run info panel on the right.
In the App Run info panel, click the ID link. This is the ID link of the app target run. The Metric tab is shown with the app target run you have chosen in a different color. The details of the app target run are displayed in the App Target Run panel on the right. Click the View in Unravel link to view the app's details in Unravel.
Select any dot (other than the dot for the app target run) on any of the Metric trend charts. This becomes the app baseline run. This is highlighted in a different color. The details of the app target run are displayed in the App Baseline Run panel on the right. Click the View in Unravel link to view the app's details in Unravel.
In the App Baseline Run panel, click Compare.
Select an app from the App Type options:
Hive on Tez
Spark
Impala
From the Cluster, select a cluster.
Specify the app runs that you want to compare.
Baseline App Run: Specify the ID of the baseline app.
Target App Run: Specify the ID of the target app with which you want to compare the baseline app.
Click Compare. The following app details are given for the baseline and target app run:
App details
Cluster resource usage when these apps were running
App statistics comparison details
App config comparison details
Query string comparison details
Query plan comparison details
In the App Baseline Run panel, click Refresh Insights. The insights are provided in the following sections.
Baseline comparison
The results of the comparison are displayed.
Concurrent heavy hitter apps
This section will show up only when the information is available.
Select this option to view the top five applications in a specific category.
Click the Concurrent heavy hitter apps option.
Select any option from the Top-5 Applications option.
The corresponding details are displayed.