You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2020/12/14 07:02:26 UTC

[iotdb] 01/01: Merge remote-tracking branch 'origin/master' into change_rpc_port

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

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

commit 0ea4796183735f1058056d2452ed9fe51ddc392d
Merge: 70ca15a c8cf5c9
Author: xiangdong huang <sa...@gmail.com>
AuthorDate: Mon Dec 14 14:57:35 2020 +0800

    Merge remote-tracking branch 'origin/master' into change_rpc_port

 .travis.yml                                        |   2 +-
 Jenkinsfile                                        |  29 +-
 LICENSE-binary                                     |   2 -
 .../antlr4/org/apache/iotdb/db/qp/sql/SqlBase.g4   |   4 -
 .../java/org/apache/iotdb/cli/AbstractCli.java     | 110 +-----
 cli/src/main/java/org/apache/iotdb/cli/Cli.java    |   5 +-
 cli/src/main/java/org/apache/iotdb/cli/WinCli.java |   5 +-
 .../main/java/org/apache/iotdb/tool/ExportCsv.java |   4 +-
 .../java/org/apache/iotdb/cli/AbstractCliIT.java   |  35 +-
 client-py/src/iotdb/Session.py                     |   1 -
 client-py/src/iotdb/utils/RowRecord.py             |   1 -
 cluster/src/assembly/resources/sbin/add-node.bat   |   6 +-
 cluster/src/assembly/resources/sbin/add-node.sh    |   6 +-
 cluster/src/assembly/resources/sbin/start-node.bat |   8 +-
 cluster/src/assembly/resources/sbin/start-node.sh  |   6 +-
 .../java/org/apache/iotdb/cluster/ClusterMain.java |   9 +-
 .../apache/iotdb/cluster/log/LogDispatcher.java    |   4 +-
 .../cluster/log/applier/AsyncDataLogApplier.java   |   4 +-
 .../apache/iotdb/cluster/metadata/CMManager.java   |  21 +-
 .../iotdb/cluster/query/LocalQueryExecutor.java    |   2 +-
 .../cluster/server/member/MetaGroupMember.java     |   4 +-
 compile-tools/boost/pom.xml                        |   4 +
 docs/Download/README.md                            |  16 +-
 docs/UserGuide/Server/Cluster Setup.md             |  10 +-
 docs/UserGuide/Server/ServerFileList.md            |   3 +-
 docs/zh/Download/README.md                         |  16 +-
 .../Concept/Data Model and Terminology.md          |   3 +-
 docs/zh/UserGuide/Server/Cluster Setup.md          |  14 +-
 docs/zh/UserGuide/Server/ServerFileList.md         |   3 +-
 .../main/java/org/apache/iotdb/JDBCExample.java    |   4 +
 .../main/java/org/apache/iotdb/SessionExample.java |   3 +
 hadoop/pom.xml                                     |  20 --
 pom.xml                                            |  12 +-
 server/pom.xml                                     |   5 -
 .../org/apache/iotdb/db/conf/IoTDBConfigCheck.java |  18 +-
 .../apache/iotdb/db/index/common/IndexUtils.java   |   4 +-
 .../apache/iotdb/db/qp/executor/PlanExecutor.java  |   2 +-
 .../iotdb/db/qp/physical/crud/LastQueryPlan.java   |   2 +-
 .../db/query/dataset/ShowTimeseriesDataSet.java    |   7 +-
 .../iotdb/db/query/executor/LastQueryExecutor.java |   9 +-
 .../db/query/executor/fill/LastPointReader.java    |   3 +-
 .../iotdb/db/sync/sender/transfer/SyncClient.java  |   4 +-
 .../iotdb/db/utils/datastructure/TVList.java       |   6 +-
 .../apache/iotdb/db/integration/IOTDBInsertIT.java |   4 +-
 .../iotdb/db/integration/IoTDBAggregationIT.java   |  12 +-
 .../iotdb/db/integration/IoTDBDeletionIT.java      |  14 +-
 .../apache/iotdb/db/integration/IoTDBLastIT.java   |  75 ++--
 .../iotdb/db/integration/IoTDBRecoverIT.java       |  14 +-
 .../db/integration/IoTDBRecoverUnclosedIT.java     |  12 +-
 .../iotdb/db/integration/IoTDBResultSetIT.java     |   4 +-
 .../iotdb/db/query/dataset/ListDataSetTest.java    | 126 +++++++
 .../iotdb/db/query/dataset/SingleDataSetTest.java  | 133 ++++++++
 .../java/org/apache/iotdb/rpc/IoTDBRpcDataSet.java |  43 ++-
 .../main/java/org/apache/iotdb/rpc/RpcUtils.java   |  90 +++++
 .../java/org/apache/iotdb/session/Session.java     |   6 +
 .../iotdb/session/IoTDBSessionComplexIT.java       |   2 +-
 .../iotdb/session/IoTDBSessionIteratorIT.java      | 178 ++++++++--
 site/README-zh.md                                  |   2 +-
 site/README.md                                     |   2 +-
 site/src/main/.vuepress/config.js                  |   4 +-
 spark-iotdb-connector/pom.xml                      |   6 -
 .../apache/iotdb/spark/db/EnvironmentUtils.java    |  12 +-
 .../file/metadata/enums/CompressionType.java       | 118 ++++---
 .../tsfile/read/common/DescReadWriteBatchData.java |  24 +-
 zeppelin-interpreter/IoTDB-Zeppelin-Demo.zpln      | 377 +++++++++++++++++++++
 zeppelin-interpreter/README.md                     | 186 ++++++++++
 zeppelin-interpreter/pom.xml                       | 126 +++++++
 .../apache/zeppelin/iotdb/IoTDBInterpreter.java    | 213 ++++++++++++
 .../src/main/resources/interpreter-setting.json    |  70 ++++
 .../zeppelin/iotdb/IoTDBInterpreterTest.java       | 273 +++++++++++++++
 70 files changed, 2111 insertions(+), 451 deletions(-)

