apache / apache/iotdb

[Bug] load-tsfile.sh使用时,-f参数加载的是服务器文件位置而不是本地

Open
#13,489 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.4k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
115

Description

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.

### Version

1.3.2

### Describe the bug and provide the minimal reproduce step

使用./tools/load-tsfile.sh -f path时,-f 是加载远端服务器的文件位置,而不是本地ts file的文件位置。
若想加载本地文件位置,则会报错
Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 701: Can not find ./dump0.tsfile on this machine, notice that load can only handle files on this machine.

### What did you expect to see?

按照官网文档的理解,应该是将本地tsfile文件加载至服务器Iotdb实例中。
![企业微信截图_17261235721758](https://github.com/user-attachments/assets/4e911bbf-1838-479d-ae05-588142dd1a13)

### What did you see instead?

Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 701: Can not find ./dump0.tsfile on this machine, notice that load can only handle files on this machine.

### Anything else?

_No response_

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Start with tools/load-tsfile.sh and reproduce the reported -f behavior using a local .tsfile path on IoTDB 1.3.2. Trace how the script passes that path to the load operation, then verify that the documented local-file workflow succeeds without the reported 701 error.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, java
Domain
cli, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.