Hey,
If the Oozie_URL environment variable has not been set then the Oozie will use the default URL specified in
oozie-client-env.sh
If the -oozie option is not specified, the oozie CLI will look for the OOZIE_URL environment variable and uses it if set.
If the option is not provided and the environment variable is not set, the oozie CLI will fail.