diff --cc docs/UserGuide/Server/Cluster Setup.md
index bf61a3f,3945057..2a5ff8d
--- a/docs/UserGuide/Server/Cluster Setup.md
+++ b/docs/UserGuide/Server/Cluster Setup.md
@@@ -61,19 -61,19 +61,19 @@@ When both exist, the specified configur
  > sed -i -e 's/6667/6669/g' ./cluster/target/cluster-0.11.0-SNAPSHOT2/conf/iotdb-engine.properties
  
  # Second step: Unix/OS X/Windows (git bash or WSL)
- > sed -i -e 's/31999/32000/g' ./cluster/target/cluster-0.11.0-SNAPSHOT1/conf/cluster-env.sh
- > sed -i -e 's/31999/32001/g' ./cluster/target/cluster-0.11.0-SNAPSHOT2/conf/cluster-env.sh
+ > sed -i -e 's/31999/32000/g' ./cluster/target/cluster-0.11.0-SNAPSHOT1/conf/iotdb-env.sh
+ > sed -i -e 's/31999/32001/g' ./cluster/target/cluster-0.11.0-SNAPSHOT2/conf/iotdb-env.sh
  > chmod -R 777 ./cluster/target/
  > nohup ./cluster/target/cluster-0.11.0-SNAPSHOT/sbin/start-node.sh >/dev/null 2>&1 &
 -> nohup ./cluster/target/cluster-0.11.0-SNAPSHOT1/sbin/start-node.sh -internal_meta_port 9005 -internal_data_port 40012 -cluster_rpc_port 55561 >/dev/null 2>&1 &
 -> nohup ./cluster/target/cluster-0.11.0-SNAPSHOT2/sbin/start-node.sh -internal_meta_port 9007 -internal_data_port 40014 -cluster_rpc_port 55562 >/dev/null 2>&1 &
 +> nohup ./cluster/target/cluster-0.11.0-SNAPSHOT1/sbin/start-node.sh -internal_meta_port 9005 -internal_data_port 40012 -cluster_rpc_port 6668 >/dev/null 2>&1 &
 +> nohup ./cluster/target/cluster-0.11.0-SNAPSHOT2/sbin/start-node.sh -internal_meta_port 9007 -internal_data_port 40014 -cluster_rpc_port 6669 >/dev/null 2>&1 &
  
  # Second step: Windows (MinGW)
