From 7151a9b604567137f0d84727691cf2756277eb34 Mon Sep 17 00:00:00 2001 From: Anu Engineer Date: Thu, 28 Sep 2017 15:42:31 -0700 Subject: [PATCH] HDFS-12488. Ozone: OzoneRestClient timeout is not configurable. Contributed by Weiwei Yang. --- .../java/org/apache/hadoop/ozone/client/OzoneClientUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/ozone/client/OzoneClientUtils.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/ozone/client/OzoneClientUtils.java index 9ccd23cc31..19bfc18cac 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/ozone/client/OzoneClientUtils.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/ozone/client/OzoneClientUtils.java @@ -699,7 +699,7 @@ public static void releaseConnection(HttpRequestBase request) { * @return a default instance of {@link CloseableHttpClient}. */ public static CloseableHttpClient newHttpClient() { - return OzoneClientUtils.newHttpClient(null); + return OzoneClientUtils.newHttpClient(new OzoneConfiguration()); } /**