When a new Big Match enabled table (PME enabled) is added
into HBase, use this procedure to run a script that adds metric descriptors
to the metrics.json file.
About this task
The addTableMetrics.py script is
in the /usr/ibmpacks/current/bigmatch/etc/python/ directory.
Procedure
- Run the script as the root user. The following two option
parameters are required.
Usage:
addTableMetrics.py
[options]
Options and targets |
Description |
h, --help |
Show this help message and exit. |
-t TABLENAME, --table=TABLENAME |
Specify the table name you want to add metrics
for. |
-f METRICSFILE, --file=METRICSFILE |
Specify the full path to the metrics.json file
for the Big Match service that you want to update. |
For example:
./addTableMetrics.py -t newTableName -f
/var/lib/ambari-server/resources/stacks/HDP/2.3/services/BIGMATCH/metrics.json
- After the script completes, restart the Ambari server.