diff --git a/app/com/linkedin/drelephant/analysis/AnalyticJobGeneratorHadoop2.java b/app/com/linkedin/drelephant/analysis/AnalyticJobGeneratorHadoop2.java index 1fc5594d2..92604ec77 100644 --- a/app/com/linkedin/drelephant/analysis/AnalyticJobGeneratorHadoop2.java +++ b/app/com/linkedin/drelephant/analysis/AnalyticJobGeneratorHadoop2.java @@ -198,8 +198,7 @@ private void updateAuthToken() { */ private JsonNode readJsonNode(URL url) throws IOException, AuthenticationException { - HttpURLConnection conn = _authenticatedURL.openConnection(url, _token); - return _objectMapper.readTree(conn.getInputStream()); + return _objectMapper.readTree(url.openStream()); } /**