public virtual void SetUp() { prevCacheManipulator = NativeIO.POSIX.GetCacheManipulator(); NativeIO.POSIX.SetCacheManipulator(new NativeIO.POSIX.NoMlockCacheManipulator()); DomainSocket.DisableBindPathValidation(); sockDir = new TemporarySocketDirectory(); }
public static void Init() { sockDir = new TemporarySocketDirectory(); DomainSocket.DisableBindPathValidation(); prevCacheManipulator = NativeIO.POSIX.GetCacheManipulator(); NativeIO.POSIX.SetCacheManipulator(new _CacheManipulator_94()); }
public virtual void SetUp() { conf = new HdfsConfiguration(); conf.SetLong(DFSConfigKeys.DfsNamenodePathBasedCacheRefreshIntervalMs, 100); conf.SetLong(DFSConfigKeys.DfsCachereportIntervalMsecKey, 500); conf.SetLong(DFSConfigKeys.DfsBlockSizeKey, BlockSize); conf.SetLong(DFSConfigKeys.DfsDatanodeMaxLockedMemoryKey, CacheCapacity); conf.SetLong(DFSConfigKeys.DfsHeartbeatIntervalKey, 1); prevCacheManipulator = NativeIO.POSIX.GetCacheManipulator(); NativeIO.POSIX.SetCacheManipulator(new NativeIO.POSIX.NoMlockCacheManipulator()); cluster = new MiniDFSCluster.Builder(conf).NumDataNodes(1).Build(); cluster.WaitActive(); fs = cluster.GetFileSystem(); nn = cluster.GetNameNode(); fsImage = nn.GetFSImage(); dn = cluster.GetDataNodes()[0]; fsd = dn.GetFSDataset(); spyNN = DataNodeTestUtils.SpyOnBposToNN(dn, nn); }