Re: log4j.properties in jar

2015-03-31 Thread Emre Sevinc
Hello Udit,

Yes, what you ask is possible. If you follow the Spark documentation and
tutorial about how to build stand-alone applications, you can see that it
is possible to build a stand-alone, über-JAR file that includes everything.

For example, if you want to suppress some messages by modifying log4j in
unit tests, you can do the following:
http://stackoverflow.com/questions/27248997/how-to-suppress-spark-logging-in-unit-tests/2736#2736

Hope this helps.

--
Emre Sevinç
http://www.bigindustries.be/


On Mon, Mar 30, 2015 at 10:24 PM, Udit Mehta  wrote:

> Hi,
>
>
> Is it possible to put the log4j.properties in the application jar such
> that the driver and the executors use this log4j file. Do I need to specify
> anything while submitting my app so that this file is used?
>
> Thanks,
> Udit
>



-- 
Emre Sevinc


log4j.properties in jar

2015-03-30 Thread Udit Mehta
Hi,


Is it possible to put the log4j.properties in the application jar such that
the driver and the executors use this log4j file. Do I need to specify
anything while submitting my app so that this file is used?

Thanks,
Udit