diff --git a/LICENSE-binary b/LICENSE-binary index ff8012096a..c0eb82f3da 100644 --- a/LICENSE-binary +++ b/LICENSE-binary @@ -379,7 +379,7 @@ hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/fuse-dfs/util/tree hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/compat/{fstatat|openat|unlinkat}.h com.github.luben:zstd-jni:1.5.2-1 -dnsjava:dnsjava:2.1.7 +dnsjava:dnsjava:3.6.1 org.codehaus.woodstox:stax2-api:4.2.1 diff --git a/hadoop-client-modules/hadoop-client-check-invariants/src/test/resources/ensure-jars-have-correct-contents.sh b/hadoop-client-modules/hadoop-client-check-invariants/src/test/resources/ensure-jars-have-correct-contents.sh index 2e927402d2..3a7c5ce786 100644 --- a/hadoop-client-modules/hadoop-client-check-invariants/src/test/resources/ensure-jars-have-correct-contents.sh +++ b/hadoop-client-modules/hadoop-client-check-invariants/src/test/resources/ensure-jars-have-correct-contents.sh @@ -51,6 +51,8 @@ allowed_expr+="|^[^-]*-default.xml$" allowed_expr+="|^[^-]*-version-info.properties$" # * Hadoop's application classloader properties file. allowed_expr+="|^org.apache.hadoop.application-classloader.properties$" +# Comes from dnsjava, not sure if relocatable. +allowed_expr+="|^messages.properties$" # public suffix list used by httpcomponents allowed_expr+="|^mozilla/$" allowed_expr+="|^mozilla/public-suffix-list.txt$" diff --git a/hadoop-client-modules/hadoop-client-runtime/pom.xml b/hadoop-client-modules/hadoop-client-runtime/pom.xml index 22c8ae00a3..8c72f53e91 100644 --- a/hadoop-client-modules/hadoop-client-runtime/pom.xml +++ b/hadoop-client-modules/hadoop-client-runtime/pom.xml @@ -229,6 +229,8 @@ jnamed* lookup* update* + META-INF/versions/21/* + META-INF/versions/21/**/* @@ -243,6 +245,7 @@ META-INF/versions/9/module-info.class META-INF/versions/11/module-info.class + META-INF/versions/21/module-info.class diff --git a/hadoop-common-project/hadoop-registry/src/main/java/org/apache/hadoop/registry/server/dns/RegistryDNS.java b/hadoop-common-project/hadoop-registry/src/main/java/org/apache/hadoop/registry/server/dns/RegistryDNS.java index b6de757fc3..e99c49f7dc 100644 --- a/hadoop-common-project/hadoop-registry/src/main/java/org/apache/hadoop/registry/server/dns/RegistryDNS.java +++ b/hadoop-common-project/hadoop-registry/src/main/java/org/apache/hadoop/registry/server/dns/RegistryDNS.java @@ -1682,7 +1682,7 @@ public void exec(Zone zone, Record record) throws IOException { DNSSEC.sign(rRset, dnskeyRecord, privateKey, inception, expiration); LOG.info("Adding {}", rrsigRecord); - rRset.addRR(rrsigRecord); + zone.addRecord(rrsigRecord); //addDSRecord(zone, record.getName(), record.getDClass(), // record.getTTL(), inception, expiration); diff --git a/hadoop-common-project/hadoop-registry/src/test/java/org/apache/hadoop/registry/server/dns/TestRegistryDNS.java b/hadoop-common-project/hadoop-registry/src/test/java/org/apache/hadoop/registry/server/dns/TestRegistryDNS.java index 56e617144a..386cb3a196 100644 --- a/hadoop-common-project/hadoop-registry/src/test/java/org/apache/hadoop/registry/server/dns/TestRegistryDNS.java +++ b/hadoop-common-project/hadoop-registry/src/test/java/org/apache/hadoop/registry/server/dns/TestRegistryDNS.java @@ -350,7 +350,7 @@ public void testMissingReverseLookup() throws Exception { Name name = Name.fromString("19.1.17.172.in-addr.arpa."); Record question = Record.newRecord(name, Type.PTR, DClass.IN); Message query = Message.newQuery(question); - OPTRecord optRecord = new OPTRecord(4096, 0, 0, Flags.DO, null); + OPTRecord optRecord = new OPTRecord(4096, 0, 0, Flags.DO); query.addRecord(optRecord, Section.ADDITIONAL); byte[] responseBytes = getRegistryDNS().generateReply(query, null); Message response = new Message(responseBytes); @@ -392,7 +392,7 @@ private List assertDNSQuery(String lookup, int type, int numRecs) Name name = Name.fromString(lookup); Record question = Record.newRecord(name, type, DClass.IN); Message query = Message.newQuery(question); - OPTRecord optRecord = new OPTRecord(4096, 0, 0, Flags.DO, null); + OPTRecord optRecord = new OPTRecord(4096, 0, 0, Flags.DO); query.addRecord(optRecord, Section.ADDITIONAL); byte[] responseBytes = getRegistryDNS().generateReply(query, null); Message response = new Message(responseBytes); @@ -421,7 +421,7 @@ private List assertDNSQueryNotNull( Name name = Name.fromString(lookup); Record question = Record.newRecord(name, type, DClass.IN); Message query = Message.newQuery(question); - OPTRecord optRecord = new OPTRecord(4096, 0, 0, Flags.DO, null); + OPTRecord optRecord = new OPTRecord(4096, 0, 0, Flags.DO); query.addRecord(optRecord, Section.ADDITIONAL); byte[] responseBytes = getRegistryDNS().generateReply(query, null); Message response = new Message(responseBytes); @@ -592,7 +592,7 @@ public void testReadMasterFile() throws Exception { Name name = Name.fromString("5.0.17.172.in-addr.arpa."); Record question = Record.newRecord(name, Type.PTR, DClass.IN); Message query = Message.newQuery(question); - OPTRecord optRecord = new OPTRecord(4096, 0, 0, Flags.DO, null); + OPTRecord optRecord = new OPTRecord(4096, 0, 0, Flags.DO); query.addRecord(optRecord, Section.ADDITIONAL); byte[] responseBytes = getRegistryDNS().generateReply(query, null); Message response = new Message(responseBytes); diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml index 5129f5d99c..3f0a8b3a85 100644 --- a/hadoop-project/pom.xml +++ b/hadoop-project/pom.xml @@ -106,7 +106,7 @@ 3.8.4 5.2.0 3.0.5 - 3.4.0 + 3.6.1 27.0-jre 5.1.0