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

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