# 🔍 Description In some cases, env var USER is unavailable, for example, docker container, we should evaluate it via `id -nu` ref: https://github.com/apache/hadoop/blob/rel/release-3.4.0/hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh#L893-L896 ## Types of changes 🔖 - [x] Bugfix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Test Plan 🧪 ``` $ docker run -t -i ubuntu:latest root1dbeaefd6cd4:/# echo $USER root1dbeaefd6cd4:/# id -nu root root1dbeaefd6cd4:/# exit ``` --- # Checklist 📝 - [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes #6588 from pan3793/USER. Closes #6588 a79786347 [Cheng Pan] Get effective USER if env var is unavailable Authored-by: Cheng Pan <chengpan@apache.org> Signed-off-by: Cheng Pan <chengpan@apache.org> |
||
|---|---|---|
| .. | ||
| beeline | ||
| docker-image-tool.sh | ||
| kyuubi | ||
| kyuubi-admin | ||
| kyuubi-beeline | ||
| kyuubi-ctl | ||
| kyuubi-logo | ||
| kyuubi-zk-cli | ||
| load-kyuubi-env.sh | ||
| stop-application.sh | ||