Strategy ONE
Generate a Refresh Token to Access Google BigQuery on MacOS
-
Generate a confirmation code for Google BigQuery.
-
Download the Linux 32-bit and 64-bit (tar.gz) driver.
-
On Mac, open the Terminal application.
-
Navigate to the folder containing the downloaded file. For example, use the command, "
cd ~/Downloads
”. -
Decompress the downloaded file by executing the following command:
The folder name may vary depending on the downloaded driver version. In this example, the 2.2.4.1011 release is used.
Copytar xvf SimbaODBCDriverforGoogleBigQuery_2.2.4.1011-Linux.tar.gz
-
Navigate to the decompressed folder by executing the following command:
Copycd SimbaODBCDriverforGoogleBigQuery_2.2.4.1011-Linux
-
Decompress the driver file by executing the following command:
Copytar xvf SimbaODBCDriverforGoogleBigQuery64_2.2.4.1011.tar.gz
-
Navigate to the
Tools
folder within the newly decompressed folder by executing the following command:Copycd SimbaODBCDriverforGoogleBigQuery64_2.2.4.1011/Tools
-
Generate the OAuth refresh token by executing the following command, where
<CONFIRMATION_CODE>
is the confirmation code generated in step 1:Copy./get_refresh_token.sh <CONFIRMATION_NUMBER>
The token is returned with a comma at the end. Do not copy the comma.