Closed inkkim closed 5 hours ago
Hello @inkkim, Thanks for finding the time to report the issue! We really appreciate the community's efforts to improve Apache Kyuubi.
Are you using a self built distribution package?
@wForget Thank you for your response! No, I’m not using a self-built distribution package. I downloaded the Binary directly from the official Kyuubi releases page (Kyuubi Releases) and followed the standard installation steps.
have you put any jars under /usr/local/spark/jars
that are not shipped by the official spark tgz?
@pan3793 Yes, there are few things. Do I have to remove those before start kyuubi?
you should ensure there are no other kyuubi libs that version lower the engine jar.
kyuubi-spark-sql-engine_2.12-1.10.0.jar
for example, you should NOT suppose it works if you put a kyuubi-hive-jdbc-shaded-1.9.3.jar
under the $SPARK_HOME/jars
@pan3793 Thanks for the clarification! I followed your advice and made sure there were no incompatible Kyuubi libraries, and it worked perfectly without any errors. Specifically, I found kyuubi-spark-connector-tpcds_2.12-1.9.0.jar under /usr/local/spark/jars. Once I removed it and re-ran the setup, everything worked as expected. I really appreciate your guidance!
Code of Conduct
Search before asking
Describe the bug
org.apache.kyuubi.KyuubiSQLException: org.apache.kyuubi.KyuubiSQLException: Exception in thread "main" java.lang.reflect.UndeclaredThrowableException at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1894) at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:174) at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:217) at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:91) at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:1120) at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:1129) at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala) Caused by: org.apache.kyuubi.KyuubiException: Failed to initialize SparkSQLEngine: org.apache.kyuubi.util.JavaUtils.findLocalInetAddress()Ljava/net/InetAddress; at org.apache.kyuubi.engine.spark.SparkSQLEngine$.$anonfun$startEngine$1(SparkSQLEngine.scala:357) at org.apache.kyuubi.engine.spark.SparkSQLEngine$.$anonfun$startEngine$1$adapted(SparkSQLEngine.scala:342) at scala.Option.foreach(Option.scala:407) at org.apache.kyuubi.engine.spark.SparkSQLEngine$.startEngine(SparkSQLEngine.scala:342) at org.apache.kyuubi.engine.spark.SparkSQLEngine$.main(SparkSQLEngine.scala:407) at org.apache.kyuubi.engine.spark.SparkSQLEngine.main(SparkSQLEngine.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
Affects Version(s)
v1.10
Kyuubi Server Log Output
Kyuubi Engine Log Output
Kyuubi Server Configurations
Kyuubi Engine Configurations
Additional context
Here’s a detailed issue description based on the provided information:
Title
Error Running Kyuubi Engine: Failed to Initialize SparkSQLEngine due to
KyuubiException
inJavaUtils.findLocalInetAddress()
Description
When attempting to start the Kyuubi Engine using the
kyuubi-hive-jdbc-shaded-1.10.0
driver to establish a JDBC Connection, the following error occurs:The Kyuubi Engine initiates a Spark application on YARN, but it fails shortly after with the following log output:
Steps to Reproduce
kyuubi-hive-jdbc-shaded-1.10.0
driver to establish a JDBC Connection.Observed Behavior
SparkSQLEngine
, throwing aKyuubiException
caused by aNoSuchMethodError
inorg.apache.kyuubi.util.JavaUtils.findLocalInetAddress()
.Expected Behavior
Environment
kyuubi-hive-jdbc-shaded-1.10.0
Additional Information
This issue might be related to missing or incompatible dependencies in
org.apache.kyuubi.util
. Any guidance on resolving this error or additional dependencies would be appreciated.This template should help provide a clear and structured description for others to understand and investigate the issue.
Are you willing to submit PR?