The following is a list of tips when using docker-compose-demo.
- Db2
- Jupyter Notebooks
- Kafka
- MySQL
- MS SQL
- PostgreSQL
- RabbitMQ
- Senzing API server
- Senzing Configurator
- Senzing Entity Search WebApp
- Senzing license
- Senzing X-Term
- SQLite
-
Kafdrop is viewable at localhost:9179.
-
References:
-
Enter "senzing-kafka" container. Example:
sudo docker exec -it senzing-kafka /bin/bash
-
Inside "senzing-kafka" container, run
kafka-local-producer.sh
. Example:/opt/bitnami/kafka/bin/kafka-console-producer.sh \ --broker-list localhost:9092 \ --topic senzing-kafka-topic
-
Enter lines of JSON. Each line is a Kafka message.
-
Enter "senzing-kafka" container. Example:
sudo docker exec -it senzing-kafka /bin/bash
-
Inside "senzing-kafka" container, run
kafka-local-consumer.sh
. Example:/opt/bitnami/kafka/bin/kafka-console-consumer.sh \ --bootstrap-server localhost:9092 \ --topic senzing-kafka-topic \ --from-beginning
- MySQL is viewable at
localhost:9173.
- Defaults: username:
g2
password:g2
- Defaults: username:
- On left-hand navigation, select "G2" database to explore.
- The records received from the queue can be viewed in the following Senzing tables:
- G2 > DSRC_RECORD
- G2 > OBS_ENT
- MSSQL is viewable at
localhost:9177.
- System: MS SQL (beta)
- Server: senzing-mysql
- Username: sa
- Password: Passw0rd
- Database: G2
- The records received from the queue can be viewed in the following Senzing tables:
DSRC_RECORD
OBS_ENT
- PostgreSQL is viewable at
localhost:9171.
- Defaults: username:
postgres
password:postgres
- Defaults: username:
- On left-hand navigation, select "G2" database to explore.
- The records received from the queue can be viewed in the following Senzing tables:
- G2 > DSRC_RECORD
- G2 > OBS_ENT
The Senzing REST API server supports the Senzing REST API.
- From a web browser. Examples:
-
From
curl
. Examples:export SENZING_API_SERVICE=http://localhost:8250 curl -X GET ${SENZING_API_SERVICE}/heartbeat curl -X GET ${SENZING_API_SERVICE}/license curl -X GET ${SENZING_API_SERVICE}/entities/1
- From OpenApi "Swagger" editor.
- Senzing Entity Search WebApp is viewable at
localhost:8251.
- Example entity: localhost:8251/entity/1.
- The demonstration instructions will give a tour of the Senzing web app.
- If working with more than 10,000 records, obtain a Senzing license.
-
✏️ Identify location of
g2.lic
on local workstation. Example:export G2_LICENSE_PATH=/path/to/local/g2.lic
-
Copy license to volume. Note, the license file must be named g2.lic Example:
sudo cp ${G2_LICENSE_PATH} ${SENZING_ETC_DIR}/g2.lic
-
⚠️ Restart the entire stack or individual contatiners that instantiate Senzing engine objects, e.g. stream-loader, redoer, API server. The license file is referenced at engine initialization and isn't dynamically read when a license file is first deployed or updated.
When running Senzing inside Docker containers, configuration files must contain paths that are relative to
inside the docker container. That includes the PIPELINE
.LICENSEFILE
path.
From the perspective of inside the Docker container, the g2.lic
will be located at /etc/opt/senzing/g2.lic
.
-
Edit
G2Module.ini
. Example:vi ${SENZING_ETC_DIR}/G2Module.ini
-
Contents of G2Module.ini. Notice the value of
LICENSEFILE
. Example:[PIPELINE] CONFIGPATH = /etc/opt/senzing LICENSEFILE = /etc/opt/senzing/g2.lic RESOURCEPATH = /opt/senzing/g2/resources SUPPORTPATH = /opt/senzing/data [SQL] CONNECTION = postgresql://username:password@10.1.1.100:5432:G2/
- SQLite is viewable at localhost:9174.
- The records received from the queue can be viewed in the following Senzing tables:
- G2 > DSRC_RECORD
- G2 > OBS_ENT