google-cloud-platform

Writing nested schema to BigQuery from Dataflow (Python)

﹥>﹥吖頭↗ 提交于 2021-02-07 07:14:13
问题 I have a Dataflow job to write to BigQuery. It works well for non-nested schema, however fails for the nested schema. Here is my Dataflow pipeline: pipeline_options = PipelineOptions() p = beam.Pipeline(options=pipeline_options) wordcount_options = pipeline_options.view_as(WordcountTemplatedOptions) schema = 'url: STRING,' \ 'ua: STRING,' \ 'method: STRING,' \ 'man: RECORD,' \ 'man.ip: RECORD,' \ 'man.ip.cc: STRING,' \ 'man.ip.city: STRING,' \ 'man.ip.as: INTEGER,' \ 'man.ip.country: STRING,'

Writing nested schema to BigQuery from Dataflow (Python)

早过忘川 提交于 2021-02-07 07:11:37
问题 I have a Dataflow job to write to BigQuery. It works well for non-nested schema, however fails for the nested schema. Here is my Dataflow pipeline: pipeline_options = PipelineOptions() p = beam.Pipeline(options=pipeline_options) wordcount_options = pipeline_options.view_as(WordcountTemplatedOptions) schema = 'url: STRING,' \ 'ua: STRING,' \ 'method: STRING,' \ 'man: RECORD,' \ 'man.ip: RECORD,' \ 'man.ip.cc: STRING,' \ 'man.ip.city: STRING,' \ 'man.ip.as: INTEGER,' \ 'man.ip.country: STRING,'

Writing nested schema to BigQuery from Dataflow (Python)

旧街凉风 提交于 2021-02-07 07:08:21
问题 I have a Dataflow job to write to BigQuery. It works well for non-nested schema, however fails for the nested schema. Here is my Dataflow pipeline: pipeline_options = PipelineOptions() p = beam.Pipeline(options=pipeline_options) wordcount_options = pipeline_options.view_as(WordcountTemplatedOptions) schema = 'url: STRING,' \ 'ua: STRING,' \ 'method: STRING,' \ 'man: RECORD,' \ 'man.ip: RECORD,' \ 'man.ip.cc: STRING,' \ 'man.ip.city: STRING,' \ 'man.ip.as: INTEGER,' \ 'man.ip.country: STRING,'

GCP Cloud Function - ERROR fetching storage source during build/deploy

南楼画角 提交于 2021-02-07 05:48:46
问题 Running into problems building deploying functions. When trying to programmatically deploy the function I get the following output in builder logs (ERRORS). 2020-10-20T02:22:12.155866856Z starting build "1fc13f51-28b6-4052-9a79-d5d0bef9ed5c" I 2020-10-20T02:22:12.156015831Z FETCHSOURCE I 2020-10-20T02:22:12.156031384Z Fetching storage object: gs://gcf-sources-629360234120-us-central1/${FUNCTIONNAME}-63f501f1-a8d2-4837-b992-1173ced83036/version-1/function-source.zip#1603160527600655 I 2020-10

Kubernetes pods can't pull images from container registry (gcp)

跟風遠走 提交于 2021-02-07 05:20:46
问题 I want to update my deployment on kubernetes with a new image which exists on 'eu.gcr.io' (same project), I have done this before. But now the pods fail to pull the image because they are not authorized to do so. This is the error that we get in the pod logs. Failed to pull image "eu.gcr.io/my-gcp-project/my-image:v1.009": rpc error: code = Unknown desc = Error response from daemon: unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid

Get Permission denied (publickey) for Git push to Google Cloud Source Repository with Google Cloud SDK authentication method on Windows 10

余生长醉 提交于 2021-02-07 05:16:06
问题 I'm trying to use Google Cloud Source Repository as a remote repository. I followed all the procedures to authenticate with the Google Cloud SDK authentication method that allows me to not use SSH keys (as they say). The problem is: I always get Permission denied (publickey) fatal: Could not read from remote repository. message when I try git push --all google . The gcloud command is in my Windows PATH ( C:\Users\xxxxx\AppData\Local\Google\Cloud SDK\ ;) and my user has enough permission as I

Get Permission denied (publickey) for Git push to Google Cloud Source Repository with Google Cloud SDK authentication method on Windows 10

孤街浪徒 提交于 2021-02-07 05:13:16
问题 I'm trying to use Google Cloud Source Repository as a remote repository. I followed all the procedures to authenticate with the Google Cloud SDK authentication method that allows me to not use SSH keys (as they say). The problem is: I always get Permission denied (publickey) fatal: Could not read from remote repository. message when I try git push --all google . The gcloud command is in my Windows PATH ( C:\Users\xxxxx\AppData\Local\Google\Cloud SDK\ ;) and my user has enough permission as I

Get Permission denied (publickey) for Git push to Google Cloud Source Repository with Google Cloud SDK authentication method on Windows 10

天大地大妈咪最大 提交于 2021-02-07 05:12:32
问题 I'm trying to use Google Cloud Source Repository as a remote repository. I followed all the procedures to authenticate with the Google Cloud SDK authentication method that allows me to not use SSH keys (as they say). The problem is: I always get Permission denied (publickey) fatal: Could not read from remote repository. message when I try git push --all google . The gcloud command is in my Windows PATH ( C:\Users\xxxxx\AppData\Local\Google\Cloud SDK\ ;) and my user has enough permission as I

Kubernetes pods can't pull images from container registry (gcp)

会有一股神秘感。 提交于 2021-02-07 05:12:14
问题 I want to update my deployment on kubernetes with a new image which exists on 'eu.gcr.io' (same project), I have done this before. But now the pods fail to pull the image because they are not authorized to do so. This is the error that we get in the pod logs. Failed to pull image "eu.gcr.io/my-gcp-project/my-image:v1.009": rpc error: code = Unknown desc = Error response from daemon: unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid

How to set/get airflow variables which are in json format from command line

≡放荡痞女 提交于 2021-02-07 04:35:17
问题 I can't edit values of airflow variables in json format through cloud shell. I am using cloud shell to access my airflow variable params (in json format) and it gives me the complete json when i use following command: gcloud composer environments run composer001 --location us-east1 variables --get params However I want to edit one of the values inside json, how do i access that? I referred to the documentation and various other links on google however could only find how to set variables that