Help Center> MapReduce Service> Troubleshooting> Using Spark> JDBCServer Connection Failure
Updated on 2023-11-30 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. Therefore, a specific URL and the JAR package provided by MRS Spark are required to connect to JDBCServer.
  • Symptom 2: The JDBCServer service is not running properly or port monitoring 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 monitoring is normal, and try again.