更新时间:2024-08-03 GMT+08:00

查看Oozie应用调测结果

操作场景

Oozie样例工程运行完成后可以通过控制台查看输出结果。

操作步骤

控制台显示运行结果会有如下成功信息:

log4j:WARN No appenders could be found for logger (com.huawei.hadoop.security.LoginUtil).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/temp/newClientSec/oozie-example/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/temp/newClientSec/oozie-example/lib/slf4j-simple-1.7.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
current user is developuser@<系统域名> (auth:KERBEROS)
login user is developuser@<系统域名> (auth:KERBEROS)
cluset status is true
Warning: Could not get charToByteConverterClass!
Workflow job submitted: 0000071-160729120057089-oozie-omm-W
Workflow job running ...0000071-160729120057089-oozie-omm-W
Workflow job running ...0000071-160729120057089-oozie-omm-W
Workflow job running ...0000071-160729120057089-oozie-omm-W
Workflow job running ...0000071-160729120057089-oozie-omm-W
Workflow job running ...0000071-160729120057089-oozie-omm-W
Workflow job running ...0000071-160729120057089-oozie-omm-W
Workflow job running ...0000071-160729120057089-oozie-omm-W
Workflow job running ...0000071-160729120057089-oozie-omm-W
Workflow job running ...0000071-160729120057089-oozie-omm-W
Workflow job completed ...0000071-160729120057089-oozie-omm-W
Workflow id[0000071-160729120057089-oozie-omm-W] status[SUCCEEDED]
-----------finish Oozie -------------------

同时在HDFS上生成目录“/user/developuser/examples/output-data/map-reduce”,包括如下两个文件:

  • _SUCCESS
  • part-00000

可以通过Hue的文件浏览器或者通过HDFS如下命令行查看:

hdfs dfs -ls /user/developuser/examples/output-data/map-reduce

在Windows下面执行的时候可能会出现下面的异常,但是不影响业务:

  java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.