Slow response from Python pushing data to BigQuery - Stack Overflow

We have a Python process which reads a JSON file and pushes the data held therein to a BigQuery table.

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 1
Add a comment  | 

1 Answer 1

Reset to default 0

It 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?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744890494a4599382.html

相关推荐

  • Slow response from Python pushing data to BigQuery - Stack Overflow

    We have a Python process which reads a JSON file and pushes the data held therein to a BigQuery table.

    2天前
    60

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信