Getting error "failed to configure cluster endpoints from hosts" for Amazon DAX Cluster

0

While connecting to encrypted Amazon DAX Cluster using DAX Java SDK we are getting following error

failed to configure cluster endpoints from hosts: [<DAX-Cluster-Endpoint>:9111]

We are using following dax sdk maven dependency

`<dependencies>
    <dependency>
     <groupId>com.amazonaws</groupId>
     <artifactId>amazon-dax-client</artifactId>
     <version>1.0.230341.0</version>
    </dependency>
</dependencies>`

Code Snippet

DynamoDB getDaxClient(String daxEndpoint) {
 AmazonDaxClientBuilder daxClientBuilder = AmazonDaxClientBuilder.standard();
 daxClientBuilder.withRegion(region).withEndpointConfiguration(daxEndpoint);
 AmazonDynamoDB client = daxClientBuilder.build();
 return new DynamoDB(client);
}

DAX Cluster is in ap-south-1 region.

However, I am able to connect DAX from local machine and ec2 instances when running nc command

nc -z <DAX-Cluster-Endpoint> 9111
Connection to<DAX-Cluster-Endpoint> port 9111 [tcp/*] succeeded! 

Note : 9091 port is open for our VPC in security group associated with the DAX cluster

gefragt vor 2 Jahren153 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen