You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@drill.apache.org by Christopher Matta <cm...@mapr.com> on 2014/11/18 20:12:05 UTC

Setting a log file

Is there a method for setting a specific log file location for a session?

Chris Matta
cmatta@mapr.com
215-701-3146

Re: Setting a log file

Posted by Steven Phillips <sp...@maprtech.com>.
It is currently not possible to set the log output as session option. It
must be set at the time the drillbit starts up.

On Tue, Nov 18, 2014 at 2:32 PM, Xiao Meng <xi...@cs.sfu.ca> wrote:

> You can set the DRILL_LOG_DIR environment variable when starting a
> drillbit.
> Check comments about environment variable in `bin/drillbit.sh`.
>
> On Tue Nov 18 2014 at 2:27:08 PM Christopher Matta <cm...@mapr.com>
> wrote:
>
> > I noticed that there’s a log.path in the sys.options but I’m assuming
> > that’s a boot option for the drillbits?
> >
> >
> > 0: jdbc:drill:zk=ip-172-16-1-173:5181,ip-172-> select * from
> > sys.options where name = 'log.path';
> > +------------+------------+------------+------------+-------
> > -----+------------+------------+
> > |    name    |    kind    |    type    |  num_val   | string_val |
> > bool_val  | float_val  |
> > +------------+------------+------------+------------+-------
> > -----+------------+------------+
> > | log.path   | null       | BOOT       | null       |
> > "/opt/mapr/drill/drill-0.6.0/logs/drillbit.log" | null       | null
> >    |
> > +------------+------------+------------+------------+-------
> > -----+------------+------------+
> > 1 row selected (0.167 seconds)
> > 0: jdbc:drill:zk=ip-172-16-1-173:5181,ip-172->
> >
> > Is there any way to set the log output per session?
> > ​
> >
> > Chris Matta
> > cmatta@mapr.com
> > 215-701-3146
> >
> > On Tue, Nov 18, 2014 at 2:12 PM, Christopher Matta <cm...@mapr.com>
> > wrote:
> >
> > > Is there a method for setting a specific log file location for a
> session?
> > >
> > > Chris Matta
> > > cmatta@mapr.com
> > > 215-701-3146
> > >
> >
>



-- 
 Steven Phillips
 Software Engineer

 mapr.com

Re: Setting a log file

Posted by Xiao Meng <xi...@cs.sfu.ca>.
You can set the DRILL_LOG_DIR environment variable when starting a drillbit.
Check comments about environment variable in `bin/drillbit.sh`.

On Tue Nov 18 2014 at 2:27:08 PM Christopher Matta <cm...@mapr.com> wrote:

> I noticed that there’s a log.path in the sys.options but I’m assuming
> that’s a boot option for the drillbits?
>
>
> 0: jdbc:drill:zk=ip-172-16-1-173:5181,ip-172-> select * from
> sys.options where name = 'log.path';
> +------------+------------+------------+------------+-------
> -----+------------+------------+
> |    name    |    kind    |    type    |  num_val   | string_val |
> bool_val  | float_val  |
> +------------+------------+------------+------------+-------
> -----+------------+------------+
> | log.path   | null       | BOOT       | null       |
> "/opt/mapr/drill/drill-0.6.0/logs/drillbit.log" | null       | null
>    |
> +------------+------------+------------+------------+-------
> -----+------------+------------+
> 1 row selected (0.167 seconds)
> 0: jdbc:drill:zk=ip-172-16-1-173:5181,ip-172->
>
> Is there any way to set the log output per session?
> ​
>
> Chris Matta
> cmatta@mapr.com
> 215-701-3146
>
> On Tue, Nov 18, 2014 at 2:12 PM, Christopher Matta <cm...@mapr.com>
> wrote:
>
> > Is there a method for setting a specific log file location for a session?
> >
> > Chris Matta
> > cmatta@mapr.com
> > 215-701-3146
> >
>

Re: Setting a log file

Posted by Christopher Matta <cm...@mapr.com>.
I noticed that there’s a log.path in the sys.options but I’m assuming
that’s a boot option for the drillbits?


0: jdbc:drill:zk=ip-172-16-1-173:5181,ip-172-> select * from
sys.options where name = 'log.path';
+------------+------------+------------+------------+------------+------------+------------+
|    name    |    kind    |    type    |  num_val   | string_val |
bool_val  | float_val  |
+------------+------------+------------+------------+------------+------------+------------+
| log.path   | null       | BOOT       | null       |
"/opt/mapr/drill/drill-0.6.0/logs/drillbit.log" | null       | null
   |
+------------+------------+------------+------------+------------+------------+------------+
1 row selected (0.167 seconds)
0: jdbc:drill:zk=ip-172-16-1-173:5181,ip-172->

Is there any way to set the log output per session?
​

Chris Matta
cmatta@mapr.com
215-701-3146

On Tue, Nov 18, 2014 at 2:12 PM, Christopher Matta <cm...@mapr.com> wrote:

> Is there a method for setting a specific log file location for a session?
>
> Chris Matta
> cmatta@mapr.com
> 215-701-3146
>