flink部署-低级错误记录

项目场景:

flink-yarn模式 配置,启动测试


问题1

Flink Application Mode模式执行任务时出错

 The program finished with the following exception:

java.lang.IllegalStateException: No ClusterClientFactory found. If you were targeting a Yarn cluster, please make sure to export the HADOOP_CLASSPATH environment variable or have hadoop in your classpath. For more information refer to the "Deployment" section of the official Apache Flink documentation.
        at org.apache.flink.client.deployment.DefaultClusterClientServiceLoader.getClusterClientFactory(DefaultClusterClientServiceLoader.java:83)
        at org.apache.flink.client.deployment.application.cli.ApplicationClusterDeployer.run(ApplicationClusterDeployer.java:61)
        at org.apache.flink.client.cli.CliFrontend.runApplication(CliFrontend.java:213)
        at org.apache.flink.client.cli.CliFrontend.parseAndRun(CliFrontend.java:1057)
        at org.apache.flink.client.cli.CliFrontend.lambda$main$10(CliFrontend.java:1132)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1729)
        at org.apache.flink.runtime.security.contexts.HadoopSecurityContext.runSecured(HadoopSecurityContext.java:41)
        at org.apache.flink.client.cli.CliFrontend.main(CliFrontend.java:1132)
----------------------------------------------------------------------------

在这里插入图片描述

问题1原因:

bin/flink run-application -t yarn-appliction -c com.atguigu.flink.chapter01.Flink02_UnBounded_WC_Lambda ./flink211125-1.0-SNAPSHOT.jar

执行上述命令时,手打打少了一个a,导致奇怪的错误。
正确命令如下:
bin/flink run-application -t yarn-application -c com.atguigu.flink.chapter01.Flink02_UnBounded_WC_Lambda ./flink211125-1.0-SNAPSHOT.jar

问题2

配置了flink-yarn高可用后,提交任务测试。

bin/flink run-application -t yarn-application -c com.atguigu.flink.chapter01.Flink02_UnBounded_WC_Lambda ./flink211125-1.0-SNAPSHOT.jar

之后一直处于 ACCEPTED 状态。

Deploying cluster, current state ACCEPTED
Deployment took more than 60 seconds. Please check if the requested resources are available in the YARN cluster

在这里插入图片描述

问题2原因

配置了高可用以后要起zookeeper, 否则一直连不上zookeeper,会一直是ACCEPTED状态,超过60秒还会提示你检查yarn集群资源够不够。

原因就是:配了高可用但没有起zookeeper,把zookeeper起了之后问题解决。


  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值