-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Migrate to jetty 12 with EE8 and bump java servlet to 4.0.1 #6783
base: master
Are you sure you want to change the base?
Conversation
- Also consume hbase-thridparty having the new jetty 12 ee8 module
@@ -796,7 +792,7 @@ private void configureAliasChecks(ServletContextHandler context, boolean shouldS | |||
if (context.getAliasChecks().stream().anyMatch(aliasCheckerClass::isInstance)) { | |||
LOG.debug("{} is already part of alias check list", aliasCheckerClass.getName()); | |||
} else { | |||
context.addAliasCheck(new SymlinkAllowedResourceAliasChecker(context)); | |||
context.addAliasCheck(new SymlinkAllowedResourceAliasChecker(context.getCoreContextHandler())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Log folder is broken if we have a relative path, I suspect it is a jetty bug, may need to check more. Works fine for absolute path, otherwise fails similar to https://www.eclipse.org/lists/jetty-users/msg10296.html
404
Not Found
org.apache.hadoop.hbase.http.AdminAuthorizedServlet-5aae8eb5
So basically it works fine if log directory is "/a/b/c/logs" but fails with 404 if it is "/a/b/c/d/../logs".
Need to figure this out!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jetty/jetty.project#12833 might help?
@@ -151,6 +154,32 @@ void clearRegistrations() { | |||
} | |||
|
|||
@Override | |||
public boolean handle(org.apache.hbase.thirdparty.org.eclipse.jetty.server.Request request, Response response, Callback callback) throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Don't think the changes made in this file are correct. Will check later!
@@ -71,7 +71,7 @@ public Response get(final @Context ServletContext context, final @Context UriInf | |||
return Response.ok(rowModel).build(); | |||
} catch (IOException e) { | |||
servlet.getMetrics().incrementFailedGetRequests(1); | |||
throw new RuntimeException("Cannot retrieve list of namespaces."); | |||
throw new RuntimeException("Cannot retrieve list of namespaces.", e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undo change
@@ -96,6 +96,8 @@ allowed_expr+="|^PropertyList-1.0.dtd$" | |||
# Shaded jetty resources | |||
allowed_expr+="|^about.html$" | |||
allowed_expr+="|^jetty-dir.css$" | |||
# Required by jetty 12 on ee8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to do this to include xsd file in javax/servlet/resources coming from org.apache.hbase.thirdparty:hbase-shaded-jetty-ee8
. Else if we exclude the folder in thirdparty starting hbase fails with following:
2025-03-10T13:02:47,631 ERROR [main] master.HMasterCommandLine: Master exiting
java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMasternull
at org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:128) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.LocalHBaseCluster.addMaster(LocalHBaseCluster.java:224) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:171) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:114) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:241) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:147) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:82) ~[hadoop-common-3.4.1.jar:?]
at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:140) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:3489) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
Caused by: java.io.IOException: Unable to initialize WebAppContext
at org.apache.hadoop.hbase.http.HttpServer.start(HttpServer.java:1230) ~[hbase-http-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.http.InfoServer.start(InfoServer.java:157) ~[hbase-http-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.HBaseServerBase.putUpWebUI(HBaseServerBase.java:350) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.HBaseServerBase.<init>(HBaseServerBase.java:307) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:522) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMaster.<init>(HMasterCommandLine.java:322) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500) ~[?:?]
at java.lang.reflect.Constructor.newInstance(Constructor.java:481) ~[?:?]
at org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:124) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
... 8 more
Caused by: java.lang.ExceptionInInitializerError
at org.apache.hbase.thirdparty.org.eclipse.jetty.ee8.webapp.WebXmlConfiguration.preConfigure(WebXmlConfiguration.java:61) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.ee8.webapp.Configurations.preConfigure(Configurations.java:407) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.ee8.webapp.WebAppContext.preConfigure(WebAppContext.java:470) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.ee8.webapp.WebAppContext.doStart(WebAppContext.java:500) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:491) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.handler.ContextHandler.lambda$doStart$0(ContextHandler.java:754) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1452) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:754) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.ee8.nested.ContextHandler$CoreContextHandler.doStart(ContextHandler.java:2271) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:120) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:491) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:120) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:491) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.handler.gzip.GzipHandler.doStart(GzipHandler.java:132) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server.start(Server.java:641) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:120) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:491) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server.doStart(Server.java:582) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hadoop.hbase.http.HttpServer.start(HttpServer.java:1209) ~[hbase-http-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.http.InfoServer.start(InfoServer.java:157) ~[hbase-http-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.HBaseServerBase.putUpWebUI(HBaseServerBase.java:350) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.HBaseServerBase.<init>(HBaseServerBase.java:307) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:522) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMaster.<init>(HMasterCommandLine.java:322) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500) ~[?:?]
at java.lang.reflect.Constructor.newInstance(Constructor.java:481) ~[?:?]
at org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:124) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
... 8 more
Caused by: java.lang.IllegalStateException: Unable to instantiate WebDescriptorParser
at org.apache.hbase.thirdparty.org.eclipse.jetty.ee8.webapp.WebDescriptor.newParser(WebDescriptor.java:89) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.ee8.webapp.WebDescriptor.<clinit>(WebDescriptor.java:37) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.ee8.webapp.WebXmlConfiguration.preConfigure(WebXmlConfiguration.java:61) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.ee8.webapp.Configurations.preConfigure(Configurations.java:407) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.ee8.webapp.WebAppContext.preConfigure(WebAppContext.java:470) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.ee8.webapp.WebAppContext.doStart(WebAppContext.java:500) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:491) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.handler.ContextHandler.lambda$doStart$0(ContextHandler.java:754) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1452) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:754) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.ee8.nested.ContextHandler$CoreContextHandler.doStart(ContextHandler.java:2271) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:120) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:491) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:120) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:491) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.handler.gzip.GzipHandler.doStart(GzipHandler.java:132) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server.start(Server.java:641) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:120) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:491) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server.doStart(Server.java:582) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hadoop.hbase.http.HttpServer.start(HttpServer.java:1209) ~[hbase-http-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.http.InfoServer.start(InfoServer.java:157) ~[hbase-http-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.HBaseServerBase.putUpWebUI(HBaseServerBase.java:350) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.HBaseServerBase.<init>(HBaseServerBase.java:307) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:522) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMaster.<init>(HMasterCommandLine.java:322) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500) ~[?:?]
at java.lang.reflect.Constructor.newInstance(Constructor.java:481) ~[?:?]
at org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:124) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
... 8 more
Caused by: java.io.FileNotFoundException: Unable to find ref [javax/servlet/resources/javaee_8.xsd] in same archive as javax.servlet.Servlet: file:/Users/nihjain/code/os/temp2/hbase/hbase-4.0.0-alpha-1-SNAPSHOT/lib/javax.servlet-api-3.1.0.jar
at org.apache.hbase.thirdparty.org.eclipse.jetty.xml.BaseClassCatalog$CatalogReader.getMapping(BaseClassCatalog.java:112) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.xml.BaseClassCatalog$CatalogReader.parse(BaseClassCatalog.java:84) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.xml.BaseClassCatalog.load(BaseClassCatalog.java:56) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.xml.XmlParser.addCatalog(XmlParser.java:220) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.ee8.webapp.WebDescriptor$WebDescriptorParser.<init>(WebDescriptor.java:101) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.ee8.webapp.WebDescriptor.newParser(WebDescriptor.java:87) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.ee8.webapp.WebDescriptor.<clinit>(WebDescriptor.java:37) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.ee8.webapp.WebXmlConfiguration.preConfigure(WebXmlConfiguration.java:61) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.ee8.webapp.Configurations.preConfigure(Configurations.java:407) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.ee8.webapp.WebAppContext.preConfigure(WebAppContext.java:470) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.ee8.webapp.WebAppContext.doStart(WebAppContext.java:500) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:491) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.handler.ContextHandler.lambda$doStart$0(ContextHandler.java:754) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1452) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:754) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.ee8.nested.ContextHandler$CoreContextHandler.doStart(ContextHandler.java:2271) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:120) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:491) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:120) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:491) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.handler.gzip.GzipHandler.doStart(GzipHandler.java:132) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server.start(Server.java:641) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:120) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:491) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server.doStart(Server.java:582) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hbase.thirdparty.org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) ~[hbase-shaded-jetty-ee8-4.1.11-SNAPSHOT.jar:?]
at org.apache.hadoop.hbase.http.HttpServer.start(HttpServer.java:1209) ~[hbase-http-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.http.InfoServer.start(InfoServer.java:157) ~[hbase-http-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.HBaseServerBase.putUpWebUI(HBaseServerBase.java:350) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.HBaseServerBase.<init>(HBaseServerBase.java:307) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:522) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMaster.<init>(HMasterCommandLine.java:322) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500) ~[?:?]
at java.lang.reflect.Constructor.newInstance(Constructor.java:481) ~[?:?]
at org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:124) ~[hbase-server-4.0.0-alpha-1-SNAPSHOT.jar:4.0.0-alpha-1-SNAPSHOT]
... 8 more
@@ -863,9 +863,9 @@ | |||
<jackson.version>2.17.2</jackson.version> | |||
<jackson.databind.version>2.17.2</jackson.databind.version> | |||
<jaxb-api.version>2.3.1</jaxb-api.version> | |||
<servlet.api.version>3.1.0</servlet.api.version> | |||
<servlet.api.version>4.0.1</servlet.api.version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hbase worked with 3.1.0 as well but as per https://stackoverflow.com/questions/77007560/missing-jetty-servlet-12-0-0-dependency we should be on 4.x
<!-- for.exclusion version are NOT for direct dependencies. To use the provided | ||
scope to transitively exclude some transitive dependencies, we need to specify | ||
some existing version to for maven. --> | ||
<tomcat.version.for.exclusion>9.0.93</tomcat.version.for.exclusion> | ||
<tomcat.version.for.exclusion>${tomcat.jasper.version}</tomcat.version.for.exclusion> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo: fix existing comment, we actually depend on tomcat in hbase
return true; | ||
} | ||
|
||
//@Override |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah drop old version
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
Refer discussion at https://lists.apache.org/thread/bkrfm705kqd3bqzyvo7jv46t6p64x2n5