admin管理员组文章数量:1405347
We have a Python process which reads a JSON file and pushes the data held therein to a BigQuery table. The files are small and normally would process very quickly. All of a sudden the process has really slowed down. The python resides in a VM which is within Big Query. What we have noticed in the BigQuery logs is a lot of errors similar to the following:
{
"insertId": "s=3bc18ce95c384588adb5aea97d1ab8fc;i=c645e;b=8f0641e52f4d431db01b9ea986ded58e;m=4ac5bf55c5b;t=62fc1655c06a6;x=91a9a97343928f96",
"jsonPayload": {
"message": "2025-03-07T14:25:35.9871Z OSConfigAgent Error main.go:88: code: \"Unauthenticated\", message: \"Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See .\", details: []"
},
We're not sure if this is related.
I should clarify that the script runs and does eventually push the data but it is very slow do to so, it doesn't actually fail.
We have tried restarting the VM and the process itself. What can we try next?
We have a Python process which reads a JSON file and pushes the data held therein to a BigQuery table. The files are small and normally would process very quickly. All of a sudden the process has really slowed down. The python resides in a VM which is within Big Query. What we have noticed in the BigQuery logs is a lot of errors similar to the following:
{
"insertId": "s=3bc18ce95c384588adb5aea97d1ab8fc;i=c645e;b=8f0641e52f4d431db01b9ea986ded58e;m=4ac5bf55c5b;t=62fc1655c06a6;x=91a9a97343928f96",
"jsonPayload": {
"message": "2025-03-07T14:25:35.9871Z OSConfigAgent Error main.go:88: code: \"Unauthenticated\", message: \"Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google/identity/sign-in/web/devconsole-project.\", details: []"
},
We're not sure if this is related.
I should clarify that the script runs and does eventually push the data but it is very slow do to so, it doesn't actually fail.
We have tried restarting the VM and the process itself. What can we try next?
Share Improve this question edited Mar 8 at 17:20 halfer 20.4k19 gold badges109 silver badges202 bronze badges asked Mar 8 at 17:08 KenKen 11 Answer
Reset to default 0It looks like the issue might be related to authentication. The logs show an 'Unauthenticated' error, which could be slowing things down. Try checking authentication with gcloud auth
and make sure the VM's service account has the right permissions. Also, have you tested the network to see if there are any delays?
本文标签: Slow response from Python pushing data to BigQueryStack Overflow
版权声明:本文标题:Slow response from Python pushing data to BigQuery - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744890493a2630750.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论