OOZIE : Connection exception has occurred [ java.net.ConnectException Connection refused (Connection refused) ]

邮差的信 提交于 2019-12-08 11:19:27

问题


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

While executing oozie job -run -config target/example/job.properties

Getting error as :

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?


回答1:


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:

  • 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


来源:https://stackoverflow.com/questions/44839025/oozie-connection-exception-has-occurred-java-net-connectexception-connection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!