Hi Archit,

Are you using spark-submit? If so, can you try adding the following to
its command line:

  --files /dir/log4j.properties

I tested that locally with the master branch and it works, but I don't
have a 1.0.x install readily available for me to test at the moment.
Handling of SPARK_LOG4J_CONF should also be fixed on master, but I
don't remember what was its status in the 1.0 branch...


On Tue, Jul 29, 2014 at 11:37 PM, Archit Thakur
<archit279tha...@gmail.com> wrote:
> Hi,
>
> I want to manage logging of containers when I run Spark through YARN. I
> checked there is a environment variable exposed to custom log4j.properties.
>
> Setting SPARK_LOG4J_CONF to "/dir/log4j.properties" should ideally make
> containers use
> "/dir/log4j.properties" file for logging. This doesn't seem working.
>
> Also, there is a log4j.properties file present in the Spark assembly and I
> guess it is picking that only.
>
> Quick Google gave me this: https://issues.apache.org/jira/browse/SPARK-2007
>
> Is this functnality broken/not working yet?
> Or I m mistaken somewhere?
>
> Thanks.
> Archit.



-- 
Marcelo

Reply via email to