queryDataAtNow.sh 679 B

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