difin commented on PR #6108: URL: https://github.com/apache/hive/pull/6108#issuecomment-3361236477
> My local machine has no luck. > > ``` > docker run --rm -p 9001:9001 apache/gravitino-iceberg-rest:1.0.0 > ``` > > and then > > ``` > curl 'http://localhost:9001/iceberg/v1/config' > <html> > <head> > <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/> > <title>Error 500 org.glassfish.jersey.server.ContainerException: java.lang.NoSuchMethodError: 'void org.apache.hadoop.security.HadoopKerberosName.setRuleMechanism(java.lang.String)'</title> > </head> > <body><h2>HTTP ERROR 500 org.glassfish.jersey.server.ContainerException: java.lang.NoSuchMethodError: 'void org.apache.hadoop.security.HadoopKerberosName.setRuleMechanism(java.lang.String)'</h2> > <table> > <tr><th>URI:</th><td>/iceberg/v1/config</td></tr> > <tr><th>STATUS:</th><td>500</td></tr> > <tr><th>MESSAGE:</th><td>org.glassfish.jersey.server.ContainerException: java.lang.NoSuchMethodError: 'void org.apache.hadoop.security.HadoopKerberosName.setRuleMechanism(java.lang.String)'</td></tr> > <tr><th>SERVLET:</th><td>org.glassfish.jersey.servlet.ServletContainer-40f33492</td></tr> > </table> > <hr/><a href="https://eclipse.org/jetty">Powered by Jetty:// 9.4.51.v20230217</a><hr/> > > </body> > </html> > ``` > > It is likely an issue with my local or Gravitino's setup. I'm not sure what is different from the CI env The port 9001 is not the correct port to use. This port is open inside gravitino container. It map this internal port 9001 to a random external port. This is from `setup()` method: ``` String host = gravitinoContainer.getHost(); Integer port = gravitinoContainer.getMappedPort(9001); String restCatalogPrefix = String.format("%s%s.", CatalogUtils.CATALOG_CONFIG_PREFIX, CATALOG_NAME); String restCatalogUri = String.format("http://%s:%d/iceberg", host, port); ``` gravitinoContainer.getMappedPort(9001) returns the mapped port for the 9001 port. This is needed because 9001 port might be unavailable on the host, it is standard practice to use a random available port. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
