Closed nokoxxx1212 closed 4 months ago
from google.cloud import aiplatform
job = aiplatform.PipelineJob( display_name='my_pipeline', template_path='path_to_pipeline.json', parameter_values={'param1': 'value1', 'param2': 'value2'}, enable_caching=False )
job.run()
-> update_at = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
-> `ValueError: 26 columns passed, passed data had 27 columns`
* -> pythonファイルを更新しただけだとpushの時に更新されない?
docker rmi $(docker images -q) -f
REPOSITORY TAG IMAGE ID CREATED SIZE
cp ../../../../pyproject.toml ./
google.api_core.exceptions.Forbidden: 403 POST https://bigquery.googleapis.com/bigquery/v2/projects/l06bb092efcbd62e5p-tp/jobs?prettyPrint=false: Access Denied: Project l06bb092efcbd62e5p-tp: User does not have bigquery.jobs.create permission in project l06bb092efcbd62e5p-tp.
パイプラインの実行時にサービスアカウントが明示的に指定されていない場合、デフォルトのサービスアカウント(通常はプロジェクトのCompute Engineデフォルトサービスアカウント)が使用されます。
でもscrapeでできていたけど...?
画面上からだと,上図の「Include Google-provided role grants」にチェックを入れることで,GCP 側が用意したサービスアカウントが表示されます
dev-kh-wb-01: The zone 'projects/keiba-hacke/zones/us-central1-a' does not have enough resources available to fulfill the request. Try a different zone, or try again later.: Something went wrong. Sorry about that.
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/your/service-account-file.json"
🧑 Story
🔨 Acceptance Criteria
📝 Task List
📚 Resources
🎯 Deliverables
🔜 Remaining Tasks