更新时间:2023-01-11 09:38:29
调试com.twitter.hbc.httpclient.ClientBase
导致以下异常:org.apache.http.conn.ConnectTimeoutException: Connect to stream.twitter.com:80 timed out
根据发布在Twitter开发人员论坛上发生的原因是Apaches HttpClient 4.2中的错误.实际上,解析我项目上的依赖关系树表明,flink运行时对com.amazonaws:aws-java-sdk:1.81具有依赖关系,而com.amazonaws:aws-java-sdk:1.81再次与org.apache.httpcomponents:httpclient:4.2具有依赖关系.
According to a post on the Twitter Developer forum this happens because of a bug in Apaches HttpClient 4.2. And in fact, resolving the dependency tree on my project shows that the flink-runtime has a dependency on com.amazonaws:aws-java-sdk:1.81 which again has a dependency on org.apache.httpcomponents:httpclient:4.2.
将HttpClient 4.2.6添加到我的项目的依赖项中可以暂时解决该问题.
Adding HttpClient 4.2.6 to the dependencies of my project solved the problem temporarily.