Skip to content

Commit f01adaf

Browse files
manika137mukund-thakur
authored andcommitted
HADOOP-19279. ABFS: Disabling Apache Http Client as Default Http Client for ABFS Driver(#7055)
As part of work done under HADOOP-19120 [ABFS]: ApacheHttpClient adaptation as network library - ASF JIRA Apache HTTP Client was introduced as an alternative Network Library that can be used with ABFS Driver. Earlier JDK Http Client was the only supported network library. Apache HTTP Client was found to be more helpful in terms of controls and knobs it provides to manage the Network aspects of the driver better. Hence, the default Network Client was made to be used with the ABFS Driver. Recently while running scale workloads, we observed a regression where some unexpected wait time was observed while establishing connections. A possible fix has been identified and we are working on getting it fixed. There was also a possible NPE scenario was identified on the new network client code. Until we are done with the code fixes and revalidated the whole Apache client flow, we would like to make JDK Client as default client again. The support will still be there, but it will be disabled behind a config. Contributed by: manika137
1 parent f3600d2 commit f01adaf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/constants/FileSystemConfigurations.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public final class FileSystemConfigurations {
166166
public static final long THOUSAND = 1000L;
167167

168168
public static final HttpOperationType DEFAULT_NETWORKING_LIBRARY
169-
= HttpOperationType.APACHE_HTTP_CLIENT;
169+
= HttpOperationType.JDK_HTTP_URL_CONNECTION;
170170

171171
public static final int DEFAULT_APACHE_HTTP_CLIENT_MAX_IO_EXCEPTION_RETRIES = 3;
172172

hadoop-tools/hadoop-azure/src/site/markdown/abfs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -878,8 +878,8 @@ ABFS Driver can use the following networking libraries:
878878
The networking library can be configured using the configuration `fs.azure.networking.library`
879879
while initializing the filesystem.
880880
Following are the supported values:
881-
- `APACHE_HTTP_CLIENT` : Use Apache HttpClient [Default]
882-
- `JDK_HTTP_URL_CONNECTION` : Use JDK networking library
881+
- `JDK_HTTP_URL_CONNECTION` : Use JDK networking library [Default]
882+
- `APACHE_HTTP_CLIENT` : Use Apache HttpClient
883883

884884
#### <a href="ahc_networking_conf"></a>ApacheHttpClient networking layer configuration Options:
885885

0 commit comments

Comments
 (0)