Procedure
-
Add
mongo
to thePATH
environment variable. -
Create the
dqdict
database in MongoDB using the following command:use dqdict
-
Create the following user for the
dqdict
database in MongoDB:-
Username:
dqdict-user
-
Password:
duser
To do this, you can use the following command:db.createUser( { user: "dqdict-user", pwd: "duser", roles: [{ role: "readWrite", db: "dqdict"}]})
-
- Stop your Apache Tomcat instance if it was automatically started.
- Unzip the DQDictServer-A.B.C.zip to a dq_dict folder.
- Remove the contents of the <Tomcat>/webapps folder.
- Create a <Tomcat>/app folder and copy the dataquality-semantic-producer-A.B.C.war file from dq_dict.
- Copy the file contained in dq_dict/context to <Tomcat>/conf/Catalina/localhost.
- Copy the configuration file contained in dq_dict/config to <Tomcat>/conf.
-
Open the
<Tomcat>/conf/data-quality.properties file and
edit the following Talend Dictionary Service properties:
Field
Action
oidc.url
Enter the URL to Talend Identity and Access Management,
http://localhost:9080/oidc
for example.scim.url
Enter the URL to Talend Identity and Access Management SCIM,
http://localhost:9080/scim
for example.oidc.semanticservice.id
Enter the Talend Identity and Access Management OIDC client identifier.
oidc.semanticservice.secret
Enter the Talend Identity and Access Management OIDC password.
spring.cloud.stream.kafka.binder.brokers
Enter the host corresponding to your Kafka broker.
spring.cloud.stream.kafka.binder.defaultBrokerPort
Enter the port corresponding to your Kafka broker.
spring.cloud.stream.kafka.binder.zkNodes
Enter the host corresponding to your Zookeeper node.
spring.cloud.stream.kafka.binder.defaultZkPort
Enter the port corresponding to your Zookeeper node.
All the passwords entered in the properties file are encrypted when you start your Talend Dictionary Service instance.
-
Update the following fields with your MongoDB settings:
Field
Description
dq.mongo.host
Host name of your MongoDB instance.
dq.mongo.port
Port number of your MongoDB instance.
dq.mongo.username
Username used to connect to the database.
dq.mongo.password
Password used to connect to the database.
dq.mongo.database.name
Name of the database on which Talend Dictionary Service is connected, dqdict by default.
- Launch MongoDB.
- Go to the dq_dict/database folder and edit the semantic-dictionary-import.sh script.
- Replace the variable with your MongoDB credentials.
- Execute the script.
-
Start Talend Dictionary Service by launching, in
order:
- Apache Zookeeper
- Apache Kafka
- Apache Tomcat