-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
HIVE-27817: Disable ssl hostname verification for 127.0.0.1 #4823
Conversation
Kudos, SonarCloud Quality Gate passed!
|
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.
Yes! Thank you!
cc: @SourabhBadhya |
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.
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
Merged to master, thanks @wangyum ! |
) (cherry picked from commit 2eef89b)
What changes were proposed in this pull request?
This PR disables ssl hostname verification for 127.0.0.1.
Why are the changes needed?
We need to setup production tunnel because we can't connect to production environment directly:
sh -fN -o ServerAliveInterval=60 -o ServerAliveCountMax=3 -L 127.0.0.1:10001:hiveserver2.prod.company.com:10001 bastion.company.com JDBC url: jdbc:hive2://127.0.0.1:10001/default;ssl=true
But it will throw exception after HIVE-15025:
This PR disables ssl hostname verification for 127.0.0.1 to workaround this issue.
Does this PR introduce any user-facing change?
No.
Is the change a dependency upgrade?
No.
How was this patch tested?
Manual test.