且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

引起:org.apache.http.conn.HttpHostConnectException: 连接到 localhost:7577 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] 失败:

更新时间:2021-12-14 22:08:23

当您尝试访问专用于所有流应用程序的运行时应用程序页面(基于上述异常消息)时,这是预期的.从 SCDF 2.x 开始,流应用程序由 Sp​​ring Cloud Skipper 管理,Spring Cloud Skipper 是另一个侦听端口 7577 的服务器组件.

This is expected as you try to access the Runtime Apps page (based on the above exception message) which is dedicated to all the streaming applications. Since SCDF 2.x, the stream applications are managed by Spring Cloud Skipper which is another server component that listens on port 7577.

如果您只运行批处理作业,则不必启动并运行 Skipper 服务器.任何命中 Skipper 服务器的 REST 端点显然都会抛出上述异常.

If you run the batch jobs only, then you don't have to get the Skipper server up and running. Any REST endpoints that hit the Skipper server would obviously throw an exception as above.