Skip to content

Commit

Permalink
Fixed minicluster test cases to not use hdfs caching.
Browse files Browse the repository at this point in the history
  • Loading branch information
csrster committed Aug 12, 2021
1 parent f821e1f commit fb8bc43
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
import org.junit.AfterClass;
import org.junit.BeforeClass;

import dk.netarkivet.common.CommonSettings;

/** Overhead class for Hadoop tests that need to use a mini cluster. */
public class HadoopMiniClusterTestCase {
protected static MiniDFSCluster hdfsCluster;
Expand All @@ -40,6 +42,7 @@ private static void setupConfiguration() throws IOException {
conf.setInt(YarnConfiguration.RM_SCHEDULER_MINIMUM_ALLOCATION_MB, 64);
conf.setClass(YarnConfiguration.RM_SCHEDULER,
FifoScheduler.class, ResourceScheduler.class);
conf.setBoolean(CommonSettings.HADOOP_ENABLE_HDFS_CACHE, false);
}

private static void startDFSCluster() throws IOException {
Expand Down

0 comments on commit fb8bc43

Please sign in to comment.