queryHistData.sh 613 B

1234567891011121314151617181920212223
  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. pointCount=1
  7. pointIndex=1
  8. for days in 1 2 3 4 7 15 30 60 90 180
  9. do
  10. echo "----test query range days:$days"
  11. beginDate="2017-01-01 00:00:00"
  12. echo beginDate:beginDate
  13. endDate=$(date -d "${beginDate} ${days} days" +"%Y-%m-%d %H:%M:%S")
  14. echo endDate:$endDate
  15. java -cp ./lib/tsdb.jar demo.query.histQuery.QueryHistData \
  16. --host=$host --pointNamePrefix=pointName_ --pointCount=$pointCount \
  17. --beginDate="$beginDate" --endDate="$endDate" \
  18. --showQueryResult=0 2>&1 | tee -a ./log/tsdb/out.log
  19. done