Commit Graph

2117 Commits

Author SHA1 Message Date
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
sychen
125730a724
[KYUUBI #2876] Bump Hudi 0.11.1
### _Why are the changes needed?_
https://lists.apache.org/thread/72smzyoc516zqo7vbw87hx23qgdhzgql

[HUDI-4111](https://issues.apache.org/jira/browse/HUDI-4111) Bump ANTLR runtime version in Spark 3.x

The antlr version of hudi is aligned with the version used by Spark.

https://github.com/apache/hudi/compare/release-0.11.0...release-0.11.1

### _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 #2876 from cxzl25/bump_hudi_0.11.1.

Closes #2876

18e541b9 [sychen] Bump Hudi 0.11.1

Authored-by: sychen <sychen@ctrip.com>
Signed-off-by: Shaoyun Chen <csy@apache.org>
2022-06-22 14:51:43 +08:00
sychen
aba785f34c
[KYUUBI #2922] Clean up SparkConsoleProgressBar when SQL execution fails
### _Why are the changes needed?_
Now `SparkConsoleProgressBar` is initialized after constructing `SQLOperationListener`.
Sometimes the user's SQL syntax may fail.
At this time, because there is no `SparkListenerSQLExecutionEnd` event, `SparkConsoleProgressBar` is not cleaned up, resulting in a memory leak.

In this PR, make the following changes

- Added cleanup method

- Some objects use lazy to avoid constructing when SQL syntax is wrong

close #2922

### _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 #2923 from cxzl25/KYUUBI-2922.

Closes #2922

42dbdf2f [sychen] fix leak

Authored-by: sychen <sychen@ctrip.com>
Signed-off-by: Shaoyun Chen <csy@apache.org>
2022-06-22 14:39:01 +08:00
Tianlin Liao
825c70db7b [KYUUBI #2919] Fix typo and wording for JDBCMetadataStoreConf
### _Why are the changes needed?_

Fix typo and wording for JDBCMetadataStoreConf.

### _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 #2919 from lightning-L/typo-1.

Closes #2919

f02ffb8a [Tianlin Liao] fix typo and wording for JDBCMetadataStoreConf

Authored-by: Tianlin Liao <tiliao@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-06-21 12:46:49 +08:00
Tianlin Liao
f3610b2b60 [KYUUBI #2920] Fix typo for mysql metadata schema
### _Why are the changes needed?_

Fix typo for mysql metadata schema.
### _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 #2920 from lightning-L/typo-2.

Closes #2920

5f54b6f5 [Tianlin Liao] fix minor typos

Authored-by: Tianlin Liao <tiliao@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-06-21 11:40:53 +08:00
packyan
062d8746ae
[KYUUBI #2890] Get the db From Sparksession When TableIdentifier's Database Field Is Empty
### _Why are the changes needed?_

to close #2890, and this issue is related to #2438

Get the db From Sparksession When TableIdentifier's Database Field Is Empty, but view's TableIdentifier would not.

### _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 #2900 from packyan/branch-fix-tableindent-without-db.

Closes #2890

93bf96ad [packyan] reformat code.
b672641c [Deng An] Update PrivilegesBuilder.scala
ac41ed54 [Deng An] Update extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/PrivilegesBuilder.scala
1db6ef22 [Deng An] Update PrivilegesBuilder.scala
7e27549c [packyan] format code.
b46f4be6 [packyan] format code style
6dcadcf9 [packyan] format import.
c8992238 [packyan] view TableIdnet will not get db from sparksession.
241eebae [packyan] when TableIdentifier's database field is empty, try get the db from spark session.

Lead-authored-by: packyan <packyande@gmail.com>
Co-authored-by: Deng An <36296995+packyan@users.noreply.github.com>
Signed-off-by: Kent Yao <yao@apache.org>
2022-06-21 10:02:08 +08:00
Cheng Pan
3435e2ae49
[KYUUBI #2915] Revert "[KYUUBI #2000][DEPS] Bump Hadoop 3.3.2"
### _Why are the changes needed?_

https://github.com/apache/incubator-kyuubi/issues/2904
This reverts commit e250c4ae35.

### _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 #2915 from pan3793/revert.

Closes #2915

Closes #2000

9c789eb1 [Cheng Pan] Revert "[KYUUBI #2000][DEPS] Bump Hadoop 3.3.2"

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-06-21 02:18:09 +08:00
Fei Wang
089cf412fd [KYUUBI #2911] [SUB-TASK][KPIP-4] If the kyuubi instance unreachable, support to backfill state from resource manager and mark batch closed by remote kyuubi instance
### _Why are the changes needed?_

Now for the batch state, we rely on the metadata store, which is only updated by the local kyuubi instance.

But if the kyuubi instance is down or unreachable sometimes, the metadata state will not change and we can not get the correct state, it might cause the client side stuck if it is waiting the batch completion.

So, if the kyuubi instance is not reachable, we need backfill the batch state according to resource manager batch application state it the batch was in RUNNING state.

If the batch was stuck in PENDING state and the kyuubi instance can not get recovered in short-time, we need support to close the batch session and prevent the batch job re-submitted if it get recovered.

In this pr, I introduce a new field `remoteClosed` to present whether it has been marked as CLOSED state by remote kyuubi instance.

The `remoteClosed` should only be updated by remote kyuubi instance and set its value to true, so there is no race condition.

- When opening the batch session in recovery mode, if `remoteClosed` is true, set the state to CANCELED directly
- check the local batch sessions that is marked as remoteClosed periodically and close them.

### _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 #2911 from turboFei/across_kill_one.

Closes #2911

d582459c [Fei Wang] remoteClosed => peerInstanceClosed
cd4207c2 [Fei Wang] unify the state
ede40d0a [Fei Wang] Redirect the get batch request
f4b86868 [Fei Wang] save
5faee761 [Fei Wang] save

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-06-20 16:27:19 +08:00
ulysses-you
07080f35fe
[KYUUBI #2912] [INFRA][DOCS] Improve release md
### _Why are the changes needed?_

Help release in future.

### _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 #2912 from ulysses-you/release-md.

Closes #2912

3cf2e272 [ulysses-you] release

Authored-by: ulysses-you <ulyssesyou18@gmail.com>
Signed-off-by: ulysses-you <ulyssesyou@apache.org>
2022-06-20 14:54:27 +08:00
ulysses-you
2305159a51
[KYUUBI #2905][DOCS] Update the number of new committers in MATURITY.md
### _Why are the changes needed?_

update new committers number: 2 -> 6

### _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 #2913 from ulysses-you/committer.

Closes #2905

e088a5ee [ulysses-you] 6

Authored-by: ulysses-you <ulyssesyou18@gmail.com>
Signed-off-by: ulysses-you <ulyssesyou@apache.org>
2022-06-20 14:53:46 +08:00
Min Zhao
ea7ca78901
[KYUUBI #2745] [Subtask] DorisSQLEngine - GetTables Operation
### _Why are the changes needed?_

close https://github.com/apache/incubator-kyuubi/issues/2745#issue-1248428722

### _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 #2776 from zhaomin1423/doris_get_tables.

Closes #2745

d0141dde [Min Zhao] fix
de6ea21b [Min Zhao] fix
0ed24bad [zhaomin3] add get tables
86ac8c61 [Min Zhao] get tables
7e7e5479 [Min Zhao] [KYUUBI #2745] [Subtask] DorisSQLEngine - GetTables Operation

Lead-authored-by: Min Zhao <zhaomin1423@163.com>
Co-authored-by: zhaomin3 <zhaomin3@corp.netease.com>
Signed-off-by: ulysses-you <ulyssesyou@apache.org>
2022-06-20 14:52:41 +08:00
Tianlin Liao
c664c84f80 [KYUUBI #2628][FOLLOWUP] Support waitCompletion for submit batch
### _Why are the changes needed?_

Support waitCompletion for submit batch

### _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 #2909 from lightning-L/kyuubi-2628-1.

Closes #2628

23fe761f [Tianlin Liao] minor fix
06cd66ff [Tianlin Liao] support waitUntilComplete for submit batch; use kyuubi instance url for log batch/submit batch

Authored-by: Tianlin Liao <tiliao@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-06-20 11:56:36 +08:00
Cheng Pan
2fd4e3a858
[KYUUBI #2827] [BUILD][TEST] Decouple integration tests from kyuubi-server
### _Why are the changes needed?_

This PR moves engine integration tests except to spark engine from `kyuubi-server` module to dedicated IT modules e.g. `kyuubi-hive-it`, then we can spilt different engine test into jobs to speed up CI tes

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

before
<img width="836" alt="image" src="https://user-images.githubusercontent.com/26535726/173265839-5d0f1ce6-e133-4d60-9a95-c95aa16f817f.png">

after
<img width="825" alt="image" src="https://user-images.githubusercontent.com/26535726/173265903-fb01e910-8f78-4091-91da-dca25be4357d.png">

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

Closes #2827 from pan3793/hive-it.

Closes #2827

df3798f1 [Cheng Pan] Remove Java 11 test for Hive
e1645338 [Cheng Pan] nit
66524226 [Cheng Pan] nit
3aef2cef [Cheng Pan] review
500c9cff [Cheng Pan] MVN_OPT
3b4ad142 [Cheng Pan] nit
daa6e0ab [Cheng Pan] review
3383d4c1 [Cheng Pan] [BUILD][TEST] Decouple integration tests from kyuubi-server

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-06-18 00:01:34 +08:00
Cheng Pan
7f0c53a0ba
[KYUUBI #2898] Bump maven-surefire-plugin 3.0.0-M7
### _Why are the changes needed?_

For better interaction with JUnit 5 dependencies

### _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 #2898 from pan3793/surefire.

Closes #2898

485e792c [Cheng Pan] Disable failIfNoSpecifiedTests
7b4c3219 [Cheng Pan] Bump maven-surefire-plugin 3.0.0-M7

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-06-17 01:01:20 +08:00
Fei Wang
e1f74673a8 [KYUUBI #2628][FOLLOWUP] Reuse the kyuubi-ctl batch commands for SubmitBatchCommand
### _Why are the changes needed?_

For SubmitBatchCommand, reuse the CreateBatchCommand and LogBatchCommand.

### _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 #2892 from turboFei/reuse_batch_command.

Closes #2628

67ef50d0 [Fei Wang] comments
cd4a2fec [Fei Wang] refactor
c2a52b15 [Fei Wang] comments for doRun & render
37e0efd3 [Fei Wang] comments
d629c470 [Fei Wang] remove duplicate
cd0d6859 [Fei Wang] only return batch report if delete failed
509c731b [Fei Wang] init

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-06-16 22:25:27 +08:00
Cheng Pan
62b6987af6
[KYUUBI #2897] Remove Hive metastore dependencies from Kyuubi Hive JDBC
### _Why are the changes needed?_

Remove Hive metastore dependencies from Kyuubi Hive JDBC, and minor improve the UT.

### _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 #2897 from pan3793/jdbc.

Closes #2897

31cb3068 [Cheng Pan] Remove Hive metastore dependencies from Kyuubi Hive JDBC

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-06-16 20:59:35 +08:00
jiaoqingbo
e3bf6044ec
[KYUUBI #2782] Decouple Kyuubi Hive JDBC from Hive Serde
### _Why are the changes needed?_

fix #2782

### _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 #2878 from jiaoqingbo/kyuubi-2782.

Closes #2782

23b19897 [jiaoqingbo] code review
6cb40195 [jiaoqingbo] code review
90839742 [jiaoqingbo] [KYUUBI #2782] Decouple Kyuubi Hive JDBC from Hive Serde

Authored-by: jiaoqingbo <1178404354@qq.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-06-16 15:42:34 +08:00
wforget
99959b89b7
[KYUUBI #2854] Add exception field in KyuubiSessionEvent
### _Why are the changes needed?_

close #2854

### _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 #2860 from wForget/KYUUBI-2854.

Closes #2854

3225be7a [wforget] comment
834aedcf [Wang Zhen] update scaladoc
d71c1f26 [wforget] fix checkstyle
da0e92d2 [wforget] [KYUUBI-2854] Add exception field in KyuubiSessionEvent

Lead-authored-by: wforget <643348094@qq.com>
Co-authored-by: Wang Zhen <wangzhen07@qiyi.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-06-16 13:56:20 +08:00
ulysses-you
9de3365f50
[KYUUBI #2873] [INFRA][DOCS] Improve release template script
### _Why are the changes needed?_

Add $prev_release_version to generate change log link.
e.g.
https://github.com/apache/incubator-kyuubi/compare/v1.5.1-incubating...v1.5.2-incubating-rc0

### _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 #2873 from ulysses-you/release.

Closes #2873

3d0b5013 [ulysses-you] improve template

Authored-by: ulysses-you <ulyssesyou18@gmail.com>
Signed-off-by: ulysses-you <ulyssesyou@apache.org>
2022-06-16 13:53:41 +08:00
Min Zhao
4e97550789
[KYUUBI #2761] Flaky Test: engine.jdbc.doris.StatementSuite - test select
### _Why are the changes needed?_

close https://github.com/apache/incubator-kyuubi/issues/2761#issue-1250326421
### _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 #2816 from zhaomin1423/2761.

Closes #2761

02c142c6 [Min Zhao] add comment
c3475dba [Min Zhao] [KYUUBI #2761] Flaky Test: engine.jdbc.doris.StatementSuite - test select

Authored-by: Min Zhao <zhaomin1423@163.com>
Signed-off-by: ulysses-you <ulyssesyou@apache.org>
2022-06-16 13:51:07 +08:00
Fei Wang
7baf98954d [KYUUBI #2834] [SUB-TASK][KPIP-4] Support to retry the metadata requests on transient issue and unblock main thread
### _Why are the changes needed?_

We need support to retry the jdbc requests.

Because we add new jdbc dependency for batch HA, and the database might be in maintenance window.

And there might be master-slave switch, and the database might be unavailable for few minutes.

We need tolerant this issue and unblock the main thread.

BTW, this pr refactor the metadata store naming.

### _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 #2834 from turboFei/retrying_jdbc_event.

Closes #2834

109a63e70 [Fei Wang] fix docs
a186484be [Fei Wang] refactor the jdbc pool name
cfac9da53 [Fei Wang] rename metadata table name
bb8710ba3 [Fei Wang] comments
1197a098b [Fei Wang] add private package scope
a95694ba9 [Fei Wang] comments
e2f09e784 [Fei Wang] refactor
057eb73c5 [Fei Wang] refactor
88f3ffb6f [Fei Wang] refactor
e0595bdee [Fei Wang] comments
48270e869 [Fei Wang] refactor conf keys
e4f190c5c [Fei Wang] update docs
ed5e90e37 [Fei Wang] add max queues limitation
c5a03c9e2 [Fei Wang] remove getOrCreate
3e39ca94c [Fei Wang] remove
b79fb0954 [Fei Wang] comments
1d309cee0 [Fei Wang] comments
9108a3f0e [Fei Wang] fix docs
5cdffe710 [Fei Wang] fix rat
2e7228fc7 [Fei Wang] fix ut
520236d7b [Fei Wang] rename more
f66d68bcc [Fei Wang] merge into metadata manager
2f70a2f12 [Fei Wang] rename
80e6100fb [Fei Wang] refactor
09cad092a [Fei Wang] add ut
ea4eea74f [Fei Wang] refactor
6b00eb0b3 [Fei Wang] refactor to MetadataRequest
58f1c0587 [Fei Wang] commements
198feb53f [Fei Wang] add more docs
670a23561 [Fei Wang] refactor
a20d54df2 [Fei Wang] waitStateStoreRetryCompletion after super.close closes operation
97a763aef [Fei Wang] refactor RetryingStateStoreRequest
3e136cf34 [Fei Wang] [SUB-TASK][KPIP-4] Support to retry the session state operations if meet transient jdbc issue

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-06-16 12:20:49 +08:00
wforget
7b24ee9304
[KYUUBI #2543] Add maxPartitionBytes configuration for TPC-DS connecter
### _Why are the changes needed?_

close #2543

### _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 #2882 from wForget/KYUUBI-2543-2.

Closes #2543

14fa002e [Wang Zhen] fix
386c92d0 [wforget] comments
8c1fcea8 [wforget] [KYUUBI-2543] Add `maxPartitionBytes` configuration

Lead-authored-by: wforget <643348094@qq.com>
Co-authored-by: Wang Zhen <wangzhen07@qiyi.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-06-16 11:31:41 +08:00
Mahmoud Bahaa
1ea245d254
[KYUUBI #886] Add HTTP transport mode support to KYUUBI - no Kerberos support
Same as https://github.com/apache/incubator-kyuubi/pull/2815 but with Kerberos auth removed as was not complete nor tested. so thought to make a separated PR with no Kerberos support then we can add Kerberos support later on

### _Why are the changes needed?_

Add http transport protocol support to Kyuubi
main code was taken from:

1. 25ac0731d7
2. https://github.com/apache/hive/blob/branch-3.1/service/src/java/org/apache/hive/service/cli/thrift/ThriftHttpCLIService.java
2. https://github.com/apache/hive/blob/branch-3.1/service/src/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java

### _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 #2833 from mahmoudbahaa/transport-mode-http-no-kerberos.

Closes #886

3a24abec [Mahmoud Bahaa] fix test cases
ce982af7 [Mahmoud Bahaa] [KYUUBI #886] Add HTTP transport mode support to KYUUBI - no kerberos support
b6371859 [SteNicholas] [KYUUBI #886] Add HTTP transport mode support to KYUUBI
36fb0760 [Mahmoud Bahaa] update .gitignore to include conf non template files

Lead-authored-by: Mahmoud Bahaa <mahmoud.bahaa@incorta.com>
Co-authored-by: SteNicholas <programgeek@163.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-06-16 10:33:00 +08:00
Fei Wang
27330ddb8e
[KYUUBI #2628][FOLLOWUP] Refine kyuubi-ctl batch commands
### _Why are the changes needed?_

Refine kyuubi-ctl batch commands

### _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 #2889 from turboFei/refine_batch_command.

Closes #2628

56bb7e3d [Fei Wang] print current state
d7be6b72 [Fei Wang] print batch report
3c94fb2d [Fei Wang] set debug for doRequest
7c5fd65a [Fei Wang] fix ut
bcd28a74 [Fei Wang] exit if batch job fail
5d732267 [Fei Wang] refactor
4a2bad8e [Fei Wang] refactor the state
9c982190 [Fei Wang] revert --conf
c2b7008d [Fei Wang] fix ut
10778df5 [Fei Wang] print close resp first
a453084e [Fei Wang] support --conf

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: ulysses-you <ulyssesyou@apache.org>
2022-06-16 09:10:24 +08:00
Fei Wang
57e3733413
[KYUUBI #2859][SUB-TASK][KPIP-4] Support --conf for kyuubi-ctl
### _Why are the changes needed?_

To close #2859

### _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 #2875 from turboFei/kyuubi_2859_retry_delete.

Closes #2859

7908d827 [Fei Wang] revert commands related
23d357dc [Fei Wang] fix ut
76730014 [Fei Wang] print close resp first
76449dad [Fei Wang] support --conf

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: ulysses-you <ulyssesyou@apache.org>
2022-06-16 09:09:23 +08:00
Fu Chen
eaffb27c37
[KYUUBI #2888] Bump Spark-3.3.0
### _Why are the changes needed?_

Bump Spark-3.3.0

### _How was this patch tested?_

Pass CI.

Closes #2888 from cfmcgrady/spark33-release.

Closes #2888

88216059 [Fu Chen] bump spark-3.3.0

Authored-by: Fu Chen <cfmcgrady@gmail.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-06-15 22:45:31 +08:00
Fei Wang
37229d419e [KYUUBI #2708] Open engine session and renew engine credentials in the one
### _Why are the changes needed?_

To close #2708

### _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 #2856 from turboFei/open_in_one.

Closes #2708

2fd77951 [Fei Wang] comments
35ae00d4 [Fei Wang] comment
e02c13e3 [Fei Wang] use kyuubiconf
70d96775 [Fei Wang] refactor
cfb1a36b [Fei Wang] refresh token for startup
f55912f5 [Fei Wang] comments
130a3bb3 [Fei Wang] remove credentials to prevent escalate to session conf
d14ebf78 [Fei Wang] fix ut
71ec3c9e [Fei Wang] renew token when opening session

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: Fei Wang <fwang12@ebay.com>
2022-06-15 21:47:36 +08:00
ulysses-you
b987a68045
[KYUUBI #2668][FOLLOWUP] Add log4j for rest client test
### _Why are the changes needed?_

Help debug rest client CI.

### _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 #2884 from ulysses-you/rest-client-log4j.

Closes #2668

fc2e39af [ulysses-you] comment
240c90da [ulysses-you] nit
6228cd8d [ulysses-you] Add log4j for test

Authored-by: ulysses-you <ulyssesyou18@gmail.com>
Signed-off-by: ulysses-you <ulyssesyou@apache.org>
2022-06-15 14:41:10 +08:00