일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
- Streamlit
- dockercompose
- aiagent
- Dag
- airflow
- metadabatase
- amazonlinux
- ubuntu
- hadoop
- grafana
- pySpark
- Redshift
- sparkstreaming
- spark
- BigQuery
- airflow설치
- jmx-exporter
- milvus
- 오블완
- kafka
- vectorDB
- 설치
- Python
- javascript
- 루프백주소
- docker
- RAG
- prometheus
- SQL
- MSA
- Today
- Total
목록BigQuery (2)
데이터 노트
필요 사전 작업Bigquery 내에서 서비스 계정 생성 후, JSON 키 생성 및 다운로드 설치구글 클라우드 빅쿼리 클라이언트 설치pip install google-cloud-bigquery구글 시트 연동을 위한 라이브러리 설치pip install gspread oauth2client 코드Python과 BigQuery와 연동해서, 데이터 가져오기from google.cloud import bigqueryfrom google.oauth2 import service_accountKEY_PATH = "{서비스 계정 인증 정보가 담긴 JSON 파일 경로}"# Credentials 객체 생성credentials = service_account.Credentials.from_service_account_file(K..
에러 내용credentials = service_account.Credentials.from_service_account_file(KEY_PATH, scopes)TypeError: Credentials.from_service_account_file() takes 2 positional arguments but 3 were given 상황BigQuery까지만 연동 + scopes를 추가하지 않고 실행 했을 때는 문제가 없었는데,Google Sheet 추가 연결을 위해 scopes 작성이 필요해 작성하고 credential에 추가하였더니 오류가 발생. 해결 방안scopes와 key path를 분리하여 작성하는 형식으로 코드 수정credentials = service_account.Credentials.fro..