insertRealtimeRandomData.sh 569 B

123456789101112131415161718
  1. #!/usr/bin/env bash
  2. # 插入实时数据功能
  3. ROOT=$(cd `dirname $0`/../../; pwd)
  4. cd $ROOT
  5. source $ROOT/shell/tsdb/common.sh
  6. storagePath="root.test1.wf01.wt01"
  7. clear
  8. for pointCount in 1000 2000 3000 5000 10000 20000 30000 50000 100000
  9. do
  10. echo "----test insert dataCountPerPoint:${pointCount}"
  11. java -cp ./lib/iotdb.jar demo.insert.InsertRealtimeRandomData \
  12. --host $host --storagePath ${storagePath} --pointNamePrefix pointName1_ --pointCount $pointCount --seed 1 \
  13. --mean 10 --variance 1 --debug 0 2>&1 | tee -a ./log/iotdb/out.log
  14. sleep 1 #1 second
  15. done