Created 08-05-2016 05:10 AM
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
Created 08-05-2016 05:15 AM
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
Created 08-05-2016 05:15 AM
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
Created 08-05-2016 05:47 AM
@ 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
Created 08-05-2016 07:34 AM
@ Kuldeep Kulkarni : Issue got resolved by uncommenting export OOZIE_CONFIG_FILE=oozie-site.xml in /etc/oozie/conf/oozie-env.sh
Created 08-05-2016 06:11 AM
@ 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?
Created 08-07-2016 06:45 PM
@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.
Created 07-12-2017 11:55 PM
@ 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
Created 08-05-2016 07:11 AM
what was the job