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 2022/03/21 08:20:23 UTC

[iotdb] branch rel/0.13 updated: Update Python API install guide and Fix docker file error

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

haonan pushed a commit to branch rel/0.13
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/rel/0.13 by this push:
     new 3fdf766  Update Python API install guide and Fix docker file error
3fdf766 is described below

commit 3fdf76649451cba3c3dcf6087e79f09d1dc484ec
Author: HTHou <hh...@outlook.com>
AuthorDate: Mon Mar 21 16:19:30 2022 +0800

    Update Python API install guide and Fix docker file error
---
 ...0-grafana => Dockerfile-0.13.0-grafana-connector} | 20 ++++++++++----------
 docs/UserGuide/API/Programming-Python-Native-API.md  |  4 +++-
 .../UserGuide/API/Programming-Python-Native-API.md   |  4 +++-
 3 files changed, 16 insertions(+), 12 deletions(-)

diff --git a/docker/src/main/Dockerfile-0.13.0-grafana b/docker/src/main/Dockerfile-0.13.0-grafana-connector
similarity index 70%
rename from docker/src/main/Dockerfile-0.13.0-grafana
rename to docker/src/main/Dockerfile-0.13.0-grafana-connector
index 3a6ac70..719f63b 100644
--- a/docker/src/main/Dockerfile-0.13.0-grafana
+++ b/docker/src/main/Dockerfile-0.13.0-grafana-connector
@@ -21,21 +21,21 @@ FROM openjdk:11-jre-slim
 RUN apt update \
   # procps is for `free` command
   && apt install wget unzip lsof procps -y \
-  && wget https://downloads.apache.org/iotdb/0.13.0/apache-iotdb-0.13.0-grafana-bin.zip \
+  && wget https://downloads.apache.org/iotdb/0.13.0/apache-iotdb-0.13.0-grafana-connector-bin.zip \
   # if you are in China, use the following URL
-  #&& wget https://mirrors.tuna.tsinghua.edu.cn/apache/iotdb/0.13.0/apache-iotdb-0.13.0-grafana-bin.zip \
-  && unzip apache-iotdb-0.13.0-grafana-bin.zip \
-  && rm apache-iotdb-0.13.0-grafana-bin.zip \
-  && mv apache-iotdb-0.13.0-grafana-bin /iotdb-grafana \
+  #&& wget https://mirrors.tuna.tsinghua.edu.cn/apache/iotdb/0.13.0/apache-iotdb-0.13.0-grafana-connector-bin.zip \
+  && unzip apache-iotdb-0.13.0-grafana-connector-bin.zip \
+  && rm apache-iotdb-0.13.0-grafana-connector-bin.zip \
+  && mv apache-iotdb-0.13.0-grafana-connector-bin /iotdb-grafana-connector \
   && apt remove wget unzip -y \
   && apt autoremove -y \
   && apt purge --auto-remove -y \
   && apt clean -y
 # rpc port
 EXPOSE 8888
-VOLUME /iotdb-grafana/config
-RUN echo "#!/bin/bash" > /iotdb-grafana/runboot.sh
-RUN echo "java -Djava.security.egd=file:/dev/./urandom -jar /iotdb-grafana/iotdb-grafana.war" >> /iotdb-grafana/runboot.sh
-RUN chmod a+x /iotdb-grafana/runboot.sh
-WORKDIR /iotdb-grafana
+VOLUME /iotdb-grafana-connector/config
+RUN echo "#!/bin/bash" > /iotdb-grafana-connector/runboot.sh
+RUN echo "java -Djava.security.egd=file:/dev/./urandom -jar /iotdb-grafana-connector/iotdb-grafana-connector.war" >> /iotdb-grafana-connector/runboot.sh
+RUN chmod a+x /iotdb-grafana-connector/runboot.sh
+WORKDIR /iotdb-grafana-connector
 ENTRYPOINT ["./runboot.sh"]
diff --git a/docs/UserGuide/API/Programming-Python-Native-API.md b/docs/UserGuide/API/Programming-Python-Native-API.md
index 19299da..444d503 100644
--- a/docs/UserGuide/API/Programming-Python-Native-API.md
+++ b/docs/UserGuide/API/Programming-Python-Native-API.md
@@ -29,7 +29,9 @@ You have to install thrift (>=0.13) before using the package.
 
 ### How to use (Example)
 
-First, download the package: `pip3 install apache-iotdb`
+First, download the latest package: `pip3 install apache-iotdb`
+
+*Notice: If you are installing Python API v0.13.0, DO NOT install by `pip install apache-iotdb==0.13.0`, use `pip install apache-iotdb==0.13.0.post1` instead!* 
 
 You can get an example of using the package to read and write data at here: [Example](https://github.com/apache/iotdb/blob/master/client-py/SessionExample.py)
 
diff --git a/docs/zh/UserGuide/API/Programming-Python-Native-API.md b/docs/zh/UserGuide/API/Programming-Python-Native-API.md
index d62d6d0..ca66ad4 100644
--- a/docs/zh/UserGuide/API/Programming-Python-Native-API.md
+++ b/docs/zh/UserGuide/API/Programming-Python-Native-API.md
@@ -27,7 +27,9 @@
 
 ## 如何使用 (示例)
 
-首先下载包:`pip3 install apache-iotdb`
+首先下载最新安装包:`pip3 install apache-iotdb`
+
+*注意:如果您想要安装 0.13.0 版本的 Python API,不要使用 `pip install apache-iotdb==0.13.0`,请使用 `pip install apache-iotdb==0.13.0.post1` 作为替代!*
 
 您可以从这里得到一个使用该包进行数据读写的例子:[Session Example](https://github.com/apache/iotdb/blob/master/client-py/SessionExample.py)