/// <exception cref="System.Exception"/> public virtual void TestReadRandom() { FileSystem fs = cluster.GetFileSystem(); long tStart = Runtime.CurrentTimeMillis(); bench.GetConf().SetLong("test.io.skip.size", 0); bench.RandomReadTest(fs); long execTime = Runtime.CurrentTimeMillis() - tStart; bench.AnalyzeResult(fs, TestDFSIO.TestType.TestTypeReadRandom, execTime); }
public static void BeforeClass() { bench = new TestDFSIO(); bench.GetConf().SetBoolean(DFSConfigKeys.DfsSupportAppendKey, true); bench.GetConf().SetInt(DFSConfigKeys.DfsHeartbeatIntervalKey, 1); cluster = new MiniDFSCluster.Builder(bench.GetConf()).NumDataNodes(2).Format(true ).Build(); FileSystem fs = cluster.GetFileSystem(); bench.CreateControlFile(fs, DefaultNrBytes, DefaultNrFiles); TestWrite(); }