예제 #1
0
        public virtual void Setup()
        {
            FilePath editsDir = new FilePath(MiniDFSCluster.GetBaseDirectory() + FilePath.separator
                                             + "TestJournalNode");

            FileUtil.FullyDelete(editsDir);
            conf.Set(DFSConfigKeys.DfsJournalnodeEditsDirKey, editsDir.GetAbsolutePath());
            conf.Set(DFSConfigKeys.DfsJournalnodeRpcAddressKey, "0.0.0.0:0");
            jn = new JournalNode();
            jn.SetConf(conf);
            jn.Start();
            journalId = "test-journalid-" + GenericTestUtils.UniqueSequenceId();
            journal   = jn.GetOrCreateJournal(journalId);
            journal.Format(FakeNsinfo);
            ch = new IPCLoggerChannel(conf, FakeNsinfo, journalId, jn.GetBoundIpcAddress());
        }