Support Article
Unable to fetch host name from DSS for Cassandra connect ruleset
SA-43509
Summary
The host file in Connect-Cassandra rules does not accept dynamic values and requires a hardcoded IP address. Each environment uses a different IP address, and the rules requiring hardcoded IP addresses block migration.
Error Messages
Not Applicable
Steps to Reproduce
- Include 20 connect Cassandra rules and pass the host names from a Dynamic System Settings (DSS) setting.
- Configure a Cassandra connect ruleset to look for IP addresses.
- Move the locked rulesets from one environment to another, ensure that the host names from DSS setting cannot be updated.
Root Cause
Rule-connect-Cassandra contains some environment variables that are tight to the rule form. While migrating the rule from different environments, the values may change due to some mismatches between the environments. Using this feature, values can be overridden on the rule form by defining matching DSS. If there are no matching values defined, then values on the rule form are used.
Resolution
- Apply HFix-36294.
- For the Rule-connect-Cassandra, define DSS values with predefined prefixes on Pega-BigData Ruleset.
Value | Prefix | Description |
---|---|---|
Host | connector/cassandra/host/ | host or comma separated host names |
Port | connector/cassandra/port/ | port number ,default 9042 |
Keyspace | connector/cassandra/keyspace/ | keyspace that will be used. |
Examples:
Rule Form Value | DSS @ Pega-BigData | Value that will be used |
---|---|---|
host: cassandracluster | - | cassandracluster |
host: cassandracluster | connector/cassandra/host/cassandracluster -> host1,host2 | host1,host2 |
port: | - | 9042 |
port: 1234 | connector/cassandra/port/1234 -> 9042 | 9042 |
keyspace : testkeypace | - | testkeypace |
keyspace : testkeypace | connector/cassandra/keyspace/testkeypace -> prodkeyspace | prodkeyspace |
Published December 11, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.