diff --git itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationOnHDFSEncryptedZones.java itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationOnHDFSEncryptedZones.java index 7557280d2d..1658d24c6f 100644 --- itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationOnHDFSEncryptedZones.java +++ itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationOnHDFSEncryptedZones.java @@ -90,9 +90,10 @@ public void setup() throws Throwable { @Test public void targetAndSourceHaveDifferentEncryptionZoneKeys() throws Throwable { - DFSTestUtil.createKey("test_key123", miniDFSCluster, conf); + MiniDFSCluster replicaMiniDFSCluster = new MiniDFSCluster.Builder(conf).numDataNodes(1).format(true).build(); + DFSTestUtil.createKey("test_key123", replicaMiniDFSCluster, conf); - WarehouseInstance replica = new WarehouseInstance(LOG, miniDFSCluster, + WarehouseInstance replica = new WarehouseInstance(LOG, replicaMiniDFSCluster, new HashMap() {{ put(HiveConf.ConfVars.HIVE_IN_TEST.varname, "false"); put(HiveConf.ConfVars.HIVE_SERVER2_ENABLE_DOAS.varname, "false"); diff --git pom.xml pom.xml index 5008923d2a..7861a85a9d 100644 --- pom.xml +++ pom.xml @@ -150,7 +150,7 @@ 19.0 2.4.11 1.3.166 - 3.1.0 + 3.1.1 ${basedir}/${hive.path.to.root}/testutils/hadoop 1.3 2.0.0-alpha4