Commit Graph

9 Commits

Author SHA1 Message Date
Cheng Pan
b90063942a
[KYUUBI #6588] Get effective USER if env var is unavailable
# 🔍 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>
2024-08-07 17:44:42 +08:00
liangbowen
cd00e69c96 [KYUUBI #4187] [Improvement] Print revision commit time on server startup
### _Why are the changes needed?_

- commit date is more readable and helpful to determine earlier/later version, especially for snapshot branch
- adding revision commit date from git to `kyuubi-version-info.properties`
- Print revision date on server startup

![image](https://user-images.githubusercontent.com/1935105/213330684-26ef3b3f-eaf3-4cb1-b0cb-81dba30dbee3.png)

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [x] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request

Closes #4187 from bowenliang123/print-revision-date.

Closes #4187

b0b0a6c8 [liangbowen] print revision date on server startup

Authored-by: liangbowen <liangbowen@gf.com.cn>
Signed-off-by: liangbowen <liangbowen@gf.com.cn>
2023-01-20 23:43:29 +08:00
jiaoqingbo
a09ad0b676
[KYUUBI #2424] [Improvement] add Flink compile version and Trino client compile version to KyuubiServer Log
### _Why are the changes needed?_

fix #2424

### _How was this patch tested?_
- [x] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [ ] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request

Closes #2425 from jiaoqingbo/2424.

Closes #2424

9949d9a5 [jiaoqingbo] Update UtilsSuite.scala
ac9afb46 [jiaoqingbo] Update package.scala
e415345d [jiaoqingbo] Update kyuubi-common/src/main/scala/org/apache/kyuubi/package.scala
081b061f [jiaoqingbo] Update kyuubi-server/src/main/scala/org/apache/kyuubi/server/KyuubiServer.scala
c1ade020 [jiaoqingbo] Update build/kyuubi-build-info
6af3dd08 [jiaoqingbo] [KYUUBI #2424] [Improvement] add Flink compile version and Trino client compile version

Authored-by: jiaoqingbo <1178404354@qq.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-04-21 15:22:10 +08:00
fwang12
4e637c62de
[KYUUBI #297] Remove unused property from build properties file
fixes #297
Squashed commit of the following:

commit 26df4c44a57f92dd16efe69898e9e969c22093fa
Author: fwang12 <fwang12@ebay.com>
Date:   Mon Jan 18 13:09:13 2021 +0800

    remove unused properties in build info
2021-01-18 14:26:11 +08:00
Kent Yao
eb2a7050d9 build info 2020-09-21 21:26:16 +08:00
Kent Yao
e22dda7dbd Add more build infomation 2020-09-11 09:55:11 +08:00
Kent Yao
248259d84f verify resource setting and add some comments 2018-07-26 16:36:16 +08:00
Kent Yao
a19ca23a56 test class loader 2018-05-14 19:16:22 +08:00
Kent Yao
729ee6186f add version info 2018-05-13 18:52:08 +08:00