本文介绍了OOZIE:发生连接异常[java.ConnectException连接被拒绝(连接被拒绝)]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在以下人员的帮助下执行Oozie作业: 网址: www.safaribooksonline/library/view/apache-oozie/9781449369910/ch05.html
I'm trying to execute Oozie job with the help of URL: www.safaribooksonline/library/view/apache-oozie/9781449369910/ch05.html
执行时 oozie job -run -config target/example/job.properties
获取错误为:
Connection exception has occurred [ java.ConnectException Connection refused (Connection refused) ]. Trying after 1 sec. Retry count = 1 Connection exception has occurred [ java.ConnectException Connection refused (Connection refused) ]. Trying after 2 sec. Retry count = 2 Connection exception has occurred [ java.ConnectException Connection refused (Connection refused) ]. Trying after 4 sec. Retry count = 3 Connection exception has occurred [ java.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=hostname:11000/oozie
- 在oozie命令中使用-oozie参数. oozie job -oozie hostname:11000/oozie -run -config target/example/job.properties
- Set (export) the Oozie server as environment variable export OOZIE_URL=hostname:11000/oozie
- Use the -oozie parameter into the oozie command. oozie job -oozie hostname:11000/oozie -run -config target/example/job.properties
更多推荐
OOZIE:发生连接异常[java.net.ConnectException连接被拒绝(连接被拒绝)]
发布评论