What Can I Do If an Error Occurs When I Use Java Driver and a Mapped IP Address to Connect to a Database?
Symptom
When you use Java Driver to connect to a GeminiDB Cassandra instance, a session was established using the mapped IP address, rather than the database private IP address, over port 8635. However, an error was found in the connection log, and connection information of port 9042 was displayed.
Possible Cause
Java Driver was not used correctly, as shown in Figure 2. Do not use addContactPointsWitPorts when using Java Driver and do not map each IP address.
Solution
Use the private IP address provided by the GeminiDB Cassandra database and change the port to port 8635.
The following figure shows the IP address and port.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot