update-model

The update-model command updates or resets the models used by some of the Data Enrichment modules.

To update or reset the models used by the Data Enrichment modules, run the following command from the Admin Server:
./bdd-admin.sh update-model <model_type> [path]

update-model requires one of the following model types.

Model type Description
geonames The model for the GeoTagger Data Enrichment modules.
tfidf The model for the TF.IDF Data Enrichment module.
sentiment The model for the Sentiment Analysis Data Enrichment modules.

[path] is the absolute path to the location of the files to update the model with. This argument is optional. You must move these files to a single directory on the Admin Server before running the script.

If [path] is included, the script creates a jar from the files in the specified directory, then replaces the current jar on the YARN worker nodes with the new one. If [path] isn't included, the script resets the specified model to its original state.

For details on configuring the input directories and files for the models, see the Data Processing Guide.

Examples

The following command updates the Sentiment Analysis model using the contents of the /share/model/sentiment directory:
./bdd-admin.sh update-model sentiment /share/models/sentiment
The following command resets the tfidf model:
./bdd-admin.sh update-model tfidf