5.1.2. Install Cassandra Applier

Before installing the applier, the following addition needs adding to the extractor configuration. Apply the following parameters on the extractor host, update the extractor using the details below, and then install the applier

  • For Staging Install:

    shell> cd tungsten-replicator-5.4.1-41
    shell> ./tools/tpm configure alpha \
      --enable-batch-service=true
    shell> ./tools/tpm update
  • For INI Installs: Add the following the /etc/tungsten/tungsten.ini

    [alpha]
    ...Existing Replicator Config...
    enable-batch-service=true
    
    shell> tpm update
  1. Unpack the Tungsten Replicator distribution in staging directory:

    shell> tar zxf tungsten-replicator-5.4.1-41.tar.gz
  2. Change into the staging directory:

    shell> cd tungsten-replicator-5.4.1-41
  3. Configure the installation using tpm:

    Show Staging

    Show INI

    shell> ./tools/tpm configure defaults \
        --reset \
        --user=tungsten \
        --install-directory=/opt/continuent \
        --profile-script=~/.bash_profile \
        --skip-validation-check=HostsFileCheck \
        --skip-validation-check=InstallerMasterSlaveCheck \
        --skip-validation-check=DatasourceDBPort \
        --skip-validation-check=DirectDatasourceDBPort \
        --skip-validation-check=ReplicationServicePipelines
    
    shell> ./tools/tpm configure alpha \
        --topology=master-slave \
        --master=sourcehost \
        --members=localhost \
        --datasource-type=file \
        --replication-user=tungsten \
        --replication-password=secret \
        --batch-enabled=true \
        --batch-load-language=js \
        --batch-load-template=cassandra \
        --property=replicator.datasource.applier.csvType=cassandra \
        --property=replicator.datasource.global.csvType=cassandra \
        --property=replicator.stage.q-to-dbms.blockCommitInterval=5s \
        --property=replicator.stage.q-to-dbms.blockCommitRowCount=1000 \
        --svc-applier-filters=dropstatementdata
    
    shell> vi /etc/tungsten/tungsten.ini
    [defaults]
    user=tungsten
    install-directory=/opt/continuent
    profile-script=~/.bash_profile
    skip-validation-check=HostsFileCheck
    skip-validation-check=InstallerMasterSlaveCheck
    skip-validation-check=DatasourceDBPort
    skip-validation-check=DirectDatasourceDBPort
    skip-validation-check=ReplicationServicePipelines
    
    [alpha]
    topology=master-slave
    master=sourcehost
    members=localhost
    datasource-type=file
    replication-user=tungsten
    replication-password=secret
    batch-enabled=true
    batch-load-language=js
    batch-load-template=cassandra
    property=replicator.datasource.applier.csvType=cassandra
    property=replicator.datasource.global.csvType=cassandra
    property=replicator.stage.q-to-dbms.blockCommitInterval=5s
    property=replicator.stage.q-to-dbms.blockCommitRowCount=1000
    svc-applier-filters=dropstatementdata
    

    Configuration group defaults

    The description of each of the options is shown below; click the icon to hide this detail:

    Click the icon to show a detailed description of each argument.

    Configuration group alpha

    The description of each of the options is shown below; click the icon to hide this detail:

    Click the icon to show a detailed description of each argument.

  4. Install the services:

    shell> ./tools/tpm install

If you encounter problems during the installation, check the output of the /tmp/tungsten-configure.log file for more information about the root cause.

Once the service is configured and running, the service can be monitored as normal using the trepctl command. See Section 5.1.3, “Management and Monitoring of Cassandra Deployments” for more information.