You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ro...@apache.org on 2024/06/12 07:11:19 UTC
(iotdb) 01/02: load-tsfile script: disable redirection
This is an automated email from the ASF dual-hosted git repository.
rong pushed a commit to branch fix-load-tsfile-script
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 0f475ff5e8ce2e847a45e2602abcfe8de0c3d7c2
Author: Steve Yurong Su <ro...@apache.org>
AuthorDate: Tue Jun 11 21:00:06 2024 +0800
load-tsfile script: disable redirection
---
.../cli/src/main/java/org/apache/iotdb/tool/ImportTsFile.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/ImportTsFile.java b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/ImportTsFile.java
index 4e74dbe5f59..320b03334df 100644
--- a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/ImportTsFile.java
+++ b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/ImportTsFile.java
@@ -310,7 +310,9 @@ public class ImportTsFile extends AbstractTsFileTool {
}
sessionPool =
- new SessionPool(host, Integer.parseInt(port), username, password, threadNum + 1);
+ new SessionPool(
+ host, Integer.parseInt(port), username, password, threadNum + 1, false, false);
+ sessionPool.setEnableQueryRedirection(false);
traverseAndCollectFiles(file);
addNoResourceOrModsToQueue();