This is an automated email from the ASF dual-hosted git repository.

spricoder pushed a commit to branch object_type_tiff
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 215f7e0438a7d6656e6aec4a7a486f9aa5f1b5db
Author: spricoder <[email protected]>
AuthorDate: Sat Aug 16 15:05:38 2025 +0800

    增加 iotdb library 配置
---
 iotdb-client/service-rpc/pom.xml                                   | 7 ++++++-
 .../org/apache/iotdb/rpc/model/CompressedTiffModelProcessor.java   | 3 ++-
 scripts/sbin/start-datanode.sh                                     | 5 +++++
 3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/iotdb-client/service-rpc/pom.xml b/iotdb-client/service-rpc/pom.xml
index a675709da36..2277c6a7bb8 100644
--- a/iotdb-client/service-rpc/pom.xml
+++ b/iotdb-client/service-rpc/pom.xml
@@ -92,7 +92,12 @@
         <dependency>
             <groupId>org.gdal</groupId>
             <artifactId>gdal</artifactId>
-            <version>3.11.0</version>
+            <version>3.8.0</version>
+        </dependency>
+        <dependency>
+            <groupId>org.gdal</groupId>
+            <artifactId>vsi</artifactId>
+            <version>1.0</version>
         </dependency>
     </dependencies>
     <build>
diff --git 
a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/model/CompressedTiffModelProcessor.java
 
b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/model/CompressedTiffModelProcessor.java
index ed5a44a87f9..11c937e1160 100644
--- 
a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/model/CompressedTiffModelProcessor.java
+++ 
b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/model/CompressedTiffModelProcessor.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.rpc.model;
 
+import org.gdal.VsiGdalNative;
 import org.gdal.gdal.Band;
 import org.gdal.gdal.Dataset;
 import org.gdal.gdal.Driver;
@@ -76,7 +77,7 @@ public class CompressedTiffModelProcessor extends 
ModelProcessor {
       }
       band.FlushCache();
       dataset.FlushCache();
-      return gdal.GetMemFileBuffer(filePath);
+      return VsiGdalNative.vsiGetMemFileBuffer(filePath, true);
     } finally {
       if (dataset != null) {
         dataset.delete();
diff --git a/scripts/sbin/start-datanode.sh b/scripts/sbin/start-datanode.sh
index 65ff2ac32e0..19d55955528 100755
--- a/scripts/sbin/start-datanode.sh
+++ b/scripts/sbin/start-datanode.sh
@@ -78,6 +78,10 @@ while true; do
             SHOW_VERSION="yes"
             break
         ;;
+        -l)
+            LIBRARY_PATH="$2"
+            break
+        ;;
         --)
             shift
             #all others are args to the program
@@ -164,6 +168,7 @@ launch_service()
        iotdb_parms="$iotdb_parms -Dname=iotdb\.IoTDB"
        iotdb_parms="$iotdb_parms -DIOTDB_LOG_DIR=${IOTDB_LOG_DIR}"
        iotdb_parms="$iotdb_parms -DOFF_HEAP_MEMORY=${OFF_HEAP_MEMORY}"
+       iotdb_parms="$iotdb_parms -Djava.library.path=${LIBRARY_PATH}"
 
          if [ "x$pidfile" != "x" ]; then
        iotdb_parms="$iotdb_parms -Diotdb-pidfile=$pidfile"

Reply via email to