Examples of FileJournalManager


Examples of com.alimama.mdrill.editlog.write.FileJournalManager

  private synchronized void initJournals(List<StorageDirectory> dirs) {

    journalSet = new JournalSet(1);

    for (StorageDirectory sd : dirs) {
        journalSet.add(new FileJournalManager(sd), sd.isrequire());

    }
    if (journalSet.isEmpty()) {
      LOG.error("No edits directories configured!");
    }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.FileJournalManager

      StorageErrorReporter errorReporter) throws IOException {
    super(NodeType.JOURNAL_NODE);
   
    sd = new StorageDirectory(logDir);
    this.addStorageDir(sd);
    this.fjm = new FileJournalManager(conf, sd, errorReporter);

    analyzeAndRecoverStorage(startOpt);
  }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.FileJournalManager

      }
     
      long segmentTxId = ServletUtil.parseLongParam(request,
          SEGMENT_TXID_PARAM);

      FileJournalManager fjm = storage.getJournalManager();
      File editFile;

      synchronized (fjm) {
        // Synchronize on the FJM so that the file doesn't get finalized
        // out from underneath us while we're in the process of opening
        // it up.
        EditLogFile elf = fjm.getLogFile(
            segmentTxId);
        if (elf == null) {
          response.sendError(HttpServletResponse.SC_NOT_FOUND,
              "No edit log found starting at txid " + segmentTxId);
          return;
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.FileJournalManager

      StorageErrorReporter errorReporter) throws IOException {
    super(NodeType.JOURNAL_NODE);
   
    sd = new StorageDirectory(logDir);
    this.addStorageDir(sd);
    this.fjm = new FileJournalManager(conf, sd, errorReporter);
   
    analyzeStorage();
  }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.FileJournalManager

  protected JNStorage(File logDir, StorageErrorReporter errorReporter) throws IOException {
    super(NodeType.JOURNAL_NODE);
   
    sd = new StorageDirectory(logDir);
    this.addStorageDir(sd);
    this.fjm = new FileJournalManager(sd, errorReporter);
   
    analyzeStorage();
  }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.FileJournalManager

      }
     
      long segmentTxId = ServletUtil.parseLongParam(request,
          SEGMENT_TXID_PARAM);

      FileJournalManager fjm = storage.getJournalManager();
      File editFile;

      synchronized (fjm) {
        // Synchronize on the FJM so that the file doesn't get finalized
        // out from underneath us while we're in the process of opening
        // it up.
        EditLogFile elf = fjm.getLogFile(
            segmentTxId);
        if (elf == null) {
          response.sendError(HttpServletResponse.SC_NOT_FOUND,
              "No edit log found starting at txid " + segmentTxId);
          return;
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.FileJournalManager

      StorageErrorReporter errorReporter) throws IOException {
    super(NodeType.JOURNAL_NODE);
   
    sd = new StorageDirectory(logDir);
    this.addStorageDir(sd);
    this.fjm = new FileJournalManager(conf, sd, errorReporter);

    analyzeAndRecoverStorage(startOpt);
  }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.FileJournalManager

      }
     
      long segmentTxId = ServletUtil.parseLongParam(request,
          SEGMENT_TXID_PARAM);

      FileJournalManager fjm = storage.getJournalManager();
      File editFile;

      synchronized (fjm) {
        // Synchronize on the FJM so that the file doesn't get finalized
        // out from underneath us while we're in the process of opening
        // it up.
        EditLogFile elf = fjm.getLogFile(
            segmentTxId);
        if (elf == null) {
          response.sendError(HttpServletResponse.SC_NOT_FOUND,
              "No edit log found starting at txid " + segmentTxId);
          return;
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.FileJournalManager

  protected JNStorage(File logDir, StorageErrorReporter errorReporter) throws IOException {
    super(NodeType.JOURNAL_NODE);
   
    sd = new StorageDirectory(logDir);
    this.addStorageDir(sd);
    this.fjm = new FileJournalManager(sd, errorReporter);
   
    analyzeStorage();
  }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.FileJournalManager

      }
     
      long segmentTxId = ServletUtil.parseLongParam(request,
          SEGMENT_TXID_PARAM);

      FileJournalManager fjm = storage.getJournalManager();
      File editFile;
      FileInputStream editFileIn;
     
      synchronized (fjm) {
        // Synchronize on the FJM so that the file doesn't get finalized
        // out from underneath us while we're in the process of opening
        // it up.
        EditLogFile elf = fjm.getLogFile(
            segmentTxId);
        if (elf == null) {
          response.sendError(HttpServletResponse.SC_NOT_FOUND,
              "No edit log found starting at txid " + segmentTxId);
          return;
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.