Package org.apache.hadoop.hdfs.server.namenode

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


    if (editsURI != null) {
      if (editsURI.getScheme().equals(NNStorage.LOCAL_URI_SCHEME)) {
        StorageDirectory sd = new NNStorage(new StorageInfo()).new StorageDirectory(
            new File(editsURI.getPath()));
        remoteJournalManager = new FileJournalManagerReadOnly(sd);
      } else {
        throw new IOException("Other journals not supported yet.");
      }
 
      LOG.info("Initializing input stream");
View Full Code Here


  private JournalManager constructJournalManager(URI editsUri)
      throws IOException {
    if (editsUri.getScheme().equals(NNStorage.LOCAL_URI_SCHEME)) {
      StorageDirectory sd = new NNStorage(new StorageInfo()).new StorageDirectory(
          new File(editsUri.getPath()));
      return new FileJournalManagerReadOnly(sd);
    } else if (editsUri.getScheme().equals(QuorumJournalManager.QJM_URI_SCHEME)) {
      return new QuorumJournalManager(conf, editsUri,
              new NamespaceInfo(new StorageInfo()), null, false);
    } else {
      throwIOException("Other journals not supported yet.", null);
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.server.namenode.FileJournalManagerReadOnly

Copyright © 2018 www.massapicom. 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.