insertSinglePointHistData.sh 878 B

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