[oozie] 우지 명령어 실행중 발생하는 Oozie URL 설정 오류
우지의 cli 명령어를 실행할 때 OOZIE_URL이 설정되어 있지 않고,
프로퍼티로 -oozie 값을 전달하지 않으면 다음의 오류가 발생한다.
java.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
이때는 우지 명령어를 실행할 때 -oozie 옵션을 주거나,
env에 OOZIE_URL 을 설정하면 된다.
# -oozie 옵션 설정
oozie job -oozie http://localhost:11000/oozie -config workflow.properties -run
# OOZIE_URL 설정
export OOZIE_URL=http://localhost:11000/oozie