Home > Database > Mysql Tutorial > Hadoop Pig Log

Hadoop Pig Log

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:30:03
Original
1300 people have browsed it

hadoop pig log 在调试udf的时候,log是很重要的一个东西,在hadoop pig 的 udf 中,可以访问到 log 的 import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory; 获取当前的 log 对像 private static final Log log = LogFact

hadoop pig log

在调试udf的时候,log是很重要的一个东西,在hadoop pig 的 udf 中,可以访问到 log 的

<code>import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; 
</code>
Copy after login

获取当前的 log 对像

<code>private static final Log log = LogFactory.getLog(xxx.class);
</code>
Copy after login

使用

<code>log.warn(String message);
log.debug(String message);
</code>
Copy after login
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template