Ver código fonte

AMBARI-14183. Hive view doesn't show tez dag in kerberized cluster. (Gaurav Nagar via yusaku)

Yusaku Sako 10 anos atrás
pai
commit
0ace4a5f65

+ 1 - 1
contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/jobs/atsJobs/ATSRequestsDelegateImpl.java

@@ -118,7 +118,7 @@ public class ATSRequestsDelegateImpl implements ATSRequestsDelegate {
   protected String readFromWithDefault(String atsUrl, String defaultResponse) {
     String response;
     try {
-      InputStream responseInputStream = context.getURLStreamProvider().readFrom(atsUrl, "GET",
+      InputStream responseInputStream = context.getURLStreamProvider().readAsCurrent(atsUrl, "GET",
           (String)null, new HashMap<String, String>());
       response = IOUtils.toString(responseInputStream);
     } catch (IOException e) {