Updated on 2024-11-29 GMT+08:00

JDBCServer Connection Failure

Symptom

  • The ha-cluster cannot be identified (unknowHost or port required).
  • Failed to connect to JDBCServer.

Cause Analysis

  • Symptom 1: The spark-beeline command is used to connect to JDBCServer. JDBCServer in versions earlier than MRS_3.0 adopts HA mode. Therefore, a specific URL and the JAR package provided by MRS Spark is required to connect to JDBCServer.
  • Symptom 2: The JDBCServer service is not running properly or port listening is abnormal.

Procedure

  • Symptom 1: Use a specific URL and the JAR package provided by MRS Spark to connect to JDBCServer.
  • Symptom 2: Check that the JDBCServer service is running properly and port listening is normal, and try again.