Oozie报错Unknown rpc kind in rpc headerRPC_WRITABLE

报错信息

ACTION[0000001-191110122545583-oozie-ben-W@shell-node] Error starting action [shell-node]. ErrorType [TRANSIENT], ErrorCode [JA009], Message [JA009: Unknown rpc kind in rpc headerRPC_WRITABLE]
org.apache.oozie.action.ActionExecutorException: JA009: Unknown rpc kind in rpc headerRPC_WRITABLE
	at org.apache.oozie.action.ActionExecutor.convertExceptionHelper(ActionExecutor.java:418)
	at org.apache.oozie.action.ActionExecutor.convertException(ActionExecutor.java:392)
	at org.apache.oozie.action.hadoop.JavaActionExecutor.submitLauncher(JavaActionExecutor.java:990)
	at org.apache.oozie.action.hadoop.JavaActionExecutor.start(JavaActionExecutor.java:1145)
	at org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:228)
	at org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:63)
	at org.apache.oozie.command.XCommand.call(XCommand.java:281)
	at org.apache.oozie.service.CallableQueueService$CompositeCallable.call(CallableQueueService.java:323)
	at org.apache.oozie.service.CallableQueueService$CompositeCallable.call(CallableQueueService.java:252)
	at org.apache.oozie.service.CallableQueueService$CallableWrapper.run(CallableQueueService.java:174)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

原因

提交任务后发现,Yarn的页面没有任何反应,没有接收到任务。Oozie一直卡在Running状态。
查找相关资料后,发现原因是Oozie提交Job时,调用了Hadoop1.x版本的提交方式。Hadoop2.x版本将MapReduce和Yarn拆分解耦,因此无法提交Job到Yarn上运行。

参考链接

https://stackoverflow.com/questions/27606807/how-can-i-submit-a-cascading-job-to-a-remote-yarn-cluster-from-java

http://www.blogjava.net/liuguly/archive/2016/12/06/432055.html

解决

  1. 检查Oozie/libext下是否存在MR1的jar包
    [ben@hadoop102 libext]$ ls | grep mr1
    hadoop-client-2.5.0-mr1-cdh5.3.6.jar
    hadoop-core-2.5.0-mr1-cdh5.3.6.jar
    
    果然,始作俑者
  2. 将mr1的文件删除
  3. 运行命令重新打包war包
    [ben@hadoop102 oozie-4.0.0-cdh5.3.6]$ bin/oozie-setup.sh prepare-war
    
  4. 启动Oozie服务并重新提交任务即可
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值