OAuth Token Migration Configuration Properties
The configuration file for OAuth Token Migration is located in tml-token-migration-v1.0.0/conf/config.properties.
The configuration file need to be modified depending upon the source and destination combination. It could be one among following:
MySQL to Cassandra
config.source.type=MYSQL config.dest.type=CASSANDRA config.source.mysql.pwd=<REPLACE_WITH_SOURCE_MYSQL_PASSWORD> config.source.mysql.user=<REPLACE_WITH_SOURCE_MYSQL_USER> config.source.mysql.port=<REPLACE_WITH_SOURCE_MYSQL_PORT> config.source.mysql.host=<REPLACE_WITH_SOURCE_MYSQL_HOST> config.dest.cass.host=<REPLACE_WITH_CASSANDRA_HOST> config.dest.cass.port=<REPLACE_WITH_CASSANDRA_PORT>
MySQL to FILE
config.source.type=MYSQL config.dest.type=FILE config.source.mysql.pwd=<REPLACE_WITH_SOURCE_MYSQL_PASSWORD> config.source.mysql.user=<REPLACE_WITH_SOURCE_MYSQL_USER> config.source.mysql.port=<REPLACE_WITH_SOURCE_MYSQL_PORT> config.source.mysql.host=<REPLACE_WITH_SOURCE_MYSQL_HOST> config.dest.file.directory=<REPLACE_WITH_DEST_FILE_DIRECTORY>
FILE to Cassandra
config.source.type=FILE config.dest.type=CASSANDRA config.source.file.directory=<REPLACE_WITH_DEST_FILE_DIRECTORY> config.dest.cass.host=<REPLACE_WITH_CASSANDRA_HOST> config.dest.cass.port=<REPLACE_WITH_CASSANDRA_PORT>
Cassandra to FILE
config.source.type=CASSANDRA config.dest.type=FILE config.source.cass.host=<REPLACE_WITH_CASSANDRA_HOST> config.source.cass.port=<REPLACE_WITH_CASSANDRA_PORT> config.dest.file.directory=<REPLACE_WITH_DEST_FILE_DIRECTORY>
FILE to MySQL
config.source.type=FILE config.dest.type=MYSQL config.source.file.directory=<REPLACE_WITH_DEST_FILE_DIRECTORY> config.dest.mysql.pwd=<REPLACE_WITH_SOURCE_MYSQL_PASSWORD> config.dest.mysql.user=<REPLACE_WITH_SOURCE_MYSQL_USER> config.dest.mysql.port=<REPLACE_WITH_SOURCE_MYSQL_PORT> config.dest.mysql.host=<REPLACE_WITH_SOURCE_MYSQL_HOST>
Note: In order to put the Cassandra hostname or IP address in the configuration property file, you'll need to get it from the cluster.
Docker Swarm Cluster:cassandra host define in config.properties:
config.dest.cass.host=b33a5bfe979fK8 Cluster:
In a multizone K8 setup, the Cassandra node host property in config.properties should be defined in a fully-qualified way:
config.dest.cass.host=cass-set-0-0.cass-svc-0.default.svc.cluster.local
Copyright © Cloud Software Group, Inc. All rights reserved.