首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未能提交JobGraph Apache

未能提交JobGraph Apache
EN

Stack Overflow用户
提问于 2018-02-26 07:21:58
回答 3查看 4.3K关注 0票数 1

出于各种原因,我试图在构建Flink的github主分支之后运行下面的简单代码。下面是一个例外,我想知道在端口9065上运行的是什么?以及如何修正这个异常?

代码语言:javascript
复制
 val dataStream = senv.fromElements(1, 2, 3, 4)
 dataStream.countWindowAll(2).sum(0).print()
 senv.execute("My streaming program")

以下是例外情况

代码语言:javascript
复制
Caused by: org.apache.flink.runtime.client.JobSubmissionException: Failed to submit JobGraph.
  at org.apache.flink.client.program.rest.RestClusterClient.lambda$submitJob$18(RestClusterClient.java:306)
  at java.util.concurrent.CompletableFuture.uniExceptionally(CompletableFuture.java:870)
  at java.util.concurrent.CompletableFuture$UniExceptionally.tryFire(CompletableFuture.java:852)
  at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
  at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977)
  at org.apache.flink.runtime.rest.RestClient.lambda$submitRequest$222(RestClient.java:196)
  at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:680)
  at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:603)
  at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:563)
  at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:424)
  at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(AbstractNioChannel.java:268)
  at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:284)
  at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:528)
  at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
  at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
  at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
  at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111)
  at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
  at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.concurrent.CompletionException: java.net.ConnectException: Connection refused: localhost/127.0.0.1:9065
  at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)
  at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)
  at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:943)
  at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:926)
  ... 16 more
Caused by: java.net.ConnectException: Connection refused: localhost/127.0.0.1:9065
  at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
  at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
  at org.apache.flink.shaded.netty4.io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:224)
  at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:281)

我以如下方式从源代码构建它(只需遵循Flink github页面上的说明):

代码语言:javascript
复制
git clone https://github.com/apache/flink.git
cd flink
mvn clean package -DskipTests 
cd build-target
./bin/start-scala-shell.sh local
EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2018-02-27 09:28:31

底层分布式运行时目前在主服务器中进行了大量的工作。从1.5开始,默认运行时将称为FLIP6,因此某些部分可能无法工作。我认为,如果您能够为此创建一个JIRA票据,那将是非常有益的。

为了添加运行在9065端口上的内容,在新的体系结构中,它是Dispatcher的默认端口。

票数 0
EN

Stack Overflow用户

发布于 2020-05-01 22:02:42

我也有同样的例外。我的问题是,当我在机器上启动带有码头映像的集群时,出现了端口冲突。因此,我将flink配置文件中rest的端口更改为使用8084而不是8081。当我这样做时,集群将正确启动,但我无法提交作业。当我终止冲突的过程并将端口恢复到8081时,我可以成功地提交作业。

票数 0
EN

Stack Overflow用户

发布于 2021-04-09 08:34:01

我也有同样的错误。使用jdk 1.8作为flink 1.7.2

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48983319

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档