ZEPPELIN-3395 Fix impersonate spark interpreter without proxy-user option#2916
ZEPPELIN-3395 Fix impersonate spark interpreter without proxy-user option#2916iijima-satoshi wants to merge 1 commit into
Conversation
|
Could someone review this? |
| addJarInDirForIntp "${LOCAL_INTERPRETER_REPO}" | ||
|
|
||
| if [[ ! -z "$ZEPPELIN_IMPERSONATE_USER" && "${INTERPRETER_ID}" != "spark" ]]; then | ||
| if [[ ! -z "$ZEPPELIN_IMPERSONATE_USER" && "$ZEPPELIN_IMPERSONATE_SPARK_PROXY_USER" == "false" ]]; then |
There was a problem hiding this comment.
hmm, I'm actually not sure this is the way to run spark job as the user
There was a problem hiding this comment.
In case of ZEPPELIN_IMPERSONATE_SPARK_PROXY_USER = true, spark interpreter should run as zeppelin user with --proxy-user=[impersonated user].
In case of ZEPPELIN_IMPERSONATE_SPARK_PROXY_USER = false, spark interpreter should run as impersonated user with no --proxy-user option.
But Currently,
In case of ZEPPELIN_IMPERSONATE_SPARK_PROXY_USER = false, spark interpreter runs as zeppelin user with no --proxy-user option.
This is due to "${INTERPRETER_ID}" != "spark" of if condition.
If condition should include ZEPPELIN_IMPERSONATE_SPARK_PROXY_USER = false instead of "${INTERPRETER_ID}" != "spark".
There was a problem hiding this comment.
@iijima-satoshi Have you verified other interpreters like shell ?
There was a problem hiding this comment.
@zjffdu I fixed this line. Please see https://github.com/apache/zeppelin/pull/2916/files
I have verified test cases including other interpreters.
… proxy-user option
13d446d to
a7465b6
Compare
|
Tests for interpreters except spark one were droped in case of ZEPPELIN_IMPERSONATE_SPARK_PROXY_USER = true. |
|
Thanks @iijima-satoshi LGTM |
|
@felixcheung Please let me know if there are any other comments. Thanks. |
|
sure, I'd defer to @zjffdu |
|
@felixcheung Fixed PR title. Thanks. |
…tion ### What is this PR for? Fix impersonate spark interpreter. Currently, impersonate spark interpreter always runs as zeppelin user, not impersonated user when disable proxy-user option. ### What type of PR is it? Bug Fix ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-3395 ### How should this be tested? 1. ZEPPELIN_IMPERSONATE_SPARK_PROXY_USER=false in zeppelin-env.sh 2. set up user impersonation flag 3. run some job using that spark interpreter 4. spark interpreter process should be created with currently logged-in user ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: iijima_satoshi <iijima_satoshi@cyberagent.co.jp> Closes #2916 from iijima-satoshi/fix-impersonate-spark and squashes the following commits: a7465b6 [iijima_satoshi] Fix: Spark interpreter does not run as impersonated user when disable proxy-user option (cherry picked from commit aa3ea68) Signed-off-by: Jeff Zhang <zjffdu@apache.org>
…tion ### What is this PR for? Fix impersonate spark interpreter. Currently, impersonate spark interpreter always runs as zeppelin user, not impersonated user when disable proxy-user option. ### What type of PR is it? Bug Fix ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-3395 ### How should this be tested? 1. ZEPPELIN_IMPERSONATE_SPARK_PROXY_USER=false in zeppelin-env.sh 2. set up user impersonation flag 3. run some job using that spark interpreter 4. spark interpreter process should be created with currently logged-in user ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: iijima_satoshi <iijima_satoshi@cyberagent.co.jp> Closes apache#2916 from iijima-satoshi/fix-impersonate-spark and squashes the following commits: a7465b6 [iijima_satoshi] Fix: Spark interpreter does not run as impersonated user when disable proxy-user option
…tion Fix impersonate spark interpreter. Currently, impersonate spark interpreter always runs as zeppelin user, not impersonated user when disable proxy-user option. Bug Fix https://issues.apache.org/jira/browse/ZEPPELIN-3395 1. ZEPPELIN_IMPERSONATE_SPARK_PROXY_USER=false in zeppelin-env.sh 2. set up user impersonation flag 3. run some job using that spark interpreter 4. spark interpreter process should be created with currently logged-in user * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: iijima_satoshi <iijima_satoshi@cyberagent.co.jp> Closes apache#2916 from iijima-satoshi/fix-impersonate-spark and squashes the following commits: a7465b6 [iijima_satoshi] Fix: Spark interpreter does not run as impersonated user when disable proxy-user option (cherry picked from commit aa3ea68) Signed-off-by: Jeff Zhang <zjffdu@apache.org> (cherry picked from commit 6376122) Change-Id: I83bfdfed585bddabbf6a9ad5d1c65484c4573b3f
What is this PR for?
Fix impersonate spark interpreter.
Currently, impersonate spark interpreter always runs as zeppelin user, not impersonated user when disable proxy-user option.
What type of PR is it?
Bug Fix
What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-3395
How should this be tested?
Questions: