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
[BUILD] build/dist
supports --web-ui
#4397
Conversation
cc @zhaohehuhu |
build/dist
support --web-ui
build/dist
supports --web-ui
Codecov Report
@@ Coverage Diff @@
## master #4397 +/- ##
============================================
- Coverage 53.78% 53.71% -0.08%
Complexity 13 13
============================================
Files 564 564
Lines 30909 30914 +5
Branches 4162 4162
============================================
- Hits 16623 16604 -19
- Misses 12733 12755 +22
- Partials 1553 1555 +2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -79,7 +79,6 @@ class AuthenticationFilter(conf: KyuubiConf) extends Filter with Logging { | |||
|
|||
override def init(filterConfig: FilterConfig): Unit = { | |||
initAuthHandlers() | |||
super.init(filterConfig) |
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.
To suppress the follow exception.
java.lang.AbstractMethodError: javax.servlet.Filter.init(Ljavax/servlet/FilterConfig;)V
at org.apache.kyuubi.server.http.authentication.AuthenticationFilter.init(AuthenticationFilter.scala:82) ~[kyuubi-server_2.12-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:140) ~[jetty-servlet-9.4.50.v20221201.jar:9.4.50.v20221201]
at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:750) ~[jetty-servlet-9.4.50.v20221201.jar:9.4.50.v20221201]
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) ~[?:1.8.0_332]
at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:742) ~[?:1.8.0_332]
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:647) ~[?:1.8.0_332]
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:774) ~[jetty-servlet-9.4.50.v20221201.jar:9.4.50.v20221201]
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379) ~[jetty-servlet-9.4.50.v20221201.jar:9.4.50.v20221201]
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:916) ~[jetty-server-9.4.50.v20221201.jar:9.4.50.v20221201]
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288) ~[jetty-servlet-9.4.50.v20221201.jar:9.4.50.v20221201]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) ~[jetty-util-9.4.50.v20221201.jar:9.4.50.v20221201]
at org.apache.kyuubi.server.http.authentication.KyuubiHttpAuthenticationFactory$HttpHandlerWrapperFactory$$anon$1.doStart(KyuubiHttpAuthenticationFactory.scala:89) ~[kyuubi-server_2.12-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) ~[jetty-util-9.4.50.v20221201.jar:9.4.50.v20221201]
at org.apache.kyuubi.server.ui.JettyServer.addHandler(JettyServer.scala:56) ~[kyuubi-server_2.12-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
at org.apache.kyuubi.server.KyuubiRestFrontendService.startInternal(KyuubiRestFrontendService.scala:88) ~[kyuubi-server_2.12-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
at org.apache.kyuubi.server.KyuubiRestFrontendService.start(KyuubiRestFrontendService.scala:170) ~[kyuubi-server_2.12-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
at org.apache.kyuubi.service.CompositeService.$anonfun$start$1(CompositeService.scala:47) ~[kyuubi-common_2.12-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
at org.apache.kyuubi.service.CompositeService.$anonfun$start$1$adapted(CompositeService.scala:45) ~[kyuubi-common_2.12-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
at scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:62) ~[scala-library-2.12.17.jar:?]
at scala.collection.mutable.ResizableArray.foreach$(ResizableArray.scala:55) ~[scala-library-2.12.17.jar:?]
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:49) ~[scala-library-2.12.17.jar:?]
at org.apache.kyuubi.service.CompositeService.start(CompositeService.scala:45) ~[kyuubi-common_2.12-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
at org.apache.kyuubi.service.Serverable.start(Serverable.scala:51) ~[kyuubi-common_2.12-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
at org.apache.kyuubi.server.KyuubiServer.start(KyuubiServer.scala:182) ~[kyuubi-server_2.12-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
at org.apache.kyuubi.server.KyuubiServer$.startServer(KyuubiServer.scala:67) ~[kyuubi-server_2.12-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
at org.apache.kyuubi.server.KyuubiServer$.main(KyuubiServer.scala:99) ~[kyuubi-server_2.12-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
at org.apache.kyuubi.server.KyuubiServer.main(KyuubiServer.scala) ~[kyuubi-server_2.12-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
pom.xml
Outdated
<artifactId>frontend-maven-plugin</artifactId> | ||
<version>${maven.plugin.frontend.version}</version> | ||
<configuration> | ||
<nodeDownloadRoot>https://npmmirror.com/mirrors/node/</nodeDownloadRoot> |
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.
This mirror contains all released versions, not like Apache mirror which only contains the "current 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.
Should we set the official download address by default and give a profile to change download source.
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.
OK, moved to mirror-cdn
, you can verify by w/ and w/o -Pmirror-cdn
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.
I'm not sure, only set to properties
can be noticed by frontend-maven-plugin's configuration ?
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.
You can clear the local cache and do package, the log will show the download link
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.
Yeah, i have tested locally. W/ -Pmirror-cdn
, see log output as expected.
Downloading https://npmmirror.com/mirrors/node/v16.19.1/node-v16.19.1-darwin-x64.tar.gz to
Downloading https://registry.npmmirror.com/pnpm/-/pnpm-7.27.1.tgz to
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.
LGTM
pom.xml
Outdated
<artifactId>frontend-maven-plugin</artifactId> | ||
<version>${maven.plugin.frontend.version}</version> | ||
<configuration> | ||
<nodeDownloadRoot>https://npmmirror.com/mirrors/node/</nodeDownloadRoot> |
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.
Should we set the official download address by default and give a profile to change download source.
Thanks, merged to master |
Why are the changes needed?
How was this patch tested?
Add some test cases that check the changes thoroughly including negative and positive cases if possible
Add screenshots for manual tests if appropriate
Create binary artifacts using
build/dist --tgz --web-ui
and run, then openhttp://0.0.0.0:10099/ui