HADOOP_LOG_DIR is used to set hadoop.log.dir (see bin/hadoop).  It is passed
to a JVM via the -D java flag (or set it in the log4j.properties file).

The best way for you would be to set this variable in bin/hadoop-env.sh
(essentially, uncomment the prepared stub).

Alex K

On Mon, Mar 29, 2010 at 10:55 PM, Amareshwari Sri Ramadasu <
[email protected]> wrote:

> Hadoop.log.dir is not config parameter, it is a system property.
> You can specify the log directory in the environment variable
> HADOOP_LOG_DIR.
>
> Thanks
> Amareshwari
>
> On 3/30/10 11:17 AM, "Vasilis Liaskovitis" <[email protected]> wrote:
>
> Hi all,
>
> is  there a config option that controls placement of all hadoop logs?
> I 'd like to put all hadoop logs under a specific directory e.g. /tmp.
> on the namenode and all datanodes.
>
> Is hadoop.log.dir the right config? Can I change this in the
> log4j.properties file, or pass it e.g. in the JVM opts as
> "-Dhadoop.log.dir=/tmp" ?
> I am using hadoop-0.20.1 or hadoop-0.20.2.
>
> thanks,
>
> - Vasilis
>
>

Reply via email to