Skip to main content
Skip table of contents

Linking Cassandra operations

Creating Cassandra dSource via CLI

To create a dSource via CLI, you must create a source configuration first. For more information on creating a source configuration, refer to Add Source Config using CLI.

To create a dSource and perform operations via CLI, login to the Delphix Continuous Data Engine using the admin user account.

CODE
Syntax - 
ssh admin@dlpx-engine.delphix.com

Set default linking parameters (This is common for all types of ingestions) :

Run the below commands to set the default linking parameters. The below example uses testscfg source config.

CODE
Example -
> database link
> set type=LinkParameters
> set linkData.type=AppDataStagedLinkData	
> set name=testds
> set group=Untitled
> set linkData.config=testscfg
> set linkData.environmentUser=csd-staging/delphix
> set linkData.stagingEnvironment=csd-staging
> set linkData.stagingEnvironmentUser=csd-staging/delphix
> set linkData.syncParameters.parameters={\"resync\":true}

Link parameters for ingestion using NFS backup:

Run the below commands to link parameters:

CODE
Example - 

> set linkData.parameters="{\
    \"dsource_type\":\"Staging Push\",\
    \"mount_path\":\"/mnt/provision/dsestg\",\
    \"num_nodes\":3,\
    \"ip_addr\":\"127.0.0.1\",\
    \"jmx_port\":7199,\
    \"native_transport_port\":9042,\
    \"storage_port\":7000,\
    \"enable_auth_mode\":true,\
    \"cassandra_username\":\"testusr\",\
    \"cassandra_password\":\"testpwd\",\
    \"global_node_config\":[\
        {\
            \"file_path\":\"resources/cassandra/conf/cassandra.yaml\",\
            \"file_parameters\":[\
                    {\
                        \"parameter_name\":\"\",\
                        \"parameter_value\":\"\"\
                    }\
                ],\
            \"yaml_sensitive_params\":[\
                    {\
                        \"parameter_name\":\"\",\
                        \"parameter_value\":\"\"\
                    }\
                ]\
        }\
    ]\
}"

Commit

Run the below command to commit the change

CODE
> commit;

Disable

Run the below command to disable the dSource.

CODE
Example - 
> source
> select testdb
> disable
> commit

Enable

Run the below command to enable the dSource.

CODE
Example - 
> source
> select testdb
> enable
> commit
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.