Contains scripts for interacting with Google BigQuery
-
Your environment must be setup with authentication information. If you're running in your local development environment and you have the Google Cloud SDK installed, you can do this easily by running:
$ gcloud init
-
To use python scripts, Python 2.7.x and python-pip is required :
$ sudo apt-get install python-pip
-
Ensure the BigQuery API client library for python is up to date :
$ pip install --upgrade google-api-python-client
-
Install dependencies in
requirements.txt
:$ pip install -r requirements.txt
-
TODO Install dependencies for psutil git clone https://github.com/giampaolo/psutil/blob/master/INSTALL.rst make install-pip sudo pip install psutil
-
Add the statements you want executed into a file that you pass into the command in (2), with the following format:
- category; number of times to execute; shell/CLI command to execute
-
python multi_queries.py {your-command-file-name} {project-name} {output-file-name}
-
Add the statements you want executed into a file that you pass into the command in (2), with the following format:
- category; number of times to execute; shell/CLI command to execute
-
python query_load_over_time.py {your-command-file-name} {project-name} {time-to-run} (optional: -mc {the upper limit for the multiplier} -o {output-file-name} -m {multiplier increment algorithm} -r {ramp-up-time=period)