If you are beginning your journey with Senzing, please start with Senzing Quick Start guides.
You are in the Senzing Garage where projects are "tinkered" on. Although this GitHub repository may help you understand an approach to using Senzing, it's not considered to be "production ready" and is not considered to be part of the Senzing product. Heck, it may not even be appropriate for your application of Senzing!
At the moment, this is "work-in-progress" with Semantic Versions of 0.n.x
.
Although it can be reviewed and commented on,
the recommendation is not to use it yet.
senzing-tools
is a suite of tools to help use the Senzing API.
Senzing's senzing-tools
has the following tools/commands:
- check-self - Check the Senzing environment.
- demo-entity-search - Demonstrate Entity Search.
- demo-quickstart - Quickstart.
- explain - Explain messages.
- init-database - Used to create a Senzing schema and configuration in PostgreSQL, MySQL, MsSQL and SQLite databases.
- load - Load Senzing datastore.
- move - Move data from place to place.
- observer - Aggregates Observer messages.
- serve-grpc - A gRPC server of the Senzing API.
- serve-http - An HTTP server for Senzing Tools.
- validate - Validate JSON for ingestion into Senzing datastore.
-
Visit latest release page.
-
For the desired versioned release, in the "Assets" section, download the appropriate installation package.
-
✏️ Example installation for
.deb
file:sudo apt install ./senzing-tools-0.0.0.deb
-
✏️ Example installation for
.rpm
file:sudo yum install ./senzing-tools-0.0.0.rpm
-
Important: Prior to using the
senzing-tools
command, theLD_LIBRARY_PATH
environment variable must be set to the location of the Senzing binaries. Example:export LD_LIBRARY_PATH=/opt/senzing/er/lib/
Simple examples.
-
✏️ A
senzing-tools init-database
example:export LD_LIBRARY_PATH=/opt/senzing/er/lib/ senzing-tools init-database \ --database-url postgresql://username:password@postgres.example.com:5432/G2
Each command has it's own list of supported command line options. Documentation for the command line options:
-
Online documentation, see hub.senzing.com/senzing-tools.
-
Runtime documentation, run:
export LD_LIBRARY_PATH=/opt/senzing/er/lib/ senzing-tools [command] --help
-
Detailed documentation, visit:
Environment variables may be used instead of command-line options. Each command has it's own list of supported environment variables. So see a specific list, visit the appropriate command.
- Commands:
The senzing-tools
can be run from the senzing/senzing-tools
Docker container.
Each command has it's own list of supported environment variables and command line options.
So see a specific list, visit the appropriate command.
- Commands:
This usage shows how to initialze a database with a Docker container.
-
✏️ A
senzing/senzing-tools init-database
example:docker run \ --env SENZING_TOOLS_DATABASE_URL=postgresql://username:password@postgres.example.com:5432/G2 \ senzing/senzing-tools init-database
-
Alternative: Using
SENZING_TOOLS_ENGINE_CONFIGURATION_JSON
environment variable.-
✏️ Set
SENZING_TOOLS_ENGINE_CONFIGURATION_JSON
. Example:export SENZING_TOOLS_ENGINE_CONFIGURATION_JSON='{ "PIPELINE": { "CONFIGPATH": "/etc/opt/senzing", "RESOURCEPATH": "/opt/senzing/er/resources", "SUPPORTPATH": "/opt/senzing/data" }, "SQL": { "CONNECTION": "postgresql://username:password@postgres.example.com:5432:G2" } }'
-
Run
senzing/senzing-tools
. Note:SENZING_TOOLS_ENGINE_CONFIGURATION_JSON
superceeds use ofSENZING_TOOLS_DATABASE_URL
. Example:docker run \ --env SENZING_TOOLS_ENGINE_CONFIGURATION_JSON \ senzing/senzing-tools init-database
-
See individual commands for parameters: