我正试图在url的帮助下执行oozie作业: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)
任何想法;为什么连接被拒绝?
1条答案
按热度按时间brc7rcf01#
它无法从oozie客户端(命令行)连接到oozie服务器。找到oozie服务器url并执行以下操作之一:
将oozie服务器设置(导出)为环境变量
export OOZIE_URL=http://hostname:11000/oozie
使用-oozie
参数输入到oozie命令中。oozie job -oozie http://hostname:11000/oozie -run -config target/example/job.properties