insertHistoricalRandomDataForAPoint.sh 880 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/env bash
  2. ROOT=$(cd `dirname $0`/../../../; pwd)
  3. cd $ROOT
  4. source $ROOT/shell/iotdb/common.sh
  5. index=1
  6. #存在插入数据太长将导致连接被断开而退出的问题
  7. #出现AutoResizingBuffer告警,可能和iotdb配置缓存区大小相关。
  8. echo "[${index}] test"
  9. pointNamePrefix="pointName${index}_"
  10. storagePath="root.test1.wf01.wt01"
  11. beginDate="2017-06-01 00:00:00"
  12. echo beginDate:beginDate
  13. # 单点插入
  14. for dataCount in 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 1 \
  19. --dataCountPerPoint ${dataCount} --beginDate "$beginDate" --period 40000 \
  20. --seed 1 --mean 10 --variance 1 --debug 0 2>&1 | tee -a ./log/iotdb/out.log
  21. done