bharos opened a new issue, #8754:
URL: https://github.com/apache/gravitino/issues/8754

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   Client to server connection is not happening ,and it is returning the error 
shown in stack trace below
   
   ### Error message and/or stacktrace
   
   Spark client on connecting to Icebeg Rest catalog in Gravitino gives the 
error:
   ```
        at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
   Exception in thread "main" 
org.apache.iceberg.exceptions.ServiceFailureException: Server error: null: {
   "servlet":"org.glassfish.jersey.servlet.ServletContainer-602f8f94",
   "message":"org.glassfish.jersey.server.ContainerException: 
java.lang.NoSuchMethodError: 'void 
org.apache.hadoop.security.HadoopKerberosName.setRuleMechanism(java.lang.String)'",
   "url":"/iceberg/v1/config",
   "status":"500"
   }
   ```
   Looking at the jars on Gravitino server, seems like there's a mix of hadoop 
2.x and 3.x which is causing the class conflicts
   ```
   kubectl exec deployment/gravitino -n hms3 -- find /r
   oot -name "*hadoop*" -type f | head -10
   /root/gravitino/iceberg-rest-server/libs/hadoop-auth-2.10.2.jar
   /root/gravitino/iceberg-rest-server/libs/hadoop-hdfs-client-2.10.2.jar
   /root/gravitino/iceberg-rest-server/libs/hadoop-hdfs-2.10.2.jar
   /root/gravitino/iceberg-rest-server/libs/hadoop-common-2.10.2.jar
   
/root/gravitino/iceberg-rest-server/libs/gcs-connector-hadoop2-2.2.18-shaded.jar
   
/root/gravitino/iceberg-rest-server/libs/hadoop-mapreduce-client-core-2.10.2.jar
   /root/gravitino/iceberg-rest-server/libs/hadoop-annotations-2.10.2.jar
   /root/gravitino/authorizations/ranger/libs/hadoop-client-api-3.3.1.jar
   /root/gravitino/authorizations/ranger/libs/hadoop-client-runtime-3.3.1.jar
   /root/gravitino/catalogs/lakehouse-paimon/libs/hadoop-auth-2.10.2.jar
   ```
   
   ### How to reproduce
   
   Run spark-sql client to gravitino server with Iceberg REST catalog.
   This is happening with/without authentication enabled
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to