Package org.apache.hadoop.log

Examples of org.apache.hadoop.log.LogSample.toJSON()


      sample.addNormalValue(LOGKEYS.Cluster.name(), fs.getUri().getAuthority());
      if (ex != null) {
        sample.addNormalValue(LOGKEYS.Error.name(),
            StringUtils.stringifyException(ex));
      }
      DECODER_METRICS_LOG.info(sample.toJSON());

    } catch(Exception e) {
      LOG.warn("Exception when logging the Raid metrics: " + e.getMessage(),
               e);
    }
View Full Code Here


      sample.addNormalValue(LOGKEYS.Cluster.name(), fs.getUri().getAuthority());
      if (ex != null) {
        sample.addNormalValue(LOGKEYS.Error.name(),
            StringUtils.stringifyException(ex));
      }
      ENCODER_METRICS_LOG.info(sample.toJSON());
    } catch(Exception e) {
      LOG.warn("Exception when logging the Raid metrics: " + e.getMessage(),
               e);
    }
  }
View Full Code Here

      if (ex != null) {
        sample.addNormalValue(LOGKEYS.Error.name(),
            StringUtils.stringifyException(ex));
      }
      new Throwable().printStackTrace();
      FILECHECK_METRICS_LOG.info(sample.toJSON());
    } catch(Exception e) {
      LOG.warn("Exception when logging the Raid metrics: " + e.getMessage(),
          e);
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.