zeppelin
zeppelin copied to clipboard
[ZEPPELIN-6028] Enhance default value assignment for ZEPPELIN_IDENT_STRING
What is this PR for?
In some cases, $USER is not available, this PR follows Hadoop[1] to enhance the USER evaluation.
For example, there is no $USER when login to docker
$ docker run -t -i ubuntu:latest
root@1dbeaefd6cd4:/# echo $USER
root@1dbeaefd6cd4:/# exit
[1] https://github.com/apache/hadoop/blob/rel/release-3.4.0/hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh#L893-L896
What type of PR is it?
Improvement
What is the Jira issue?
ZEPPELIN-6028
How should this be tested?
Review.
Screenshots (if appropriate)
Questions:
- Does the license files need to update? No.
- Is there breaking changes for older versions? No.
- Does this needs documentation? No.
cc @zjffdu @huage1994 @Reamer
kindly ping @zjffdu