Authentication Setup
1
Go to Google Cloud Console
Access the concole here
2
Selecting/Creating Your Project
To select or create your project, note your PROJECT_ID (in all lower case)
3
Navigate To Service Accounts
Navigate to “IAM & Admin” > “Service Accounts”
4
Creating A Service Account
Click “Create Service Account”
5
Fill In The Details
Fill in the required details:
- Name: (e.g., “genesis-bigquery-sa”)
- Description: Optional
6
Grant The Following Roles
- BigQuery Data Viewer
- BigQuery Job User
- BigQuery User
7
Creating And Downloading The JSON Key File
- Go to the “Keys” tab
- Click “Add Key” > “Create new key”
- Choose JSON format
NOTE: The downloaded key file will contain your service account credentials including
project_id, private_key, client_email and other necessary authentication details.
Environment Variable Setup
Before connecting, set theGOOGLE_APPLICATION_CREDENTIALS environment variable to your key file path
Test Harness Available
In the /database_demos/bigquery folder that gets installed with Genesis, you can find an additional readme and a small Python program that can be used as a test harness to confirm that your BigQuery connection is working. You can use this if you have any issues connecting to BigQuery with the procedure below.Adding BigQuery Connection in Genesis
Tell Eve to add the BigQuery connection using this format. Make sure your lowercase is in all lowercase. Copy the prompt below to follow along
Check your Database Connections
After setting up the connection, verify it on the Database Connections tab in the Genesis GUI.
See What Schemas Are Visible In Your Project
Copy the prompt below to follow along
Adding BigQuery Datasets To The Harvest
You can harvest specific datasets by asking Eve to add all visible schemas, or you can list specific schemas. Copy the prompt below to follow along


Removing The Connection
You also have the option to remove the connection.Troubleshooting
Common Issues and Solutions
Authentication Fails
Authentication Fails
- Verify the key file path is correct
- Ensure environment variable is properly set
- Check if the service account key is valid
Could Not Automatically Determine Credentials
Could Not Automatically Determine Credentials
- Environment variable not set correctly
- Key file not accessible or corrupted
Permission Denied
Permission Denied
- Check if all required IAM roles are granted
- Verify the service account has the necessary permissions
- Ensure project access is enabled
Project Not Found
Project Not Found
- Confirm project ID is correct
- Verify service account has access to the project
Query Fails
Query Fails
- Validate dataset and table permissions
- Check SQL syntax and dataset references
Can't Find Data
Can't Find Data
- Make sure to refer to “projects” and “datasets”, which are the Bigquery equivalent to “Databases” and “Schemas.”

