OOZIE : Connection exception has occurred [ java.n

2019-06-14 14:05发布

问题:

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