flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Till Rohrmann <till.rohrm...@gmail.com>
Subject Re: how to specify the log level?
Date Mon, 10 Nov 2014 17:43:11 GMT
Hi Attila,

if you want to reference a file outside of the jar, you usually have
to specify the complete URI with the "file:" schema. So try
-Dlog4j.configuration=file:/home/sudocker/git/incubator-flink/flink-addons/flink-spargel/src/main/resources/log4j.properties.
I hope this solves your problem.

Cheers,

Till

On Mon, Nov 10, 2014 at 11:10 AM, Attila BernĂ¡th
<bernath.athos@gmail.com> wrote:
> Sorry to bother about this again: what do I miss here?
>
> If I also set the JVM argument (in eclipse
> Run/Configurations/Arguments/VM arguments):
> -Dlog4j.configuration="/home/sudocker/git/incubator-flink/flink-addons/flink-spargel/src/main/resources/log4j.properties"
> then I get the warning:
> ***************
> log4j:WARN No appenders could be found for logger
> (org.apache.flink.runtime.blob.BlobServer).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
> for more info.
> ***************
> The file contains one line:
> log4j.rootLogger=OFF
>
> Attila
>
>
>
> 2014-11-07 14:29 GMT+01:00 Attila BernĂ¡th <bernath.athos@gmail.com>:
>> I have a solution.
>>
>>> Assume I stand in the root directory of the incubator-flink repo.
>>
>> mkdir flink-addons/flink-spargel/src/main/resources
>> cp ./flink-examples/flink-java-examples/src/main/resources/log4j.properties
>> flink-addons/flink-spargel/src/main/resources/
>>
>> (This file contains 1 line:
>> log4j.rootLogger=OFF
>> )
>>
>> This prevents any log outputs.
>>
>> However, if I also set the JVM argument (in eclipse
>> Run/Configurations/Arguments/VM arguments):
>> -Dlog4j.configuration="/home/sudocker/git/incubator-flink/flink-addons/flink-spargel/src/main/resources/log4j.properties"
>> then I get the warning:
>> log4j:WARN No appenders could be found for logger
>> (org.apache.flink.runtime.blob.BlobServer).
>> log4j:WARN Please initialize the log4j system properly.
>> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
>> for more info.
>>
>>
>> Attila

Mime
View raw message