#!/usr/bin/env bash # 插入单点历史数据,周期7s ROOT=$(cd `dirname $0`/../../; pwd) cd $ROOT source $ROOT/shell/tsdb/common.sh dataCountPerPoint=1 pointCount=1 index=1 echo "[${index}] test" pointNamePrefix="pointName${index}_" storagePath="root.test1.wf01.wt01" beginDate="2017-06-01 00:00:00" echo beginDate:beginDate for dataCountPerPoint in 1000 2000 3000 5000 10000 20000 30000 50000 100000 200000 300000 500000 do echo "----test insert pointCount:${pointCount} dataCountPerPoint:${dataCountPerPoint}" nohup java -cp ./lib/iotdb.jar -Xmx8000m demo.insert.InsertHistoricalRandomData \ --host ${host} --storagePath ${storagePath} --pointNamePrefix ${pointNamePrefix} --pointCount ${pointCount} \ --dataCountPerPoint ${dataCountPerPoint} --beginDate "$beginDate" --period 7000 \ --seed 1 --mean 10 --variance 1 --debug 0 2>&1 | tee -a ./log/iotdb/out.log done