[LIVY-508][Server] Support custom auth filter for livy server#110
[LIVY-508][Server] Support custom auth filter for livy server#110jerryshao wants to merge 2 commits into
Conversation
|
@zjffdu @ajbozarth would you please help to review, thanks! |
|
It would be better to have document for this. e.g. how to create custom auth filter, and how to deploy it. |
vanzin
left a comment
There was a problem hiding this comment.
To be fair there isn't really any documentation about configuring the server. The config template file is currently the most complete source of information for that, so I'm fine with just the example that was added there.
|
|
||
| case other => | ||
| throw new IllegalArgumentException(s"Invalid auth type: $other") | ||
| case e => |
There was a problem hiding this comment.
Use a more descriptive name (e.g. customType)?
|
Can I merge this? I believe this will enable #142. |
|
I think it's fine to merge, I just had a nit comment. |
|
Sorry for the delay, I will address the comments soon. |
Codecov Report
@@ Coverage Diff @@
## master #110 +/- ##
===========================================
- Coverage 68.54% 68.34% -0.2%
+ Complexity 893 891 -2
===========================================
Files 100 100
Lines 5604 5616 +12
Branches 840 842 +2
===========================================
- Hits 3841 3838 -3
- Misses 1212 1225 +13
- Partials 551 553 +2
Continue to review full report at Codecov.
|
mgaido91
left a comment
There was a problem hiding this comment.
LGTM too, merging to master. Thanks.
## What changes were proposed in this pull request? Users may have the requirement to add their own auth filter to the Livy server other than Kerberos, so here propose to add this support. ## How was this patch tested? Verified locally in the cluster. Author: jerryshao <sai.sai.shao@gmail.com> Author: jerryshao <jerryshao@tencent.com> Closes apache#110 from jerryshao/LIVY-508.
## What changes were proposed in this pull request? Users may have the requirement to add their own auth filter to the Livy server other than Kerberos, so here propose to add this support. ## How was this patch tested? Verified locally in the cluster. Author: jerryshao <sai.sai.shao@gmail.com> Author: jerryshao <jerryshao@tencent.com> Closes apache#110 from jerryshao/LIVY-508.
I know it's an old thread, but the given example configuration in the file is not very helpful. It doesn't mention, for example, which class the Filter should even extend. It hasn't been updated since then even after two years. I think a proper example with some sample code would be really helpful for new users. I still don't understand what the params are for and how to use them. An example describing all of these would be quite useful. |
|
And with the following configuration, livy UI doesn't give me any option to enter a username or password. What other parameters need to be passed? |
What changes were proposed in this pull request?
Users may have the requirement to add their own auth filter to the Livy server other than Kerberos, so here propose to add this support.
How was this patch tested?
Verified locally in the cluster.