Google Cloud Dataflow实例的图像

编程入门 行业动态 更新时间:2024-10-28 08:18:44
本文介绍了Google Cloud Dataflow实例的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

当我运行Dataflow作业时,它将使用我的小程序包(setup.py或requirements.txt)并将其上载以在Dataflow实例上运行.

When I run Dataflow job, it takes my small package (setup.py or requirements.txt) and uploads it to run on the Dataflow instances.

但是Dataflow实例上实际正在运行什么?我最近有一个堆栈跟踪:

But what is actually running on the Dataflow instance? I got a stacktrace recently:

File "/usr/lib/python2.7/httplib.py", line 1073, in _send_request self.endheaders(body) File "/usr/lib/python2.7/httplib.py", line 1035, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 877, in _send_output msg += message_body TypeError: must be str, not unicode [while running 'write to datastore/Convert to Mutation']

但是从理论上讲,如果我正在执行str += unicode,则表明我可能没有运行此 Python修补程序?您能否指向这些作业正在运行的docker映像,这样我才能知道我正在使用的Python版本,并确保我在这里没有打错树?

But in theory, if I'm doing str += unicode, it implies I might not be running this Python patch? Can you point to the docker image that these jobs are running, so I can know what version of Python I'm working with, and make sure I'm not barking up the wrong tree here?

云控制台向我显示了实例模板,该实例模板似乎指向 dataflow-dataflow-owned-resource-20170308-rc02 ,但似乎我无权查看.来源在线吗?

The cloud console shows me the instance template, which seems to point to dataflow-dataflow-owned-resource-20170308-rc02, but it seems I don't have permission to look at it. Is the source for it online anywhere?

推荐答案

尚未测试(也许有一种更简单的方法),但是类似的方法可能会解决问题:

Haven't tested (and maybe there is an easier way), but something like this might do the trick:

从控制台
  • ssh进入数据流工作器之一
  • 运行docker ps获取容器ID
  • 运行docker inspect <container_id>
  • 从字段Image
  • 中获取图像ID
  • 运行docker history --no-trunc <image>
  • ssh into one of the Dataflow workers from the console
  • run docker ps to get the container id
  • run docker inspect <container_id>
  • grab the image id from the field Image
  • run docker history --no-trunc <image>
  • 然后,您应该找到想要的东西.

    Then you should find what you are after.

    更多推荐

    Google Cloud Dataflow实例的图像

    本文发布于:2023-11-24 02:50:17,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1623698.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:实例   图像   Google   Cloud   Dataflow

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!