You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2020/11/25 06:08:49 UTC
[iotdb] branch issue2110 created (now ae9a4ab)
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a change to branch issue2110
in repository https://gitbox.apache.org/repos/asf/iotdb.git.
at ae9a4ab fix issue-2110
This branch includes the following new commits:
new ae9a4ab fix issue-2110
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[iotdb] 01/01: fix issue-2110
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch issue2110
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit ae9a4abb0b83788b905d34e80828f2e16721f1f3
Author: HTHou <hh...@outlook.com>
AuthorDate: Wed Nov 25 14:07:26 2020 +0800
fix issue-2110
---
docker/ReadMe.md | 10 +++++-----
docs/UserGuide/System Tools/Watermark Tool.md | 8 ++++----
docs/zh/UserGuide/System Tools/Watermark Tool.md | 8 ++++----
3 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/docker/ReadMe.md b/docker/ReadMe.md
index 8590aed..a416dd3 100644
--- a/docker/ReadMe.md
+++ b/docker/ReadMe.md
@@ -26,7 +26,7 @@ docker build -t THE_DOCKER_IMAGE_NAME:THE_VERSION -f THE_DOCKER_FILE_NAME
e.g.,
```
-docker build -t my-iotdb:0.9.1 -f Dockerfile-0.9.1
+docker build -t my-iotdb:<version> -f Dockerfile-<version>
```
# How to run IoTDB server
@@ -35,7 +35,7 @@ Actually, we maintain a repo on dockerhub, so that you can get the docker image
For example,
```
-docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 -p 5555:5555 apache/iotdb:0.9.1
+docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 -p 5555:5555 apache/iotdb:<version>
```
## How to configure docker volumes
@@ -45,7 +45,7 @@ iotdb_data and iotdb_logs respectively.
`/D/docker/iotdb_data` and `/D/docker/iotdb_logs` can be changed to any local directory of your own host.
```
-docker run -it -v /D/docker/iotdb_data:/iotdb/data -v /D/docker/iotdb_logs:/iotdb/logs --name 123 apache/iotdb:0.9.0
+docker run -it -v /D/docker/iotdb_data:/iotdb/data -v /D/docker/iotdb_logs:/iotdb/logs --name 123 apache/iotdb:<version>
```
# How to run IoTDB client
@@ -57,13 +57,13 @@ e.g.,
```
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
-c82321c70137 apache/iotdb:0.9.1 "/iotdb/sbin/start-s…" 12 minutes ago Up 12 minutes 0.0.0.0:6667->6667/tcp, 0.0.0.0:8181->8181/tcp, 5555/tcp, 0.0.0.0:31999->31999/tcp elegant_germain
+c82321c70137 apache/iotdb:<version> "/iotdb/sbin/start-s…" 12 minutes ago Up 12 minutes 0.0.0.0:6667->6667/tcp, 0.0.0.0:8181->8181/tcp, 5555/tcp, 0.0.0.0:31999->31999/tcp elegant_germain
```
2. Use `docker exec` to attach the container:
```
docker exec -it c82321c70137 /bin/bash
```
-Then, run `start-client.sh`
+Then, for the latest version (or, >=0.10.x), run `start-cli.sh`, for version 0.9.x and 0.8.1, run `start-client.sh`.
Enjoy it!
diff --git a/docs/UserGuide/System Tools/Watermark Tool.md b/docs/UserGuide/System Tools/Watermark Tool.md
index 7224c53..78c8f0f 100644
--- a/docs/UserGuide/System Tools/Watermark Tool.md
+++ b/docs/UserGuide/System Tools/Watermark Tool.md
@@ -56,12 +56,12 @@ Notes:
A newly created user doesn't use watermark by default. So the query result is the original data.
```
-.\start-client.bat -u root -pw root
+.\start-cli.bat -u root -pw root
create user Alice 1234
grant user Alice privileges 'READ_TIMESERIES' on root.vehicle
exit
-.\start-client.bat -u Alice -pw 1234
+.\start-cli.bat -u Alice -pw 1234
select * from root
+-----------------------------------+------------------+
| Time|root.vehicle.d0.s0|
@@ -111,11 +111,11 @@ Note that you can use `grant watermark_embedding to user1,user2,...` to grant wa
Only root can run this command. After root grants watermark_embedding to Alice, all query results of Alice are watermarked.
```
-.\start-client.bat -u root -pw root
+.\start-cli.bat -u root -pw root
grant watermark_embedding to Alice
exit
-.\start-client.bat -u Alice -pw 1234
+.\start-cli.bat -u Alice -pw 1234
select * from root
+-----------------------------------+------------------+
| Time|root.vehicle.d0.s0|
diff --git a/docs/zh/UserGuide/System Tools/Watermark Tool.md b/docs/zh/UserGuide/System Tools/Watermark Tool.md
index 4a8cdce..6502b6f 100644
--- a/docs/zh/UserGuide/System Tools/Watermark Tool.md
+++ b/docs/zh/UserGuide/System Tools/Watermark Tool.md
@@ -64,12 +64,12 @@ IoTDB默认关闭水印嵌入功能。为了使用这个功能,第一步要做
一个新创建的用户默认不使用水印。因此查询结果就是数据库中的原始数据。
```
-.\start-client.bat -u root -pw root
+.\start-cli.bat -u root -pw root
create user Alice 1234
grant user Alice privileges 'READ_TIMESERIES' on root.vehicle
exit
-.\start-client.bat -u Alice -pw 1234
+.\start-cli.bat -u Alice -pw 1234
select * from root
+-----------------------------------+------------------+
| Time|root.vehicle.d0.s0|
@@ -119,11 +119,11 @@ sql用法:`grant watermark_embedding to Alice`
只有root用户有权限运行该指令。在root给Alice施加水印嵌入之后,Alice的所有查询结果都将被嵌入水印。
```
-.\start-client.bat -u root -pw root
+.\start-cli.bat -u root -pw root
grant watermark_embedding to Alice
exit
-.\start-client.bat -u Alice -pw 1234
+.\start-cli.bat -u Alice -pw 1234
select * from root
+-----------------------------------+------------------+