queryMultiPointHistData.sh 570 B

12345678910111213141516
  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)
  6. for(( i=0;i<${#pointCountArray[@]};i++))
  7. do
  8. echo "----test query realtime data pointCount:${pointCountArray[i]}"
  9. java -cp ./lib/influxdb.jar demo.query.histQuery.QueryMultiPointHistData \
  10. --host $host --pointNamePrefix pointName1_ --pointCount ${pointCountArray[i]} \
  11. --beginDate "2017-06-01 00:00:00" --endDate "2017-06-01 00:00:01" --pointIndex 1 \
  12. --showQueryResult 0 2>&1 | tee -a ./log/influxdb/out.log
  13. done