You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@phoenix.apache.org by Cheyenne Forbes <ch...@gmail.com> on 2017/05/24 15:02:01 UTC
Log from inside UDF
I want to output the steps of execution of my UDF but I cant find the logs,
I searched the region log in */usr/local/hbase/logs/*
....
*public static final Log LOG = LogFactory.getLog(MyUDF.class);*
....
* public boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr)
{ LOG.info("UDF execution started");*
....
Regards,
Cheyenne O. Forbes
Re: Log from inside UDF
Posted by Cheyenne Forbes <ch...@gmail.com>.
I have everything running inside a single docker container
https://github.com/CheyenneForbes/docker-apache-phoenix/blob/master/Dockerfile
could you look at my dockerfile and tell me what steps are missing to get
the logging?
Regards,
Cheyenne O. Forbes
On Thu, May 25, 2017 at 3:05 PM, Josh Elser <el...@apache.org> wrote:
> The log4j.properties which you have configured to be on the HBase
> RegionServer classpath. I don't know how you configured your system.
>
> On 5/25/17 2:02 PM, Cheyenne Forbes wrote:
>
>> Which one of the files? I found 4
>>
>> //usr/local/hbase-1.2.5/conf/log4j.properties
>> /usr/local/apache-phoenix-4.10.0-HBase-1.2-bin/bin/log4j.properties
>> /usr/local/apache-phoenix-4.10.0-HBase-1.2-bin/bin/sandbox-
>> log4j.properties
>> /usr/local/apache-phoenix-4.10.0-HBase-1.2-bin/bin/config/lo
>> g4j.properties/
>>
>> Regards,
>>
>> Cheyenne O. Forbes
>>
>> On Thu, May 25, 2017 at 11:31 AM, Josh Elser <elserj@apache.org <mailto:
>> elserj@apache.org>> wrote:
>>
>> Verify HBase's log4j.properties configuration is set to print log
>> messages for your class at info (check rootLogger level, log
>> threshold, and logger class/package level).
>>
>> On 5/24/17 11:02 AM, Cheyenne Forbes wrote:
>>
>> I want to output the steps of execution of my UDF but I cant
>> find the logs, I searched the region log in
>> //usr/local/hbase/logs//
>> ....
>> /public static final Log LOG = LogFactory.getLog(MyUDF.class);/
>> ....
>> / public boolean evaluate(Tuple tuple, ImmutableBytesWritable
>> ptr) {
>> LOG.info("UDF execution started");/
>> ....
>>
>> Regards,
>> Cheyenne O. Forbes
>>
>>
>>
Re: Log from inside UDF
Posted by Josh Elser <el...@apache.org>.
The log4j.properties which you have configured to be on the HBase
RegionServer classpath. I don't know how you configured your system.
On 5/25/17 2:02 PM, Cheyenne Forbes wrote:
> Which one of the files? I found 4
>
> //usr/local/hbase-1.2.5/conf/log4j.properties
> /usr/local/apache-phoenix-4.10.0-HBase-1.2-bin/bin/log4j.properties
> /usr/local/apache-phoenix-4.10.0-HBase-1.2-bin/bin/sandbox-log4j.properties
> /usr/local/apache-phoenix-4.10.0-HBase-1.2-bin/bin/config/log4j.properties/
>
> Regards,
>
> Cheyenne O. Forbes
>
> On Thu, May 25, 2017 at 11:31 AM, Josh Elser <elserj@apache.org
> <ma...@apache.org>> wrote:
>
> Verify HBase's log4j.properties configuration is set to print log
> messages for your class at info (check rootLogger level, log
> threshold, and logger class/package level).
>
> On 5/24/17 11:02 AM, Cheyenne Forbes wrote:
>
> I want to output the steps of execution of my UDF but I cant
> find the logs, I searched the region log in //usr/local/hbase/logs//
> ....
> /public static final Log LOG = LogFactory.getLog(MyUDF.class);/
> ....
> / public boolean evaluate(Tuple tuple, ImmutableBytesWritable
> ptr) {
> LOG.info("UDF execution started");/
> ....
>
> Regards,
> Cheyenne O. Forbes
>
>
Re: Log from inside UDF
Posted by Cheyenne Forbes <ch...@gmail.com>.
Which one of the files? I found 4
*/usr/local/hbase-1.2.5/conf/log4j.properties/usr/local/apache-phoenix-4.10.0-HBase-1.2-bin/bin/log4j.properties/usr/local/apache-phoenix-4.10.0-HBase-1.2-bin/bin/sandbox-log4j.properties/usr/local/apache-phoenix-4.10.0-HBase-1.2-bin/bin/config/log4j.properties*
Regards,
Cheyenne O. Forbes
On Thu, May 25, 2017 at 11:31 AM, Josh Elser <el...@apache.org> wrote:
> Verify HBase's log4j.properties configuration is set to print log messages
> for your class at info (check rootLogger level, log threshold, and logger
> class/package level).
>
> On 5/24/17 11:02 AM, Cheyenne Forbes wrote:
>
>> I want to output the steps of execution of my UDF but I cant find the
>> logs, I searched the region log in //usr/local/hbase/logs//
>> ....
>> /public static final Log LOG = LogFactory.getLog(MyUDF.class);/
>> ....
>> / public boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr) {
>> LOG.info("UDF execution started");/
>> ....
>>
>> Regards,
>> Cheyenne O. Forbes
>>
>
Re: Log from inside UDF
Posted by Josh Elser <el...@apache.org>.
Verify HBase's log4j.properties configuration is set to print log
messages for your class at info (check rootLogger level, log threshold,
and logger class/package level).
On 5/24/17 11:02 AM, Cheyenne Forbes wrote:
> I want to output the steps of execution of my UDF but I cant find the
> logs, I searched the region log in //usr/local/hbase/logs//
> ....
> /public static final Log LOG = LogFactory.getLog(MyUDF.class);/
> ....
> / public boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr) {
> LOG.info("UDF execution started");/
> ....
>
> Regards,
> Cheyenne O. Forbes