Package com.alimama.mdrill.editlog.defined

Examples of com.alimama.mdrill.editlog.defined.StorageDirectory


    {
      long t1=System.currentTimeMillis();
    List<StorageDirectory> editsDirs = new ArrayList<StorageDirectory>();
    if("hdfs".equals(SolrCore.getBinglogType()))
    {
      editsDirs.add(new StorageDirectory(FileSystem.get(conf), new Path(params.hdfsPath, "editlogs_v9")));
    }else{
      editsDirs.add(new StorageDirectory(FileSystem.getLocal(conf), new Path(params.baseDir, "editlogs_v9")));
    }
    LOG.info("recoverFromEditlog begin:"+this.params.getLogStr());
    editlog = new FSEditLog(conf, editsDirs);
    editlog.initJournalsForWrite();
    editlog.recoverUnclosedStreams();
View Full Code Here


    {
      long t1=System.currentTimeMillis();
    List<StorageDirectory> editsDirs = new ArrayList<StorageDirectory>();
    if("hdfs".equals(SolrCore.getBinglogType()))
    {
      editsDirs.add(new StorageDirectory(FileSystem.get(conf), new Path(params.hdfsPath, "editlogs_v9")));
    }else{
      editsDirs.add(new StorageDirectory(FileSystem.getLocal(conf), new Path(params.baseDir, "editlogs_v9")));
    }
    LOG.info("recoverFromEditlog begin:"+this.params.getLogStr());
    editlog = new FSEditLog(conf, editsDirs);
    editlog.initJournalsForWrite();
    editlog.recoverUnclosedStreams();
View Full Code Here

TOP

Related Classes of com.alimama.mdrill.editlog.defined.StorageDirectory

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.