Accessing the Oozie server with the Oozie Client
The Oozie client is a command-line utility that interacts with the Oozie server using the Oozie web-services API.
-
Use the
/usr/bin/oozie
script to run the Oozie client.For example, if you want to invoke the client on the same machine where the Oozie server is running:$ oozie admin -oozie https://<oozie_server>:11443/oozie -status System mode: NORMAL
-
To make it convenient to use this utility, set the environment variable
OOZIE_URL
to point to the URL of the Oozie server. Then you can skip the-oozie
option.For example, if you want to invoke the client on the same machine where the Oozie server is running, set theOOZIE_URL
tohttps://<oozie_server>:11443/oozie
.$ export OOZIE_URL=https://<oozie_server>:11443/oozie $ oozie admin -version Oozie server build version: 4.0.0-cdh5.0.0
-
If you want to access Oozie client through Knox:
export OOZIE_URL=https://<knox_host>:<knox_port>/gateway/cdp-proxy-api/oozie
When you access Oozie client through Knox, you need to specify a username and password in the command line as Knox needs it:export OOZIE_URL=https://<knox_host>:<knox_port>/gateway/cdp-proxy-api/oozie oozie admin -version -auth BASIC -username <username> -password <password>