如何从应用程序创建命令获取mesos marathon标准输出?

7xzttuei  于 2021-06-26  发布在  Mesos
关注(0)|答案(0)|浏览(183)

如果我使用带有错误命令(例如“badcommand”)的marathonui创建一个新应用程序,则没有与任务相关联的stdout/stderr(在marathonui或mesos ui中)。你怎么得到那个标准?
我在下面加入了marathon日志,但它只是说任务(test2)失败了。我用docker集装箱时,标准件很好用。我确实在文件里看到了一些信息,但是没有任何信息能说明这一点。
对于我的实际用例,我尝试运行bash脚本来创建一些数据库表。很明显,我可以创建一个dockerfile来扩展现有的dockerfile,但是从marathon运行脚本会更容易,因为如果我创建自己的带有敏感信息的dockerfile,那么我就不需要使用免费的dockerhub服务,而需要为私有托管付费。

I0210 17:07:12.341120     9 slave.cpp:4999] Launching executor test2.ba02dba1-d018-11e5-87cd-02420a013102 of framework 379ed26c-465f-4b0f-90f9-d058ad6d028b-0000 with resources cpus(*):0.1; mem(*):32 in work directory '/tmp/mesos/slaves/379ed26c-465f-4b0f-90f9-d058ad6d028b-S0/frameworks/379ed26c-465f-4b0f-90f9-d058ad6d028b-0000/executors/test2.ba02dba1-d018-11e5-87cd-02420a013102/runs/ef4db108-dce3-45f6-b273-11db38289e24'
I0210 17:07:12.341696     8 docker.cpp:735] No container info found, skipping launch
I0210 17:07:12.341958     9 slave.cpp:1628] Queuing task 'test2.ba02dba1-d018-11e5-87cd-02420a013102' for executor 'test2.ba02dba1-d018-11e5-87cd-02420a013102' of framework 379ed26c-465f-4b0f-90f9-d058ad6d028b-0000
E0210 17:07:12.342250     9 slave.cpp:3466] Container 'ef4db108-dce3-45f6-b273-11db38289e24' for executor 'test2.ba02dba1-d018-11e5-87cd-02420a013102' of framework 379ed26c-465f-4b0f-90f9-d058ad6d028b-0000 failed to start: None of the enabled containerizers (docker) could create a container for the provided TaskInfo/ExecutorInfo message
E0210 17:07:12.343215     9 slave.cpp:3537] Termination of executor 'test2.ba02dba1-d018-11e5-87cd-02420a013102' of framework 379ed26c-465f-4b0f-90f9-d058ad6d028b-0000 failed: Unknown container: ef4db108-dce3-45f6-b273-11db38289e24
I0210 17:07:12.343487     9 slave.cpp:2762] Handling status update TASK_FAILED (UUID: 02327ed1-3b62-47ae-860a-29a055df99a6) for task test2.ba02dba1-d018-11e5-87cd-02420a013102 of framework 379ed26c-465f-4b0f-90f9-d058ad6d028b-0000 from @0.0.0.0:0
W0210 17:07:12.343763    11 docker.cpp:998] Ignoring updating unknown container: ef4db108-dce3-45f6-b273-11db38289e24
I0210 17:07:12.344077    10 status_update_manager.cpp:322] Received status update TASK_FAILED (UUID: 02327ed1-3b62-47ae-860a-29a055df99a6) for task test2.ba02dba1-d018-11e5-87cd-02420a013102 of framework 379ed26c-465f-4b0f-90f9-d058ad6d028b-0000
I0210 17:07:12.344272    10 status_update_manager.cpp:826] Checkpointing UPDATE for status update TASK_FAILED (UUID: 02327ed1-3b62-47ae-860a-29a055df99a6) for task test2.ba02dba1-d018-11e5-87cd-02420a013102 of framework 379ed26c-465f-4b0f-90f9-d058ad6d028b-0000
I0210 17:07:12.369632    10 slave.cpp:3087] Forwarding the update TASK_FAILED (UUID: 02327ed1-3b62-47ae-860a-29a055df99a6) for task test2.ba02dba1-d018-11e5-87cd-02420a013102 of framework 379ed26c-465f-4b0f-90f9-d058ad6d028b-0000 to master@192.168.8.101:5050
I0210 17:07:12.382553     8 status_update_manager.cpp:394] Received status update acknowledgement (UUID: 02327ed1-3b62-47ae-860a-29a055df99a6) for task test2.ba02dba1-d018-11e5-87cd-02420a013102 of framework 379ed26c-465f-4b0f-90f9-d058ad6d028b-0000
I0210 17:07:12.382820     8 status_update_manager.cpp:826] Checkpointing ACK for status update TASK_FAILED (UUID: 02327ed1-3b62-47ae-860a-29a055df99a6) for task test2.ba02dba1-d018-11e5-87cd-02420a013102 of framework 379ed26c-465f-4b0f-90f9-d058ad6d028b-0000
I0210 17:07:12.414659     8 slave.cpp:3657] Cleaning up executor 'test2.ba02dba1-d018-11e5-87cd-02420a013102' of framework 379ed26c-465f-4b0f-90f9-d058ad6d028b-0000

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题