Skip to content

Commit 00ffaa6

Browse files
authored
Merge branch 'apache:trunk' into YARN-11424-V2
2 parents f7c91c6 + b82bcbd commit 00ffaa6

File tree

17 files changed

+191
-543
lines changed

17 files changed

+191
-543
lines changed

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2413,8 +2413,14 @@ private void handleFileStat(LocatedFileStatus stat) throws IOException {
24132413
if (stat.isFile()) { // file
24142414
curFile = stat;
24152415
} else if (recursive) { // directory
2416-
itors.push(curItor);
2417-
curItor = listLocatedStatus(stat.getPath());
2416+
try {
2417+
RemoteIterator<LocatedFileStatus> newDirItor = listLocatedStatus(stat.getPath());
2418+
itors.push(curItor);
2419+
curItor = newDirItor;
2420+
} catch (FileNotFoundException ignored) {
2421+
LOGGER.debug("Directory {} deleted while attempting for recursive listing",
2422+
stat.getPath());
2423+
}
24182424
}
24192425
}
24202426

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,12 @@ public HttpServer2 build() throws IOException {
497497
prefix -> this.conf.get(prefix + "type")
498498
.equals(PseudoAuthenticationHandler.TYPE))
499499
) {
500-
server.initSpnego(conf, hostName, usernameConfKey, keytabConfKey);
500+
server.initSpnego(
501+
conf,
502+
hostName,
503+
getFilterProperties(conf, authFilterConfigurationPrefixes),
504+
usernameConfKey,
505+
keytabConfKey);
501506
}
502507

503508
for (URI ep : endpoints) {
@@ -1340,8 +1345,12 @@ public void setThreads(int min, int max) {
13401345
}
13411346

13421347
private void initSpnego(Configuration conf, String hostName,
1343-
String usernameConfKey, String keytabConfKey) throws IOException {
1348+
Properties authFilterConfigurationPrefixes, String usernameConfKey, String keytabConfKey)
1349+
throws IOException {
13441350
Map<String, String> params = new HashMap<>();
1351+
for (Map.Entry<Object, Object> entry : authFilterConfigurationPrefixes.entrySet()) {
1352+
params.put(String.valueOf(entry.getKey()), String.valueOf(entry.getValue()));
1353+
}
13451354
String principalInConf = conf.get(usernameConfKey);
13461355
if (principalInConf != null && !principalInConf.isEmpty()) {
13471356
params.put("kerberos.principal", SecurityUtil.getServerPrincipal(

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/log/Log4Json.java

Lines changed: 0 additions & 263 deletions
This file was deleted.

0 commit comments

Comments
 (0)