You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2019/12/24 06:04:56 UTC
[GitHub] [incubator-iotdb] liutaohua opened a new pull request #674: Fix doc
liutaohua opened a new pull request #674: Fix doc
URL: https://github.com/apache/incubator-iotdb/pull/674
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-iotdb] qiaojialin commented on a change in pull request
#674: Fix doc
Posted by GitBox <gi...@apache.org>.
qiaojialin commented on a change in pull request #674: Fix doc
URL: https://github.com/apache/incubator-iotdb/pull/674#discussion_r361101414
##########
File path: docs/Documentation-CHN/UserGuide/0-Get Started/2-Frequently asked questions.md
##########
@@ -19,6 +19,149 @@
-->
+<!-- TOC -->
+
+## 概览
+
+- 常见问题
+ - 如何查询我的 IoTDB 版本?
+ - 在哪里可以找到 IoTDB 的日志?
+ - 在哪里可以找到 IoTDB 的数据文件?
+ - 如何知道 IoTDB 中存储了多少时间序列?
+ - 可以使用 Hadoop 和 Spark 读取 IoTDB 中的 TsFile 吗?
+ - IoTDB 如何处理重复的数据点?
+ - 我如何知道具体的 timeseries 的类型?
+ - 如何更改 IoTDB 的客户端时间显示格式?
+
+<!-- /TOC -->
# 常见问题
-Coming Soon.
\ No newline at end of file
+## 如何查询我的 IoTDB 版本?
+
+有几种方法可以识别您使用的 IoTDB 版本:
+
+*启动 IoTDB 的命令行界面:
+
+```
+> ./start-client.sh -p 6667 -pw root -u root -h localhost
+ _____ _________ ______ ______
+|_ _| | _ _ ||_ _ `.|_ _ \
+ | | .--.|_/ | | \_| | | `. \ | |_) |
+ | | / .'`\ \ | | | | | | | __'.
+ _| |_| \__. | _| |_ _| |_.' /_| |__) |
+|_____|'.__.' |_____| |______.'|_______/ version x.x.x
+```
+
+* 检查 pom.xml 文件:
+
+```
+<version>x.x.x</version>
+```
+
+* 使用 JDBC API:
+
+```
+String iotdbVersion = tsfileDatabaseMetadata.getDatabaseProductVersion();
+```
+
+* 使用命令行接口:
+
+```
+IoTDB> show version
+show version
++---------------+
+|version |
++---------------+
+|x.x.x |
++---------------+
+Total line number = 1
+It costs 0.241s
+```
+
+## 在哪里可以找到 IoTDB 的日志?
+
+假设您的根目录是:
+
+```
+$ pwd
+/workspace/incubator-iotdb
+
+$ ls -l
+server/
+client/
+pom.xml
+Readme.md
+...
+```
+
+假如 `$IOTDB_HOME = /workspace/incubator-iotdb/server/target/iotdb-server-{project.version}`
+
+假如 `$IOTDB_CLI_HOME = /workspace/incubator-iotdb/client/target/iotdb-client-{project.version}`
+
+在默认的设置里,logs 文件夹会被存储在```IOTDB_HOME/logs```。您可以在```IOTDB_HOME/conf```目录下的```logback.xml```文件中修改日志的级别和日志的存储路径。
+
+## 在哪里可以找到 IoTDB 的数据文件?
+
+在默认的设置里,数据文件(包含 TsFile,metadata,WAL)被存储在```IOTDB_HOME/data```文件夹。
+
+## 如何知道 IoTDB 中存储了多少时间序列?
+
+使用 IoTDB 的命令行接口:
+
+```
+IoTDB> show timeseries root.*
Review comment:
跟下边统一一下吧,都不带 *,英文的也去掉 *
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-iotdb] qiaojialin commented on a change in pull request
#674: Fix doc
Posted by GitBox <gi...@apache.org>.
qiaojialin commented on a change in pull request #674: Fix doc
URL: https://github.com/apache/incubator-iotdb/pull/674#discussion_r361101874
##########
File path: docs/Documentation-CHN/UserGuide/0-Get Started/2-Frequently asked questions.md
##########
@@ -19,6 +19,149 @@
-->
+<!-- TOC -->
+
+## 概览
+
+- 常见问题
+ - 如何查询我的 IoTDB 版本?
+ - 在哪里可以找到 IoTDB 的日志?
+ - 在哪里可以找到 IoTDB 的数据文件?
+ - 如何知道 IoTDB 中存储了多少时间序列?
+ - 可以使用 Hadoop 和 Spark 读取 IoTDB 中的 TsFile 吗?
+ - IoTDB 如何处理重复的数据点?
+ - 我如何知道具体的 timeseries 的类型?
+ - 如何更改 IoTDB 的客户端时间显示格式?
+
+<!-- /TOC -->
# 常见问题
-Coming Soon.
\ No newline at end of file
+## 如何查询我的 IoTDB 版本?
+
+有几种方法可以识别您使用的 IoTDB 版本:
+
+*启动 IoTDB 的命令行界面:
+
+```
+> ./start-client.sh -p 6667 -pw root -u root -h localhost
+ _____ _________ ______ ______
+|_ _| | _ _ ||_ _ `.|_ _ \
+ | | .--.|_/ | | \_| | | `. \ | |_) |
+ | | / .'`\ \ | | | | | | | __'.
+ _| |_| \__. | _| |_ _| |_.' /_| |__) |
+|_____|'.__.' |_____| |______.'|_______/ version x.x.x
+```
+
+* 检查 pom.xml 文件:
+
+```
+<version>x.x.x</version>
+```
+
+* 使用 JDBC API:
+
+```
+String iotdbVersion = tsfileDatabaseMetadata.getDatabaseProductVersion();
+```
+
+* 使用命令行接口:
+
+```
+IoTDB> show version
+show version
++---------------+
+|version |
++---------------+
+|x.x.x |
++---------------+
+Total line number = 1
+It costs 0.241s
+```
+
+## 在哪里可以找到 IoTDB 的日志?
+
+假设您的根目录是:
+
+```
+$ pwd
+/workspace/incubator-iotdb
+
+$ ls -l
+server/
+client/
+pom.xml
+Readme.md
+...
+```
+
+假如 `$IOTDB_HOME = /workspace/incubator-iotdb/server/target/iotdb-server-{project.version}`
+
+假如 `$IOTDB_CLI_HOME = /workspace/incubator-iotdb/client/target/iotdb-client-{project.version}`
+
+在默认的设置里,logs 文件夹会被存储在```IOTDB_HOME/logs```。您可以在```IOTDB_HOME/conf```目录下的```logback.xml```文件中修改日志的级别和日志的存储路径。
+
+## 在哪里可以找到 IoTDB 的数据文件?
+
+在默认的设置里,数据文件(包含 TsFile,metadata,WAL)被存储在```IOTDB_HOME/data```文件夹。
+
+## 如何知道 IoTDB 中存储了多少时间序列?
+
+使用 IoTDB 的命令行接口:
+
+```
+IoTDB> show timeseries root.*
+```
+
+在返回的结果里,会展示`Total timeseries number`,这个数据就是 IoTDB 中 timeseries 的数量。
+
+在当前版本中,IoTDB 支持直接使用命令行接口查询时间序列的数量:
+
+```
+IoTDB> count timeseries root
+```
+
+如果您使用的是 Linux 操作系统,您可以使用以下的 Shell 命令:
+
+```
+> grep "0,root" $IOTDB_HOME/data/system/schema/mlog.txt | wc -l
+> 6
+```
+
+## 可以使用 Hadoop 和 Spark 读取 IoTDB 中的 TsFile 吗?
+
+是的。IoTDB 与开源生态紧密结合。IoTDB 支持 [Hadoop](https://github.com/apache/incubator-iotdb/tree/master/hadoop), [Spark](https://github.com/apache/incubator-iotdb/tree/master/spark) 和 [Grafana](https://github.com/apache/incubator-iotdb/tree/master/grafana) 可视化工具.
+
+## IoTDB如何处理重复的数据点?
+
+一个数据点是由一个完整的时间序列路径(例如:```root.vehicle.d0.s0```)和时间戳唯一标识的。如果您使用与现有点相同的路径和时间戳提交一个新点,那么IoTDB将更新这个点的值,而不是插入一个新点。
+
+## 我如何知道具体的 timeseries 的类型?
+
+在 IoTDB 的命令行接口中使用 SQL ```SHOW TIMESERIES <timeseries path>```:
+
+例如:如果您想知道所有 timeseries 的类型 \<timeseries path> 应该为 `root`。上面的 SQL 应该修改为:
+
+```
+IoTDB> show timeseries root
+```
+
+如果您想查询一个指定的 sensor, 您可以修改 \<timeseries path> 为 sensor 的名字。比如:
Review comment:
```suggestion
如果您想查询一个指定的时间序列, 您可以修改 \<timeseries path> 为时间序列的完整路径。比如:
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-iotdb] qiaojialin merged pull request #674: Fix doc
Posted by GitBox <gi...@apache.org>.
qiaojialin merged pull request #674: Fix doc
URL: https://github.com/apache/incubator-iotdb/pull/674
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-iotdb] Genius-pig commented on a change in pull request
#674: Fix doc
Posted by GitBox <gi...@apache.org>.
Genius-pig commented on a change in pull request #674: Fix doc
URL: https://github.com/apache/incubator-iotdb/pull/674#discussion_r361102511
##########
File path: docs/Community-Project Committers.md
##########
@@ -42,3 +42,7 @@
| Tianan li | Tsinghua University |
| Yue Su | Tsinghua University |
| Hui Da | Lenovo |
+| Yuan Tian | Tsinghua University |
+| Zesong Sun | Tsinghua University |
+| Kaifeng Xue | Tsinghua University |
+| Tianci Zhu | |
Review comment:
Do you forget @jack870131?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-iotdb] qiaojialin commented on a change in pull request
#674: Fix doc
Posted by GitBox <gi...@apache.org>.
qiaojialin commented on a change in pull request #674: Fix doc
URL: https://github.com/apache/incubator-iotdb/pull/674#discussion_r361118420
##########
File path: docs/Community-Project Committers.md
##########
@@ -42,3 +42,7 @@
| Tianan li | Tsinghua University |
| Yue Su | Tsinghua University |
| Hui Da | Lenovo |
+| Yuan Tian | Tsinghua University |
+| Zesong Sun | Tsinghua University |
+| Kaifeng Xue | Tsinghua University |
+| Tianci Zhu | |
Review comment:
His name is Tsung-Han Tsai
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-iotdb] qiaojialin commented on a change in pull request
#674: Fix doc
Posted by GitBox <gi...@apache.org>.
qiaojialin commented on a change in pull request #674: Fix doc
URL: https://github.com/apache/incubator-iotdb/pull/674#discussion_r361128303
##########
File path: docs/Documentation/UserGuide/3-Server/5-Docker Image.md
##########
@@ -22,7 +22,7 @@
# Chapter 3: Server
## Docker Image
-Now a Dockerfile has been written at ROOT/docker/Dockerfile on the branch enable_docker_image.
+Now a Dockerfile has been written at ROOT/docker/Dockerfile under docker project.
Review comment:
```suggestion
Now a Dockerfile has been written at docker/src/main/Dockerfile.
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-iotdb] jixuan1989 commented on issue #674: Fix doc
Posted by GitBox <gi...@apache.org>.
jixuan1989 commented on issue #674: Fix doc
URL: https://github.com/apache/incubator-iotdb/pull/674#issuecomment-568682091
Hi, you can try:
`git merge origin/master`
and then,
`git cherry-pick eb26b51c9467f3234f8d09fab4659f912f488feb`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-iotdb] liutaohua commented on a change in pull request
#674: Fix doc
Posted by GitBox <gi...@apache.org>.
liutaohua commented on a change in pull request #674: Fix doc
URL: https://github.com/apache/incubator-iotdb/pull/674#discussion_r361104453
##########
File path: docs/Community-Project Committers.md
##########
@@ -42,3 +42,7 @@
| Tianan li | Tsinghua University |
| Yue Su | Tsinghua University |
| Hui Da | Lenovo |
+| Yuan Tian | Tsinghua University |
+| Zesong Sun | Tsinghua University |
+| Kaifeng Xue | Tsinghua University |
+| Tianci Zhu | |
Review comment:
sorry,please give me more information about jack
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services