Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
comment
Browse files Browse the repository at this point in the history
turboFei committed Nov 17, 2023
1 parent c721a75 commit 55bcf40
Showing 3 changed files with 10 additions and 14 deletions.
6 changes: 4 additions & 2 deletions docs/deployment/migration-guide.md
Original file line number Diff line number Diff line change
@@ -21,6 +21,10 @@

* Since Kyuubi 1.9.0, `kyuubi.session.conf.advisor` can be set as a sequence, Kyuubi supported chaining SessionConfAdvisors.

## Upgrading from Kyuubi 1.8.0 to 1.8.1

* Since Kyuubi 1.8.1, for `DELETE /batches/${batchId}`, `hive.server2.proxy.user` are not needed in the request parameters.

## Upgrading from Kyuubi 1.7 to 1.8

* Since Kyuubi 1.8, SQLite is added and becomes the default database type of Kyuubi metastore, as Derby has been deprecated.
@@ -32,8 +36,6 @@
relative to `$KYUUBI_HOME` instead of `$PWD`.
* Since Kyuubi 1.8, PROMETHEUS is changed as the default metrics reporter. To restore previous behavior,
set `kyuubi.metrics.reporters=JSON`.
* Since Kyuubi 1.8.1, for `DELETE /batches/${batchId}`, `proxyUser` and `hive.server2.proxy.user`
are not needed in the request parameters.

## Upgrading from Kyuubi 1.7.1 to 1.7.2

Original file line number Diff line number Diff line change
@@ -119,18 +119,6 @@ class BatchCliArgumentsSuite extends KyuubiFunSuite with TestPrematureExit {
}
}

ignore("delete batch with hs2ProxyUser") {
val args = Array(
"delete",
"batch",
"f7fd702c-e54e-11ec-8fea-0242ac120002",
"--hs2ProxyUser",
"b_user")
val opArgs = new ControlCliArguments(args)
assert(opArgs.cliConfig.batchOpts.batchId == "f7fd702c-e54e-11ec-8fea-0242ac120002")
assert(opArgs.cliConfig.commonOpts.hs2ProxyUser == "b_user")
}

test("test list batch option") {
val args = Array(
"list",
Original file line number Diff line number Diff line change
@@ -23,8 +23,11 @@
import org.apache.kyuubi.client.api.v1.dto.*;
import org.apache.kyuubi.client.util.JsonUtils;
import org.apache.kyuubi.client.util.VersionUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class BatchRestApi {
static final Logger LOG = LoggerFactory.getLogger(BatchRestApi.class);

private KyuubiRestClient client;

@@ -107,6 +110,9 @@ public OperationLog getBatchLocalLog(String batchId, int from, int size) {
*/
@Deprecated
public CloseBatchResponse deleteBatch(String batchId, String hs2ProxyUser) {
LOG.warn(
"The method `deleteBatch(batchId, hs2ProxyUser)` is deprecated since 1.8.1, "
+ "using `deleteBatch(batchId)` instead.");
Map<String, Object> params = new HashMap<>();
params.put("hive.server2.proxy.user", hs2ProxyUser);

0 comments on commit 55bcf40

Please sign in to comment.