【记录】flink读取hive,只能读取表结构,无法读取数据

在尝试使用Flink从Hive读取数据时,遇到只能获取表结构而无法读取实际数据的问题。程序启动成功,但在执行时抛出'Failed to fetch next result'的异常,可能与Flink的CollectResultFetcher相关,导致Job执行失败。
摘要由CSDN通过智能技术生成

2020-11-26 10:31:31,611 INFO org.apache.flink.yarn.YarnClusterDescriptor [] - The Flink YARN session cluster has been started in detached mode. In order to stop Flink gracefully, use the following command:
$ echo “stop” | ./bin/yarn-session.sh -id application_1605580935655_0025
If this should not be possible, then you can also kill Flink via YARN’s web interface or via:
$ yarn application -kill application_1605580935655_0025
Note that killing Flink might not clean up all job artifacts and temporary files.
2020-11-26 10:31:31,611 INFO org.apache.flink.yarn.YarnClusterDescriptor [] - Found Web Interface yyxx-st-namenode01:53926 of application ‘application_1605580935655_0025’.
Job has been submitted with JobID bcbc53198785fa9dec8f87c09758a7c1
±-------------------------------+
| mm_mobilepart |
±-------------------------------+


The program finished with the following exception:

org.apache.flink.client.program.ProgramInvocationException: The main method caused an error: Failed to fetch next result
at org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:302)
at org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:198)
at org.apache.flink.client.ClientUtils.executeProgram(ClientUtils.java:149)
at org.apache.flink.client.cli.CliFrontend.executeProgram(CliFrontend.java:699)
at org.apache.flink.client.cli.CliFrontend.run(CliFrontend.java:232)
at org.apache.flink.client.cli.CliFrontend.parseParameters(CliFrontend.java:916)
at org.apache.flink.client.cli.CliFrontend.lambda$main 10 ( C l i F r o n t e n d . j a v a : 992 ) a t j a v a . s e c u r i t y . A c c e s s C o n t r o l l e r . d o P r i v i l e g e d ( N a t i v e M e t h o d ) a t j a v a x . s e c u r i t y . a u t h . S u b j e c t . d o A s ( S u b j e c t . j a v a : 422 ) a t o r g . a p a c h e . h a d o o p . s e c u r i t y . U s e r G r o u p I n f o r m a t i o n . d o A s ( U s e r G r o u p I n f o r m a t i o n . j a v a : 1917 ) a t o r g . a p a c h e . f l i n k . r u n t i m e . s e c u r i t y . c o n t e x t s . H a d o o p S e c u r i t y C o n t e x t . r u n S e c u r e d ( H a d o o p S e c u r i t y C o n t e x t . j a v a : 41 ) a t o r g . a p a c h e . f l i n k . c l i e n t . c l i . C l i F r o n t e n d . m a i n ( C l i F r o n t e n d . j a v a : 992 ) C a u s e d b y : j a v a . l a n g . R u n t i m e E x c e p t i o n : F a i l e d t o f e t

评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值