- > sed -i -e 's/31999/32000/g'  cluster\target\cluster-0.11.0-SNAPSHOT\conf\cluster-env.bat
- > sed -i -e 's/31999/32001/g'  cluster\target\cluster-0.11.0-SNAPSHOT\conf\cluster-env.bat
+ > sed -i -e 's/31999/32000/g'  cluster\target\cluster-0.11.0-SNAPSHOT\conf\iotdb-env.bat
+ > sed -i -e 's/31999/32001/g'  cluster\target\cluster-0.11.0-SNAPSHOT\conf\iotdb-env.bat
  > nohup cluster\target\cluster-0.11.0-SNAPSHOT\sbin\start-node.bat 
 -> nohup cluster\target\cluster-0.11.0-SNAPSHOT1\sbin\start-node.bat  -internal_meta_port 9005 -internal_data_port 40012 -cluster_rpc_port 55561
 -> nohup cluster\target\cluster-0.11.0-SNAPSHOT2\sbin\start-node.bat  -internal_meta_port 9007 -internal_data_port 40014 -cluster_rpc_port 55562
 +> nohup cluster\target\cluster-0.11.0-SNAPSHOT1\sbin\start-node.bat  -internal_meta_port 9005 -internal_data_port 40012 -cluster_rpc_port 6668
 +> nohup cluster\target\cluster-0.11.0-SNAPSHOT2\sbin\start-node.bat  -internal_meta_port 9007 -internal_data_port 40014 -cluster_rpc_port 6669
  ```
  
  Note: The distributed version uses the 707 identifier to instruct the client to do the appropriate metadata cache so that the data can then be sent directly to the leader of the corresponding data group later.
diff --cc docs/zh/UserGuide/Server/Cluster Setup.md
index 71bc7d7,87a3445..7a27fdd
--- a/docs/zh/UserGuide/Server/Cluster Setup.md
+++ b/docs/zh/UserGuide/Server/Cluster Setup.md
@@@ -55,19 -55,19 +55,19 @@@ o
  > sed -i -e 's/6667/6669/g' ./cluster/target/cluster-0.11.0-SNAPSHOT2/conf/iotdb-engine.properties
  
  # 第二步: Unix/OS X/Windows (git bash or WSL)
- > sed -i -e 's/31999/32000/g' ./cluster/target/cluster-0.11.0-SNAPSHOT1/conf/cluster-env.sh
- > sed -i -e 's/31999/32001/g' ./cluster/target/cluster-0.11.0-SNAPSHOT2/conf/cluster-env.sh
+ > sed -i -e 's/31999/32000/g' ./cluster/target/cluster-0.11.0-SNAPSHOT1/conf/iotdb-env.sh
+ > sed -i -e 's/31999/32001/g' ./cluster/target/cluster-0.11.0-SNAPSHOT2/conf/iotdb-env.sh
  > chmod -R 777 ./cluster/target/
  > nohup ./cluster/target/cluster-0.11.0-SNAPSHOT/sbin/start-node.sh >/dev/null 2>&1 &
 -> nohup ./cluster/target/cluster-0.11.0-SNAPSHOT1/sbin/start-node.sh -internal_meta_port 9005 -internal_data_port 40012 -cluster_rpc_port 55561 >/dev/null 2>&1 &
 -> nohup ./cluster/target/cluster-0.11.0-SNAPSHOT2/sbin/start-node.sh -internal_meta_port 9007 -internal_data_port 40014 -cluster_rpc_port 55562 >/dev/null 2>&1 &
 +> nohup ./cluster/target/cluster-0.11.0-SNAPSHOT1/sbin/start-node.sh -internal_meta_port 9005 -internal_data_port 40012 -cluster_rpc_port 6668 >/dev/null 2>&1 &
 +> nohup ./cluster/target/cluster-0.11.0-SNAPSHOT2/sbin/start-node.sh -internal_meta_port 9007 -internal_data_port 40014 -cluster_rpc_port 6669 >/dev/null 2>&1 &
  
  # 第二步: Windows (MinGW)
- > sed -i -e 's/31999/32000/g'  cluster\target\cluster-0.11.0-SNAPSHOT\conf\cluster-env.bat
- > sed -i -e 's/31999/32001/g'  cluster\target\cluster-0.11.0-SNAPSHOT\conf\cluster-env.bat
+ > sed -i -e 's/31999/32000/g'  cluster\target\cluster-0.11.0-SNAPSHOT\conf\iotdb-env.bat
+ > sed -i -e 's/31999/32001/g'  cluster\target\cluster-0.11.0-SNAPSHOT\conf\iotdb-env.bat
  > nohup cluster\target\cluster-0.11.0-SNAPSHOT\sbin\start-node.bat 
 -> nohup cluster\target\cluster-0.11.0-SNAPSHOT1\sbin\start-node.bat  -internal_meta_port 9005 -internal_data_port 40012 -cluster_rpc_port 55561
 -> nohup cluster\target\cluster-0.11.0-SNAPSHOT2\sbin\start-node.bat  -internal_meta_port 9007 -internal_data_port 40014 -cluster_rpc_port 55562
 +> nohup cluster\target\cluster-0.11.0-SNAPSHOT1\sbin\start-node.bat  -internal_meta_port 9005 -internal_data_port 40012 -cluster_rpc_port 6668
 +> nohup cluster\target\cluster-0.11.0-SNAPSHOT2\sbin\start-node.bat  -internal_meta_port 9007 -internal_data_port 40014 -cluster_rpc_port 6669
  ```
  
  注:分布式版使用了707标识符来指示客户端做相应的元数据缓存以便之后能够直接将数据发送给对应数据组的 leader。因此建议在当前分支重新 `mvn install -pl jdbc -am -Dmaven.test.skip=true` 和