The update-model command updates or resets the models used by some of the Data Enrichment modules.
./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.
./bdd-admin.sh update-model sentiment /share/models/sentiment
./bdd-admin.sh update-model tfidf