hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Astier <fast...@yahoo-inc.com>
Subject Turn off all Hadoop logs?
Date Mon, 29 Aug 2011 19:31:01 GMT
Is it possible to turn off all the Hadoop logs simultaneously? In my unit tests, I don’t
want to see the myriad “INFO” logs spewed out by various Hadoop components. I’m using:

  ((Log4JLogger) DataNode.LOG).getLogger().setLevel(Level.OFF);
    ((Log4JLogger) LeaseManager.LOG).getLogger().setLevel(Level.OFF);
    ((Log4JLogger) FSNamesystem.LOG).getLogger().setLevel(Level.OFF);
    ((Log4JLogger) DFSClient.LOG).getLogger().setLevel(Level.OFF);
    ((Log4JLogger) Storage.LOG).getLogger().setLevel(Level.OFF);

But I’m still missing some loggers...


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message