Forwarding to the Apache list...

---------- Forwarded message ----------
From: Joydeep Sen Sarma <[EMAIL PROTECTED]>
Date: Fri, Nov 28, 2008 at 10:49 PM
Subject: Re: [hive-users] Setting log level for ql unit test
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>,
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]>


When we run the tests - we run in hadoop 'local' mode - and in this
mode, we run map-reduce jobs by invoking 'hadoop jar ... ExecDriver'
cmd line. this was done because we had some issues submitting
map-reduce jobs directly (from same jvm) in local mode that we could
not resolve.

The issue is that when we invoke 'hadoop jar ... ExecDriver' - we
don't control log4j via hive-log4j. one thing u can try is changing
the hadoop's log4j.properties that hive is picking up (probably
hadoopcore/conf/log4j.properties).

Revisiting this after a long time - I think this can be fixed with
some changes to MapRedTask.java (need to add hive-log4j.properties to
hadoop classpath here and then reset log4j using this in execdriver).
Feel free to file a jira if this is too irritating ..



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michi
Mutsuzaki
Sent: Friday, November 28, 2008 7:14 PM
To: [EMAIL PROTECTED]
Subject: [hive-users] Setting log level for ql unit test

Hello,

When I do "ant test" under ql directory, I get many log messages to stderr.

  [junit] 08/11/28 19:04:14 INFO exec.MapOperator: Got partitions: null
  [junit] 08/11/28 19:04:14 INFO exec.ReduceSinkOperator: Initializing Self
  [junit] 08/11/28 19:04:14 INFO exec.ReduceSinkOperator: Using tag = -1
  [junit] 08/11/28 19:04:14 INFO thrift.TBinarySortableProtocol:
Sort order is ""
  [junit] 08/11/28 19:04:14 INFO thrift.TBinarySortableProtocol:
Sort order is ""
  ....

I tried setting log level to ERROR in conf/hive-log4j.properties, but
these info lines
still show up. How can I get rid of them?

Thanks!
--Michi
_______________________________________________
hive-users mailing list
[EMAIL PROTECTED]
http://publists.facebook.com/mailman/listinfo/hive-users
_______________________________________________
hive-users mailing list
[EMAIL PROTECTED]
http://publists.facebook.com/mailman/listinfo/hive-users

Reply via email to