Home >Database >Mysql Tutorial >Hadoop Pig Log

Hadoop Pig Log

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 16:30:031297browse

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>

获取当前的 log 对像

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

使用

<code>log.warn(String message);
log.debug(String message);
</code>
Statement:
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