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/10/30 11:09:33 UTC

[GitHub] [incubator-iotdb] qiaojialin commented on a change in pull request #492: [IOTDB-277] Update README.md

qiaojialin commented on a change in pull request #492: [IOTDB-277] Update README.md
URL: https://github.com/apache/incubator-iotdb/pull/492#discussion_r340553429
 
 

 ##########
 File path: README.md
 ##########
 @@ -302,3 +307,41 @@ Under the root path of incubator-iotdb:
 ```
 
 After build, the IoTDB client will be at the folder "client/target/iotdb-client-{project.version}".
+
+## Usage of import-csv.sh
+
+### Create metadata
+```
+SET STORAGE GROUP TO root.fit.d1;
+SET STORAGE GROUP TO root.fit.d2;
+SET STORAGE GROUP TO root.fit.p;
+CREATE TIMESERIES root.fit.d1.s1 WITH DATATYPE=INT32,ENCODING=RLE;
+CREATE TIMESERIES root.fit.d1.s2 WITH DATATYPE=TEXT,ENCODING=PLAIN;
+CREATE TIMESERIES root.fit.d2.s1 WITH DATATYPE=INT32,ENCODING=RLE;
+CREATE TIMESERIES root.fit.d2.s3 WITH DATATYPE=INT32,ENCODING=RLE;
+CREATE TIMESERIES root.fit.p.s1 WITH DATATYPE=INT32,ENCODING=RLE;
+```
+
+### Run import shell
+```
+# Unix/OS X
+> $IOTDB_CLI_HOME/tools/import-csv.sh -h <ip> -p <port> -u <username> -pw <password> -f <xxx.csv>
 
 Review comment:
   add a csv example in this file

----------------------------------------------------------------
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