queryDataAtNow.sh 608 B

1234567891011121314151617
  1. #!/usr/bin/env bash
  2. ROOT=$(cd `dirname $0`/../../../; pwd)
  3. cd $ROOT
  4. source $ROOT/shell/tsdb/common.sh
  5. #pointCountArray=(1 2 3 5 10 20 30 50 100 200 300 500 1000 2000 3000 5000 10000 20000 30000 50000 100000)
  6. pointCountArray=(1 2 3 5 10 20 30 50 100 200 300 500 1000 2000 3000 5000 10000 20000)
  7. for(( i=0;i<${#pointCountArray[@]};i++))
  8. do
  9. echo "----test query realtime data pointCount:${pointCountArray[i]}"
  10. java -cp ./lib/tsdb.jar demo.query.QueryDataAtTime \
  11. --host=$host --pointNamePrefix=pointName_ --pointCount=${pointCountArray[i]} \
  12. --showQueryResult=0 2>&1 | tee -a ./log/tsdb/out.log
  13. done