kyuubi/externals
Hanna Liashchuk c454bfdcbe
[KYUUBI #3385] Set spark.kubernetes.executor.podNamePrefix if missing
### _Why are the changes needed?_
In Spark, if Kubernetes executor pod is not conforming to Kubernetes naming conventions, a user gets the next error:
```
org.apache.kyuubi.KyuubiSQLException: org.apache.kyuubi.KyuubiSQLException: java.lang.IllegalArgumentException: 'kyuubi-connection-spark-sql-USER-8fc2847d-b65d-4a46-bb41-4a86385cb61c-988995839f29e15f' in spark.kubernetes.executor.podNamePrefix is invalid.
```
It can be fixed by manually setting 'spark.kubernetes.executor.podNamePrefix' in configurations, but since you cannot dynamically set a value for every user to contain their username, it will miss this essential information that helps to distinguish executors one from another. I suggest Kyuubi server adds this config automatically if it's not coming from user.

### _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.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request

Closes #3590 from hanna-liashchuk/master.

Closes #3385

94613145 [Hanna Liashchuk] Fixed style check
4b2281ce [Hanna Liashchuk] Merged if clauses
2c52988d [hanna-liashchuk] Merge branch 'apache:master' into master
f397cdc7 [Hanna Liashchuk] Added if clause
8b91109c [Hanna Liashchuk] Added EpochMilli to the podNamePrefix
13e8fb53 [hanna-liashchuk] Merge branch 'apache:master' into master
dcef3e10 [Hanna Liashchuk] Set executor.podNamePrefix for k8s if missing

Lead-authored-by: Hanna Liashchuk <g.liashchuk@temabit.com>
Co-authored-by: hanna-liashchuk <47921651+hanna-liashchuk@users.noreply.github.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-10-20 17:30:39 +08:00
..
kyuubi-download [KYUUBI #3264] [RELEASE] Bump 1.7.0-SNAPSHOT 2022-08-18 11:23:54 +08:00
kyuubi-flink-sql-engine [KYUUBI #3635] Delete temp directories on exit in test suites with Utils.createTempDir 2022-10-18 22:19:07 +08:00
kyuubi-hive-sql-engine [KYUUBI #3635] Delete temp directories on exit in test suites with Utils.createTempDir 2022-10-18 22:19:07 +08:00
kyuubi-jdbc-engine [KYUUBI #3568] [Bug] [Doris Engine] Fix return decimal, date, timestamp using string 2022-09-30 15:39:36 +08:00
kyuubi-spark-sql-engine [KYUUBI #3385] Set spark.kubernetes.executor.podNamePrefix if missing 2022-10-20 17:30:39 +08:00
kyuubi-trino-engine [KYUUBI #3504] Extend JDBC URL to support catalog 2022-10-08 16:05:03 +08:00