OOZIE:发生连接异常[java.net.ConnectException连接被拒绝(连接被拒绝)] [英] OOZIE : Connection exception has occurred [ java.net.ConnectException Connection refused (Connection refused) ]

查看:657
本文介绍了OOZIE:发生连接异常[java.net.ConnectException连接被拒绝(连接被拒绝)]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在以下人员的帮助下执行Oozie作业: 网址: https://www.safaribooksonline.com/library/view/apache-oozie/9781449369910/ch05.html

I'm trying to execute Oozie job with the help of URL: https://www.safaribooksonline.com/library/view/apache-oozie/9781449369910/ch05.html

执行时 oozie job -run -config target/example/job.properties

获取错误为:

Connection exception has occurred [ java.net.ConnectException Connection refused (Connection refused) ]. Trying after 1 sec. Retry count = 1
Connection exception has occurred [ java.net.ConnectException Connection refused (Connection refused) ]. Trying after 2 sec. Retry count = 2
Connection exception has occurred [ java.net.ConnectException Connection refused (Connection refused) ]. Trying after 4 sec. Retry count = 3
Connection exception has occurred [ java.net.ConnectException Connection refused (Connection refused) ]. Trying after 8 sec. Retry count = 4
Error: IO_ERROR : java.io.IOException: Error while connecting Oozie server. No of retries = 4. Exception = Connection refused (Connection refused)

任何想法;为什么连接被拒绝?

Any idea; why connection is getting refused?

推荐答案

它无法从Oozie客户端(命令行)连接到Oozie服务器.找到Oozie服务器的URL,然后执行以下操作之一:

It is not able to connect to the Oozie server from Oozie client (command line). Find the Oozie server url and do one of the following:

  • 将Oozie服务器设置(导出)为环境变量export OOZIE_URL=http://hostname:11000/oozie
  • 在oozie命令中使用-oozie参数. oozie job -oozie http://hostname:11000/oozie -run -config target/example/job.properties
  • Set (export) the Oozie server as environment variable export OOZIE_URL=http://hostname:11000/oozie
  • Use the -oozie parameter into the oozie command. oozie job -oozie http://hostname:11000/oozie -run -config target/example/job.properties

这篇关于OOZIE:发生连接异常[java.net.ConnectException连接被拒绝(连接被拒绝)]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