Commit Graph

2144 Commits

Author SHA1 Message Date
Fei Wang
c922ae28ab [KYUUBI #2801][FOLLOWUP] Also check whether the batch main resource path is in local dir allow list
### _Why are the changes needed?_

Also check whether the main resource path is in the local dir allow list.

### _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 #3002 from turboFei/check_resource.

Closes #2801

0e2f303d [Fei Wang] fix ut
cfa61e58 [Fei Wang] check main resource

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-07-05 17:50:54 +08:00
Fei Wang
13e618cf9c [KYUUBI #3012] Remove unused thrift request max attempts and related ut
### _Why are the changes needed?_

After #2948 and #2953, the OPERATION_THRIFT_CLIENT_REQUEST_MAX_ATTEMPTS is not used.

In this pr, I remove the attempts config entry and related ut that based on the request attempts.

### _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 #3012 from turboFei/follow_up_engine_alive.

Closes #3012

3d15e44a [Fei Wang] remove deprecated docs
89c9f2cb [Fei Wang] remove docs
edb6ff2e [Fei Wang] remove ut
696bd853 [Fei Wang] saev
f91c61bf [Fei Wang] remove unused attempt

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-07-05 17:50:06 +08:00
lxorc
3203829f7d
[KYUUBI #3005] [DOCS] Correct spelling errors and optimizations in 'Building Kyuubi Documentation' part
### _Why are the changes needed?_
Correct spelling and smooth documentation make the community better.

### _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 #3006 from lxorc/master.

Closes #3005

ca294af5 [lxorc] [DOCS] Correct spelling errors and optimizations in 'Building Kyuubi Documentation'

Authored-by: lxorc <13612100484@163.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-07-05 10:44:10 +08:00
Cheng Pan
3e5a92ef37
[KYUUBI #3004] Clean up JDBC shaded client pom and license
### _Why are the changes needed?_

Clean up JDBC shaded client pom and license because we removed some dependencies.

This PR also disables `minimizeJar` in JDBC shaded client, because it may cause unexpected "class not found" issues.

The current JDBC shaded client jar size is 11MB.

### _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 #3004 from pan3793/cleanup.

Closes #3004

1887f353 [Cheng Pan] Clean up JDBC shaded client pom and license

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-07-05 09:49:12 +08:00
hongdongdong
66a45f3e6c [KYUUBI #2895] Show final info in trino engine
### _Why are the changes needed?_

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

- [x] Add screenshots for manual tests if appropriate
![trino-process](https://user-images.githubusercontent.com/17537134/174044438-cfdda31f-a644-4753-81ef-7c62ea0a078c.png)

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

Closes #2896 from hddong/trino-result-info.

Closes #2895

757019cf [hongdongdong] fix scala style
f40b1c53 [hongdongdong] Fix
3edbdfb3 [hongdongdong] [KYUUBI #2895] Show final info in trino engine

Authored-by: hongdongdong <hongdongdong@cmss.chinamobile.com>
Signed-off-by: hongdongdong <hongdongdong@cmss.chinamobile.com>
2022-07-05 09:17:18 +08:00
wangjunbo
9e2aaffcaf
[KYUUBI #2984] Refactor TPCDS configurations using SparkConfParser
### _Why are the changes needed?_

close #2984

### _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 #2988 from Kwafoor/master.

Closes #2984

d4f761d0 [wangjunbo] [KYUUBI-2984]Refactor TPCDS configurations using SparkConfParser
55250845 [wangjunbo] [KYUUBI-2984]Refactor TPCDS configurations using SparkConfParser
293afc33 [wangjunbo] [KYUUBI-2984]Refactor TPCDS configurations using SparkConfParser
4ce8ba32 [wangjunbo] [KYUUBI-2984]Refactor TPCDS configurations using SparkConfParser

Authored-by: wangjunbo <wangjunbo@qiyi.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-07-04 23:02:53 +08:00
jiaoqingbo
4b8dc7962d
[KYUUBI #2996] Remove Hive storage-api dependencies from Kyuubi Hive JDBC
### _Why are the changes needed?_

fix #2996

### _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

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

Closes #3003 from jiaoqingbo/kyuubi-2996.

Closes #2996

bc919312 [jiaoqingbo] [KYUUBI #2996] Remove Hive storage-api dependencies from Kyuubi Hive JDBC

Authored-by: jiaoqingbo <1178404354@qq.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-07-04 18:46:51 +08:00
ulysses-you
407fc8db45
[KYUUBI #2997] Use spark shim set current namespace
### _Why are the changes needed?_

To make the behavior consistent.

The master GA failed due to https://github.com/apache/spark/pull/36969
<img width="1137" alt="image" src="https://user-images.githubusercontent.com/12025282/177069041-b0a102ca-51bf-4faf-b89d-53bfd950cbc2.png">

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

- [x] 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 #2998 from ulysses-you/setCurrentNamespace.

Closes #2997

2646d4ff [ulysses-you] style
79a9f332 [ulysses-you] simplify
246ed71c [ulysses-you] v2 catalog

Authored-by: ulysses-you <ulyssesyou18@gmail.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-07-04 18:45:11 +08:00
jiaoqingbo
774934fe57
[KYUUBI #2994] Remove Hive common dependencies from Kyuubi Hive JDBC
### _Why are the changes needed?_

fix #2994

### _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 #2995 from jiaoqingbo/kyuubi-2994.

Closes #2994

c9c695b1 [jiaoqingbo] [KYUUBI #2994] Remove Hive common dependencies from Kyuubi Hive JDBC

Authored-by: jiaoqingbo <1178404354@qq.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-07-04 16:51:03 +08:00
Cheng Pan
c7e2b3229b
[KYUUBI #2850][FOLLOWUP] Replace log4j2.properties by log4j2.xml
### _Why are the changes needed?_

Replace log4j2.properties by log4j2.xml

### _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 #3001 from pan3793/log4j.

Closes #2850

e9396017 [Cheng Pan] fix
4e06c89c [Cheng Pan] [KYUUBI #2850][FOLLOWUP] Replace log4j2.properties by log4j2.xml

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-07-04 16:48:02 +08:00
Fei Wang
b585fb4257 [KYUUBI #2801] Add local dir allow list and check the application access path URI
### _Why are the changes needed?_

To close #2801

Customer might set some parameters to upload the local files, such as spark.files=/etc/security/keytabs/kyuubi.keytab. It is not security for kyuubi server.

In this pr, I introduce a local dir allow list and customer can only upload the files under these dirs.

### _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

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

Closes #2991 from turboFei/local_white_list.

Closes #2801

6315067d [Fei Wang] comments
deb9fa8a [Fei Wang] remove unused
3330fa98 [Fei Wang] refactor
6eca2f8b [Fei Wang] move to KyuubiApplicationManager and add ut
1290d9e2 [Fei Wang] add more
f14ec7d4 [Fei Wang] add more path configs and add comment
82357183 [Fei Wang] refactor
f201f577 [Fei Wang] disable relative path
f806e69a [Fei Wang] refactor
4f2faa6a [Fei Wang] save

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-07-04 14:50:02 +08:00
Fei Wang
03e55e0c06 [KYUUBI #2953] Support to interrupt the thrift request if remote engine is broken
### _Why are the changes needed?_

The engine request timeout was removed by #2948

We need rely on the aliveness probe to interrupt the thrift request if remote engine is broken.

### _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 #2953 from turboFei/interrupt_thrift.

Closes #2953

d5b93133 [Fei Wang] comments
423a15ab [Fei Wang] ut
3eda4029 [Fei Wang] visible for testing
5c7749d2 [Fei Wang] fix ut
8718fb5a [Fei Wang] fix http ut:
f14e5039 [Fei Wang] fix ut
26e82ab9 [Fei Wang] fix ut1
8cb2dc2c [Fei Wang] save
45438ae1 [Fei Wang] save
bc2772f5 [Fei Wang] save
c765f757 [Fei Wang] refactor
97f1aad5 [Fei Wang] fix ut
88d09f19 [Fei Wang] check error msg
6a0f31f9 [Fei Wang] remove dead code
a2cc020f [Fei Wang] refactor ut
bce8b8cb [Fei Wang] remove retry
e30f1025 [Fei Wang] add ut
1a3ae71f [Fei Wang] save
4fff0899 [Fei Wang] fix
9f7712b0 [Fei Wang] refactor
bf2b2301 [Fei Wang] refactor
7c85ab4c [Fei Wang] refactor the thread pool name
f3e6c253 [Fei Wang] refactor
0d5e44a3 [Fei Wang] await result

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-07-04 14:49:15 +08:00
Cheng Pan
5eb83b4c7c
[KYUUBI #2999] Fix Kyuubi Hive Beeline dependencies
### _Why are the changes needed?_

Before https://github.com/apache/incubator-kyuubi/pull/1715, `kyuubi-hive-beeline` and `kyuubi-hive-jdbc` managed dependencies in-self, after https://github.com/apache/incubator-kyuubi/pull/1715 and https://github.com/apache/incubator-kyuubi/issues/1716, `kyuubi-hive-beeline` uses some transitive dependencies of `kyuubi-hive-jdbc`, the recent dependencies change of `kyuubi-hive-jdbc` breaks `kyuubi-hive-beeline`.

### _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 #2999 from pan3793/beeline.

Closes #2999

b92b8a17 [Cheng Pan] Fix Kyuubi Hive Beeline dependencies

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-07-04 14:19:39 +08:00
Cheng Pan
8dddfeb0af
[KYUUBI #2850][FOLLOWUP] Fix default log4j2 configuration
### _Why are the changes needed?_

Remove `conf/log4j2.properties.template` as it has been replaced by `conf/log4j2.xml.template`
Remove `<ThresholdFilter level="FATAL"/>` in default stdout appender.

### _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

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

Closes #3000 from pan3793/log4j-followup.

Closes #2850

ccb9dd6e [Cheng Pan] [KYUUBI #2850][FOLLOWUP] Fix default log4j2 configuration

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-07-04 13:51:34 +08:00
zwangsheng
b174d0c19f [KYUUBI #2977] [BATCH] Using KyuubiApplicationManger#tagApplication help tag batch application
close #2977
### _Why are the changes needed?_

### _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 #2982 from zwangsheng/feature/KYUUBI-2977.

Closes #2977

46e5dba2 [zwangsheng] add spark app name
a3943596 [zwangsheng] fix compiler
02c43f21 [zwangsheng] fix style
f7e44eeb [zwangsheng] refis
3a7cb803 [zwangsheng] instead

Authored-by: zwangsheng <2213335496@qq.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-07-03 01:15:47 +08:00
Fei Wang
163e0f8232 [KYUUBI #2993] Fix typo in KyuubiConf and mark more config entries server only
### _Why are the changes needed?_

Fix typo in KyuubiConf and mark more config entries server only.

### _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 #2993 from turboFei/fix_typo.

Closes #2993

002e911f [Fei Wang] add more
53ef59a0 [Fei Wang] save
d5a55683 [Fei Wang] add into server only
fea3daa4 [Fei Wang] Fix typo

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-07-02 23:38:25 +08:00
jiaoqingbo
d8d6903f5d
[KYUUBI #2987] Remove Hive shims-common and shims-0.23 dependencies from Kyuubi Hive JDBC
### _Why are the changes needed?_

fix #2987

### _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

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

Closes #2992 from jiaoqingbo/kyuubi-2987.

Closes #2987

97e25292 [jiaoqingbo] [KYUUBI #2987] Remove Hive shims-common and shims-0.23 dependencies from Kyuubi Hive JDBC

Authored-by: jiaoqingbo <1178404354@qq.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-07-02 22:34:09 +08:00
maming
8d09c83b18
[KYUUBI #2985] Prompt configuration when starting engine timeout
### _Why are the changes needed?_

close #2985

### _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 #2990 from mattshma/prompt_conf_when_engine_timeout.

Closes #2985

04e3e680 [maming] prompt configuration when starting engine timeout

Authored-by: maming <mattshma13@gamil.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-07-02 11:38:54 +08:00
Cheng Pan
56c016166f
[KYUUBI #2989] Remove HS2 active-passive support in Kyuubi Hive JDBC client
### _Why are the changes needed?_

HS2 introduced active-passive in 3.0 via HIVE-18281, Kyuubi does not support that.

### _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 #2989 from pan3793/2959-followup.

Closes #2989

c8ed51dd [Cheng Pan] more cleanup
d9e2e009 [Cheng Pan] Remove Kyuubi Hive JDBC client active-passive mode support

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-07-01 21:20:13 +08:00
jiaoqingbo
e41ef56611
[KYUUBI #2983] Remove Hive llap-client dependencies from Kyuubi Hive JDBC
### _Why are the changes needed?_

fix #2983

### _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 #2986 from jiaoqingbo/kyuubi-2983.

Closes #2983

9d068edf [jiaoqingbo] [KYUUBI #2983] Remove Hive llap-client dependencies from Kyuubi Hive JDBC

Authored-by: jiaoqingbo <1178404354@qq.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-07-01 18:44:55 +08:00
Cheng Pan
3a80f33bf1
[KYUUBI #2981] Improve TPC-DS scan performance
### _Why are the changes needed?_

Before
```
OpenJDK 64-Bit Server VM 1.8.0_332-b09 on Mac OS X 12.4
Apple M1 Pro
TPCDS table generates 1000000 rows benchmark:  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
----------------------------------------------------------------------------------------------------------------------------
catalog_returns benchmark                             13956          13975          21          0.1       13955.7       1.0X
catalog_sales benchmark                               10229          10277          42          0.1       10229.2       1.4X
customer benchmark                                     9305           9464         249          0.1        9305.0       1.5X
customer_address benchmark                             5612           5737         162          0.2        5611.7       2.5X
customer_demographics benchmark                        1108           1182          66          0.9        1107.5      12.6X
inventory benchmark                                     665            695          27          1.5         664.7      21.0X
store_returns benchmark                               11260          11409         132          0.1       11260.1       1.2X
store_sales benchmark                                  7894           7909          15          0.1        7894.1       1.8X
web_returns benchmark                                 13042          13082          38          0.1       13042.1       1.1X
web_sales benchmark                                   11182          11201          23          0.1       11182.4       1.2X
```

After
```
OpenJDK 64-Bit Server VM 1.8.0_332-b09 on Mac OS X 12.4
Apple M1 Pro
TPCDS table generates 1000000 rows benchmark:  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
----------------------------------------------------------------------------------------------------------------------------
catalog_returns benchmark                             13644          13703          52          0.1       13643.6       1.0X
catalog_sales benchmark                               10505          10553          43          0.1       10505.2       1.3X
customer benchmark                                     8571           8658         124          0.1        8570.8       1.6X
customer_address benchmark                             5230           5255          25          0.2        5229.7       2.6X
customer_demographics benchmark                         838            844           6          1.2         837.7      16.3X
inventory benchmark                                     475            489          13          2.1         475.3      28.7X
store_returns benchmark                               10808          10935         163          0.1       10807.8       1.3X
store_sales benchmark                                  7694           7723          43          0.1        7693.5       1.8X
web_returns benchmark                                 12731          12737           6          0.1       12730.8       1.1X
web_sales benchmark                                   10545          10584          41          0.1       10545.3       1.3X
```

### _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 #2981 from pan3793/tpcds-perf.

Closes #2981

0ca494ef [Cheng Pan] fix
128e6f60 [Cheng Pan] reuse array
64e2f6e2 [Cheng Pan] Improve TPC-DS scan performance

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-07-01 17:34:30 +08:00
jiaoqingbo
145a18db50
[KYUUBI #2917] Remove Hive service dependencies from Kyuubi Hive JDBC
### _Why are the changes needed?_

fix #2917

### _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 #2959 from jiaoqingbo/kyuubi-2917.

Closes #2917

93b4e619 [jiaoqingbo] delete unused code
466d482a [jiaoqingbo] fix compile failed
be5accd7 [jiaoqingbo] fix compile failed and remove annotation
1561fa56 [jiaoqingbo] code review 2
a46ed261 [jiaoqingbo] code review
efcae807 [jiaoqingbo] modify package
fead185c [jiaoqingbo] modify license
f5d8b195 [jiaoqingbo] [KYUUBI #2917] Remove Hive service dependencies from Kyuubi Hive JDBC

Authored-by: jiaoqingbo <1178404354@qq.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-07-01 16:05:50 +08:00
zwangsheng
3bc299d01e
[KYUUBI #2868] [K8S] Add KubernetesApplicationOperation
### _Why are the changes needed?_

close #2868
Add Kubernetes Application Operation.
Help Tag Spark Driver with Engine Ref Id.

1) Find taged Engine:
`KyuubiApplicationManager => KubernetesApplicationOperation =(doesn't found taged pod)=> KubernetesApplicationOperation#JpsApplicationOperation`

2) `SparkBatchProcessBuilder` add logic to help tag Kubernetes Engine Tag.

3) Add Unit Test help to check `KubernetesApplicationOperation` find & kill  Spark Engine On Kubernetes with both client mode and cluster mode.

### _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 #2869 from zwangsheng/feature/k8s-application-operation.

Closes #2868

04c97210 [zwangsheng] remove
fc151603 [zwangsheng] fix kyuubi on kubernetes integration test
29a3da52 [zwangsheng] fix
f43f0989 [zwangsheng] fix
2f2c9581 [zwangsheng] test
209dd65d [zwangsheng] fix jps
e12c681c [zwangsheng] fix tag
80971f98 [zwangsheng] fix
0760b63d [zwangsheng] fix
087eadb1 [zwangsheng] fix
d4989b09 [zwangsheng] try
93d83f81 [zwangsheng] add test
19378da4 [zwangsheng] fix style
63007261 [zwangsheng] fix test
fd4bf714 [zwangsheng] fix
66fc902b [zwangsheng] Using jps for client
2a1b797f [zwangsheng] fix setting
4827c459 [zwangsheng] fix
9ee90da6 [zwangsheng] decoupling spark
6b5831da [zwangsheng] useless driver label
f9ca898c [zwangsheng] fix
2add72fe [zwangsheng] fix setting
aaa081f8 [zwangsheng] fix style & dependency list
e102ac73 [zwangsheng] add kubernetesApplicationOperation

Authored-by: zwangsheng <2213335496@qq.com>
Signed-off-by: ulysses-you <ulyssesyou@apache.org>
2022-07-01 12:15:12 +08:00
hongdongdong
cfe380ae0b [KYUUBI #2979] Fix helm icon url
### _Why are the changes needed?_

Icon url in Helm Chart.yaml is not a real image url.

### _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 #2979 from hddong/fix-helm-icon.

Closes #2979

6b0fe04c [hongdongdong] Fix helm icon url

Authored-by: hongdongdong <hongdongdong@cmss.chinamobile.com>
Signed-off-by: hongdongdong <hongdongdong@cmss.chinamobile.com>
2022-07-01 10:30:33 +08:00
Fei Wang
b115c8dd24 [KYUUBI #2978] [SUB-TASK][KPIP-4] If batch app status not found from cluster manager, fall back to metadata store
### _Why are the changes needed?_

Because the kyuubi batch is not closed once the session completed(reserve the batch log for sometime).

If a batch has been finished for some time, it might can not be found from RM, which has max reserved application list limitation, for this case, we need fall back to metadata for batch info response.

Before:
<img width="1085" alt="image" src="https://user-images.githubusercontent.com/6757692/176682626-294da2bd-eb37-4b6f-95e9-052990fa2a85.png">

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

- [x] 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 #2978 from turboFei/fall_back_metadata.

Closes #2978

a0a51ac0 [Fei Wang] If batch app status not found, fall back to metadata

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-07-01 09:32:35 +08:00
Cheng Pan
bd2f5b23a9
[KYUUBI #2975] Code improvement in rest client
### _Why are the changes needed?_

Small code improvements and clean up in rest client

### _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 #2975 from pan3793/rest-client.

Closes #2975

c05051e3 [Cheng Pan] lock
788fc76e [Cheng Pan] cleanup
00f0d3e0 [Cheng Pan] nit
dbc416ce [Cheng Pan] setAccessible
4529cc2a [Cheng Pan] Code improvement in rest client

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-06-30 20:17:08 +08:00
Fei Wang
6f308c434c [KYUUBI #2964] [SUB-TASK][KPIP-4] Refine the batch response and render
### _Why are the changes needed?_

This is make some enhancements for batch response:
- combine batch name and batch app name
- flatten the batchInfo map to `appId`, `appUrl`, `appState` and`appDiagnostic`

Using https://github.com/JakeWharton/flip-tables for table render, which support that the column value could be a multiple-line string.
### _How was this patch tested?_
- [x] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [x] Add screenshots for manual tests if appropriate

Batch List:
![image](https://user-images.githubusercontent.com/6757692/176608602-89082758-4170-4337-ae64-b0dc75eaba77.png)

Batch Report:
![image](https://user-images.githubusercontent.com/6757692/176608636-448edf13-3147-4fc7-9df5-0192841f4201.png)

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

Closes #2964 from turboFei/refine_batch_resp.

Closes #2964

deaedcbc [Fei Wang] add into LICENSE-binary
1f9691e3 [Fei Wang] [SUB-TASK][KPIP-4] Refine the batch response and render

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-06-30 18:27:45 +08:00
Fei Wang
2d0bb9f220 [KYUUBI #2976] Expose session name into kyuubi engine tab
### _Why are the changes needed?_

Expose the session name in engine tab to make it more clear.

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

- [x] Add screenshots for manual tests if appropriate
<img width="1724" alt="image" src="https://user-images.githubusercontent.com/6757692/176633011-7a3e9af3-7949-4a45-a7bc-8debebc2d376.png">

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

Closes #2976 from turboFei/session_name.

Closes #2976

05975619 [Fei Wang] save
03b577c3 [Fei Wang] expose session name

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-06-30 17:47:34 +08:00
Fei Wang
cec8b03f39 [KYUUBI #2850][FOLLOWUP] Provide log4j2.xml.template in binary and use log4j2-defaults.xml
### _Why are the changes needed?_

This is a follow up of #2850

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

- [x] 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 #2971 from turboFei/remove_on_match_from_default.

Closes #2850

10e6067e [Fei Wang] refactor
929fde7d [Fei Wang] comments
4ad12f11 [Fei Wang] add log4j1
91168b6c [Fei Wang] fix
e5ac285e [Fei Wang] fix
efe789eb [Fei Wang] [KYUUBI #2850][FOLLOWUP] Use log4j2 xml to take replace of log4j2 properties

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-06-30 17:17:49 +08:00
Fu Chen
b7cd6f97fd
[KYUUBI #2963] Bump Delta 2.0.0rc1
### _Why are the changes needed?_

Test against delta 2.0.0rc1

https://github.com/delta-io/delta/releases/tag/v2.0.0rc1

### _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

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

Closes #2963 from cfmcgrady/delta-2-preview.

Closes #2963

db3686e7 [Fu Chen] bump delta 2.0.0rc1

Authored-by: Fu Chen <cfmcgrady@gmail.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-06-30 16:36:13 +08:00
zhouyifan279
8d4d00feb3
[KYUUBI #2918][Bug] Kyuubi integrated Ranger failed to query: table stats must be specified
### _Why are the changes needed?_
Fix #2918

### _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 #2967 from zhouyifan279/2918.

Closes #2918

79800d5b [zhouyifan279] [KYUUBI #2918][Bug] Kyuubi integrated Ranger failed to query: table stats must be specified
b279d2f5 [zhouyifan279] [KYUUBI #2918][Bug] Kyuubi integrated Ranger failed to query: table stats must be specified
fcb1f8a3 [Min Zhao] [KYUUBI #2918][Bug] Kyuubi integrated Ranger failed to query: table stats must be specified
3cab67b1 [Min Zhao] [KYUUBI #2918][Bug] Kyuubi integrated Ranger failed to query: table stats must be specified
cff04d1c [zhouyifan279] [KYUUBI #2918][Bug] Kyuubi integrated Ranger failed to query: table stats must be specified
24aaf81e [zhouyifan279] [KYUUBI #2918][Bug] Kyuubi integrated Ranger failed to query: table stats must be specified
306508f8 [zhouyifan279] [KYUUBI #2918][Bug] Kyuubi integrated Ranger failed to query: table stats must be specified

Lead-authored-by: zhouyifan279 <zhouyifan279@gmail.com>
Co-authored-by: Min Zhao <zhaomin1423@163.com>
Signed-off-by: Kent Yao <yao@apache.org>
2022-06-30 15:20:44 +08:00
Kent Yao
a9908a1b81
[KYUUBI #2966] Remove TProtocolVersion from SessionHandle/OperationHandle
### _Why are the changes needed?_

Remove TProtocolVersion from SessionHandle/OperationHandle/Operation classes, and now it only kept in Session

### _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 #2966 from yaooqinn/proto.

Closes #2966

f698d7d3 [Kent Yao] [WIP] Remove TProtocolVersion from SessionHandle/OperationHandle
83f3676a [Kent Yao] [WIP] Remove TProtocolVersion from SessionHandle/OperationHandle
10024e9e [Kent Yao] [WIP] Remove TProtocolVersion from SessionHandle/OperationHandle

Authored-by: Kent Yao <yao@apache.org>
Signed-off-by: Kent Yao <yao@apache.org>
2022-06-30 14:30:45 +08:00
Fei Wang
3387205786
[KYUUBI #2972] Using stdout for the output of kyuubi-ctl
### _Why are the changes needed?_

Using stdout as the output of kyuubi-ctl.

So that we can using the shell command
```
result=$(kyuubi-ctl action resource)
```

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

- [x] Add screenshots for manual tests if appropriate
<img width="1319" alt="Screen Shot 2022-06-30 at 07 46 42" src="https://user-images.githubusercontent.com/6757692/176564161-2ff622e7-80ba-4059-a6c4-b6408aee0ba7.png">

<img width="1319" alt="Screen Shot 2022-06-30 at 07 48 52" src="https://user-images.githubusercontent.com/6757692/176564338-316300e0-8d39-4d1f-a852-6f31eeedb443.png">

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

Closes #2972 from turboFei/ctl_stdout.

Closes #2972

10cdf72c [Fei Wang] Use stdout

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-06-30 10:38:36 +08:00
Min Zhao
5412d1b969
[KYUUBI #2973] Decorate LOG in the RetryableRestClient with static final
### _Why are the changes needed?_

A minor  improvement by using static.

### _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

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

Closes #2973 from zhaomin1423/fix_log.

Closes #2973

285ac0a2 [Min Zhao] Decorate LOG in the RetryableRestClient with static final

Authored-by: Min Zhao <zhaomin1423@163.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-06-30 10:36:07 +08:00
Fei Wang
10affbf64e [KYUUBI #2962] [SUB-TASK][KPIP-4] Throw exception if the metadata update count is zero
### _Why are the changes needed?_

Throw exception if the metadata update count is zero, in case that the pre insert metadata operation failed.

### _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

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

Closes #2962 from turboFei/retry_on_created.

Closes #2962

3610be91 [Fei Wang] If update count is zero, throw exception
25d957ca [Fei Wang] Revert "If the metadata does not be created successfully, put into retry queue"
24cdc7e0 [Fei Wang] If the metadata does not be created successfully, put into retry queue

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-06-29 21:53:27 +08:00
Tianlin Liao
6e4b5582da [KYUUBI #2956] Support to config the connect/socket timeout of rest client for kyuubi-ctl
### _Why are the changes needed?_

Close #2956

### _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

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

Closes #2958 from lightning-L/kyuubi-2956.

Closes #2956

a88de508 [Tianlin Liao] allow 0 timeout for rest client; increase default timeout
94a57cce [Tianlin Liao] update
d569abe8 [Tianlin Liao] [KYUUBI #2956] Support to config the connection/socket timeout of rest client for kyuubi-ctl

Authored-by: Tianlin Liao <tiliao@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-06-29 18:47:58 +08:00
zhangliang
cf27278fd9 [KYUUBI #2960] TFrontendService.SERVER_VERSION shall be HIVE_CLI_SERVICE_PROTOCOL_V11
### _Why are the changes needed?_
1. bugfix for issue #2960

### _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

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

Closes #2961 from CavemanIV/kyuubi-2960.

Closes #2960

8aa38eb9 [zhangliang] TFrontendService always use newest hive cli TProtocolVersion
25e5110e [zhangliang] [KYUUBI #2960] TFrontendService.SERVER_VERSION shall be HIVE_CLI_SERVICE_PROTOCOL_V11

Authored-by: zhangliang <zhangliang@trip.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-06-29 15:01:45 +08:00
Fei Wang
defae6bdf6 [KYUUBI #2957] [SUB-TASK][KPIP-4] Use canonical host name for kyuubi instance
### _Why are the changes needed?_

We have to use canonical host name as kyuubi instance, otherwise, the ip is always change after pod restart, and the kyuubi instance can not get recovered.
### _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 #2957 from turboFei/kyuubi_instance_url.

Closes #2957

ac8d9df4 [Fei Wang] respect FRONTEND_CONNECTION_URL_USE_HOSTNAME
c4dcd7d3 [Fei Wang] use getCanonicalHostName for EmbeddedZookeeper
c183b41f [Fei Wang] use getCanonicalHostName for TFrontendService
59f3c0a6 [Fei Wang] Use getCanonicalHostName

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-06-28 21:54:07 +08:00
Kent Yao
6c44a7bbd2
[KYUUBI #2952] Remove OperationType from OperationHandle for simplification
### _Why are the changes needed?_

The Operation Type is only used for converting `TOperationType` through specific Thrift Operation APIs. So we can TOperationType in these APIs directly, such as, during calling TFrontendService.ExecuteStatement, we can set TOperationType.EXECUTE_STATEMENT at the end. There is no need to add it to OperationType.

This PR removes `OperationType` completely to simply `OperationHandle` which benefits other `kyuubi.frontend.protocols`.

The thrift protocol shall be able to be removed in following PRs.

### _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 #2952 from yaooqinn/opType.

Closes #2952

af00c04a [Kent Yao] address comments
4e4f4341 [Kent Yao] address comments
54a2c4ff [Kent Yao] [WIP] Remove Operation Type
ba08ccaf [Kent Yao] [WIP] Remove Operation Type
1737176b [Kent Yao] [WIP] Remove Operation Type
8fe00820 [Kent Yao] [WIP] Remove Operation Type
f969d73d [Kent Yao] [WIP] Remove Operation Type
778f8f4f [Kent Yao] [WIP] Remove Operation Type
54f6573c [Kent Yao] [WIP] Remove Operation Type

Authored-by: Kent Yao <yao@apache.org>
Signed-off-by: Kent Yao <yao@apache.org>
2022-06-28 20:06:20 +08:00
Tianlin Liao
fbb434c43f [KYUUBI #2955] BatchRequest args fix: need toString operation for different data types
### _Why are the changes needed?_

Refine the CreateBatchCommand.

### _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

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

Closes #2955 from lightning-L/fix.

Closes #2955

61ee0d05 [Tianlin Liao] move BatchType to request
be40748d [Tianlin Liao] BatchRequest args fix: need toString operation for different data types

Authored-by: Tianlin Liao <tiliao@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-06-28 18:57:23 +08:00
Fu Chen
994dc6ce84
[KYUUBI #2949] Flaky test: execute statement - analysis exception
### _Why are the changes needed?_

to close #2949

Unquoted the function name  in the error `SECOND_FUNCTION_ARGUMENT_NOT_INTEGER` since Spark-3.4.0, for more details, see https://github.com/apache/spark/pull/36693

### _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

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

Closes #2950 from cfmcgrady/kyuubi-2949.

Closes #2949

4d4da0ba [Fu Chen] fix

Authored-by: Fu Chen <cfmcgrady@gmail.com>
Signed-off-by: ulysses-you <ulyssesyou@apache.org>
2022-06-28 09:11:06 +08:00
Tianlin Liao
c8f18f0001 [KYUUBI #2951] No need to extend CompositeService for MetadataManager
### _Why are the changes needed?_

CompositeService is not needed, use AbstractService.
### _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

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

Closes #2951 from lightning-L/fix.

Closes #2951

4d563344 [Tianlin Liao] no need to extend CompositeService for MetadataManager

Authored-by: Tianlin Liao <tiliao@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-06-27 20:52:15 +08:00
Fei Wang
6a9d5ff244 [KYUUBI #2948] Remove thrift request timeout for KyuubiSyncThriftClient
### _Why are the changes needed?_

Remove thrift request timeout for KyuubiSyncThriftClient

### _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 #2948 from turboFei/remove_request_timeout.

Closes #2948

a9c5c084 [Fei Wang] remove request timeout

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-06-27 14:45:52 +08:00
zwangsheng
caa3ed2aac
[KYUUBI #2943][Bug][K8S] Remove Start Local Kyuubi Server For Kyuubi On K8S Test
### _Why are the changes needed?_

With #2943
close #2943

### _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

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

Closes #2944 from zwangsheng/fix/remove_useless_server.

Closes #2943

6656d0ca [zwangsheng] fix test
faac8ff9 [zwangsheng] fix
57677ea5 [zwangsheng] remove

Authored-by: zwangsheng <2213335496@qq.com>
Signed-off-by: ulysses-you <ulyssesyou@apache.org>
2022-06-27 11:59:09 +08:00
ulysses-you
de2e11c2bc
[KYUUBI #2924] Correct the frontend server start state
### _Why are the changes needed?_

CI has a lot of flaky test, it is because we will mark server is started when we call thread.start, but the server (bianry or http) may not be work at that moment. As a result, the client can not connect a started server.

### _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

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

Closes #2925 from ulysses-you/correct-start-state.

Closes #2924

b5a30696 [ulysses-you] test
bb4b4a8a [ulysses-you] sleep

Authored-by: ulysses-you <ulyssesyou18@gmail.com>
Signed-off-by: ulysses-you <ulyssesyou@apache.org>
2022-06-27 09:51:22 +08:00
Fei Wang
9bc0aa6764 [KYUUBI #886][FOLLOWUP] Support to reload hadoop conf for KyuubiTHttpFrontendService
### _Why are the changes needed?_

Support to reload hadoop conf for KyuubiTHttpFrontendService.

See details in #2742

### _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 #2899 from turboFei/http_followup.

Closes #886

c480aa20 [Fei Wang] [KYUUBI #886][FOLLOWUP] Support to reload hadoop conf for KyuubiTHttpFrontendService

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-06-25 23:04:58 +08:00
Min Zhao
7460e745c3
[KYUUBI #2929] Kyuubi integrated Ranger does not support the CTAS syntax
### _Why are the changes needed?_

close https://github.com/apache/incubator-kyuubi/issues/2929#issue-1279486176

### _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 #2931 from zhaomin1423/test_ranger.

Closes #2929

36218c46 [Min Zhao] [KYUUBI #2929] Kyuubi integrated Ranger does not support the CTAS syntax
d9cca71f [Min Zhao] [Bug] Kyuubi integrated Ranger does not support the CTAS syntax

Authored-by: Min Zhao <zhaomin1423@163.com>
Signed-off-by: Shaoyun Chen <csy@apache.org>
2022-06-23 22:35:58 +08:00
Fei Wang
ceb66bd63f [KYUUBI #2935] Support spnego authentication for thrift http transport mode
### _Why are the changes needed?_

Reuse the AuthenticationFilter for KyuubiTHttpFrontendService

Close #2907
### _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

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

Closes #2935 from turboFei/http_servelet.

Closes #2935

26ba8e7f6 [Fei Wang] comments
241c047dd [Fei Wang] refactor
7de5ffb5a [Fei Wang] fix
030d5ce98 [Fei Wang] save
f82fbb0e4 [Fei Wang] save
085075430 [Fei Wang] save

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-06-23 19:34:06 +08:00
Fei Wang
37c0d4258c [KYUUBI #2894] Add synchronized for the ciphers of internal security accessor
### _Why are the changes needed?_

The cipher is not thread-safe.

### _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 #2933 from turboFei/cipher_not_thread_safe.

Closes #2894

ea3f79c03 [Fei Wang] not thread safe

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-06-22 19:59:34 +08:00
odone
f629992fb3
[KYUUBI #2927] Fix the thread in ScheduleThreadExecutorPool can't be shutdown immediately
fix #2927

### _Why are the changes needed?_

### _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

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

Closes #2928 from iodone/dev-2.

Closes #2927

a5cb1908 [odone] [KYUUBI #2927] fixed

Authored-by: odone <odone.zhang@gmail.com>
Signed-off-by: ulysses-you <ulyssesyou@apache.org>
2022-06-22 19:09:18 +08:00