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.
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.
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:
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
> commit;
Disable
Run the below command to disable the dSource.
Example -
> source
> select testdb
> disable
> commit
Enable
Run the below command to enable the dSource.
Example -
> source
> select testdb
> enable
> commit