Skip to content
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

Enable REST frontend protocol by default #4483

Closed
wants to merge 3 commits into from

Conversation

pan3793
Copy link
Member

@pan3793 pan3793 commented Mar 8, 2023

Why are the changes needed?

REST frontend protocol was introduced in Kyuubi 1.4.0 #1349, more and more users are using REST in recent days, and to simplify the planned Web UI developments, I think we should enable the REST by default for master(1.8.0-SNAPSHOT).

I do not remove the "experiment" because we don't have strong confident to ensure the API stability in this time, I would like to defer it until the community has confident to mark it as stable.

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

  • Run test locally before make a pull request

Copy link
Contributor

@bowenliang123 bowenliang123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Great to see REST protocol enabled by default. Other features relying to REST like kyuubi-admin also benefit from this.

startBatchChecker()
startInternal()
} catch {
case e: Exception => throw new KyuubiException(s"Cannot start $getName", e)
}
}
super.start()
info(s"Exposing REST endpoint at: ${server.getServerUri}")
Copy link
Member Author

@pan3793 pan3793 Mar 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make output consistent

KyuubiTBinaryFrontendService: Service[KyuubiTBinaryFrontend] is started.
KyuubiTBinaryFrontendService: Starting and exposing JDBC connection at: jdbc:hive2://10.221.96.184:10009/
...
KyuubiRestFrontendService: Service[KyuubiRestFrontendService] is started.
KyuubiRestFrontendService: Exposing REST endpoint at: http://10.221.96.184:10099

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible to output the protocol as well?

Copy link
Member Author

@pan3793 pan3793 Mar 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, currently it does not support SSL, so simply add http://

@pan3793 pan3793 self-assigned this Mar 8, 2023
@pan3793 pan3793 added this to the v1.8.0 milestone Mar 8, 2023
@pan3793 pan3793 changed the title Enable REST frontend protocol in default Enable REST frontend protocol by default Mar 8, 2023
@pan3793
Copy link
Member Author

pan3793 commented Mar 8, 2023

Thanks all, merged to master

@pan3793 pan3793 closed this in a47bf6e Mar 8, 2023
@pan3793 pan3793 deleted the enable-rest branch March 9, 2023 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants