Java Code Examples for org.apache.hadoop.hdfs.DFSTestUtil#setNameNodeLogLevel()
The following examples show how to use
org.apache.hadoop.hdfs.DFSTestUtil#setNameNodeLogLevel() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NNThroughputBenchmark.java From hadoop with Apache License 2.0 | 5 votes |
static void setNameNodeLoggingLevel(Level logLevel) { LOG.fatal("Log level = " + logLevel.toString()); // change log level to NameNode logs DFSTestUtil.setNameNodeLogLevel(logLevel); GenericTestUtils.setLogLevel(LogManager.getLogger( NetworkTopology.class.getName()), logLevel); GenericTestUtils.setLogLevel(LogManager.getLogger( Groups.class.getName()), logLevel); }
Example 2
Source File: NNThroughputBenchmark.java From big-c with Apache License 2.0 | 5 votes |
static void setNameNodeLoggingLevel(Level logLevel) { LOG.fatal("Log level = " + logLevel.toString()); // change log level to NameNode logs DFSTestUtil.setNameNodeLogLevel(logLevel); GenericTestUtils.setLogLevel(LogManager.getLogger( NetworkTopology.class.getName()), logLevel); GenericTestUtils.setLogLevel(LogManager.getLogger( Groups.class.getName()), logLevel); }
Example 3
Source File: TestWebHdfsWithMultipleNameNodes.java From hadoop with Apache License 2.0 | 4 votes |
static private void setLogLevel() { ((Log4JLogger)LOG).getLogger().setLevel(Level.ALL); GenericTestUtils.setLogLevel(NamenodeWebHdfsMethods.LOG, Level.ALL); DFSTestUtil.setNameNodeLogLevel(Level.ALL); }
Example 4
Source File: BlockReportTestBase.java From hadoop with Apache License 2.0 | 4 votes |
private static void initLoggers() { DFSTestUtil.setNameNodeLogLevel(Level.ALL); GenericTestUtils.setLogLevel(DataNode.LOG, Level.ALL); GenericTestUtils.setLogLevel(BlockReportTestBase.LOG, Level.ALL); }
Example 5
Source File: TestWebHdfsWithMultipleNameNodes.java From big-c with Apache License 2.0 | 4 votes |
static private void setLogLevel() { ((Log4JLogger)LOG).getLogger().setLevel(Level.ALL); GenericTestUtils.setLogLevel(NamenodeWebHdfsMethods.LOG, Level.ALL); DFSTestUtil.setNameNodeLogLevel(Level.ALL); }
Example 6
Source File: BlockReportTestBase.java From big-c with Apache License 2.0 | 4 votes |
private static void initLoggers() { DFSTestUtil.setNameNodeLogLevel(Level.ALL); GenericTestUtils.setLogLevel(DataNode.LOG, Level.ALL); GenericTestUtils.setLogLevel(BlockReportTestBase.LOG, Level.ALL); }