Support Questions

Find answers, ask questions, and share your expertise

java.lang.IllegalArgumentException: Oozie URL is not available neither in command option or in the environment

avatar
Expert Contributor

While running oozie jobs command from CLI I am getting below error.Can any one tell me the issue?

ava.lang.IllegalArgumentException: Oozie URL is not available neither in command option or in the environment at org.apache.oozie.cli.OozieCLI.getOozieUrl(OozieCLI.java:711) at org.apache.oozie.cli.OozieCLI.createXOozieClient(OozieCLI.java:911) at org.apache.oozie.cli.OozieCLI.jobsCommand(OozieCLI.java:1544) at org.apache.oozie.cli.OozieCLI.processCommand(OozieCLI.java:676) at org.apache.oozie.cli.OozieCLI.run(OozieCLI.java:626) at org.apache.oozie.cli.OozieCLI.main(OozieCLI.java:225) Oozie URL is not available neither in command option or in the environment

1 ACCEPTED SOLUTION

avatar
Master Guru

@Rajib Mandal

Can you please run below command to export Oozie URL and run oozie CLI to see if it works fine?

export OOZIE_URL=http://<your-oozie-server-hostname-or-ip>:11000/oozie

This could be because OOZIE_URL is commented in your /etc/oozie/conf/oozie-env.sh

View solution in original post

7 REPLIES 7

avatar
Master Guru

@Rajib Mandal

Can you please run below command to export Oozie URL and run oozie CLI to see if it works fine?

export OOZIE_URL=http://<your-oozie-server-hostname-or-ip>:11000/oozie

This could be because OOZIE_URL is commented in your /etc/oozie/conf/oozie-env.sh

avatar
Expert Contributor

@ Kuldeep Kulkarni

After running the command, I am getting below error

Connection exception has occurred [ java.net.ConnectException Connection refused ]. Trying after 1 sec. Retry count = 1 Connection exception has occurred [ java.net.ConnectException Connection refused ]. Trying after 2 sec. Retry count = 2 Connection exception has occurred [ java.net.ConnectException Connection refused ]. Trying after 4 sec. Retry count = 3 Connection exception has occurred [ java.net.ConnectException 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

avatar
Expert Contributor

@ Kuldeep Kulkarni : Issue got resolved by uncommenting export OOZIE_CONFIG_FILE=oozie-site.xml in /etc/oozie/conf/oozie-env.sh

avatar
Expert Contributor

@ Kuldeep Kulkarni Also tried to change the /etc/oozie/conf/oozie-env.sh file.After doing the necessary changes ,I restarted the service . I found all the changes reverted. Can you please let me know what went wrong here?

avatar
Master Guru

@Rajib Mandal - You need to modify oozie-env.sh via Ambari. Can you please modify it from Ambari UI and restart required services again? It should be get reverted then.

avatar
New Contributor

@ Kuldeep Kulkarni could you please let me know how to update oozie-env.sh file using ambari ui. Not able to see even /etc directory by loging using maria_dev login id. please help

avatar
New Contributor

what was the job