Repository: ambari
Updated Branches:
  refs/heads/trunk c05d2389f -> 74d2d234e


AMBARI-11259. Views build break (hive fixes)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/74d2d234
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/74d2d234
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/74d2d234

Branch: refs/heads/trunk
Commit: 74d2d234e7d74e16afbc9df3ace0754d5e80df8f
Parents: c05d238
Author: Sumit Mohanty <[email protected]>
Authored: Tue May 19 19:02:23 2015 -0700
Committer: Sumit Mohanty <[email protected]>
Committed: Tue May 19 19:02:23 2015 -0700

----------------------------------------------------------------------
 .../ambari/view/hive/resources/files/FileService.java       | 3 ++-
 .../resources/jobs/atsJobs/ATSRequestsDelegateImpl.java     | 3 ++-
 .../view/hive/resources/jobs/rm/RMRequestsDelegateImpl.java | 9 ++++++---
 3 files changed, 10 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/74d2d234/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/files/FileService.java
----------------------------------------------------------------------
diff --git 
a/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/files/FileService.java
 
b/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/files/FileService.java
index ef48b5d..bae46ac 100644
--- 
a/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/files/FileService.java
+++ 
b/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/files/FileService.java
@@ -118,7 +118,8 @@ public class FileService extends BaseService {
     URL url = new URL(filePath.substring(JSON_PATH_FILE.length()));
 
     InputStream responseInputStream = 
context.getURLStreamProvider().readFrom(url.toString(), "GET",
-        null, new HashMap<String, String>());
+                                                                              
(String)null,
+                                                                              
new HashMap<String, String>());
     String response = IOUtils.toString(responseInputStream);
 
     for (String ref : url.getRef().split("!")) {

http://git-wip-us.apache.org/repos/asf/ambari/blob/74d2d234/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/jobs/atsJobs/ATSRequestsDelegateImpl.java
----------------------------------------------------------------------
diff --git 
a/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/jobs/atsJobs/ATSRequestsDelegateImpl.java
 
b/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/jobs/atsJobs/ATSRequestsDelegateImpl.java
index 1876b2a..061c449 100644
--- 
a/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/jobs/atsJobs/ATSRequestsDelegateImpl.java
+++ 
b/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/jobs/atsJobs/ATSRequestsDelegateImpl.java
@@ -98,7 +98,8 @@ public class ATSRequestsDelegateImpl implements 
ATSRequestsDelegate {
     String response;
     try {
       InputStream responseInputStream = 
context.getURLStreamProvider().readFrom(atsUrl, "GET",
-          null, new HashMap<String, String>());
+                                                                               
 (String)null,
+                                                                               
 new HashMap<String, String>());
       response = IOUtils.toString(responseInputStream);
     } catch (IOException e) {
       LOG.error("Error while reading from ATS", e);

http://git-wip-us.apache.org/repos/asf/ambari/blob/74d2d234/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/jobs/rm/RMRequestsDelegateImpl.java
----------------------------------------------------------------------
diff --git 
a/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/jobs/rm/RMRequestsDelegateImpl.java
 
b/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/jobs/rm/RMRequestsDelegateImpl.java
index a1987cd..6050fec 100644
--- 
a/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/jobs/rm/RMRequestsDelegateImpl.java
+++ 
b/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/jobs/rm/RMRequestsDelegateImpl.java
@@ -59,7 +59,8 @@ public class RMRequestsDelegateImpl implements 
RMRequestsDelegate {
     String response;
     try {
       InputStream responseInputStream = 
context.getURLStreamProvider().readFrom(url, "GET",
-          null, new HashMap<String, String>());
+                                                                               
 (String)null,
+                                                                               
 new HashMap<String, String>());
       response = IOUtils.toString(responseInputStream);
     } catch (IOException e) {
       throw new ServiceFormattedException(
@@ -74,7 +75,8 @@ public class RMRequestsDelegateImpl implements 
RMRequestsDelegate {
     String response;
     try {
       InputStream responseInputStream = 
context.getURLStreamProvider().readFrom(url, "GET",
-          null, new HashMap<String, String>());
+                                                                               
 (String)null,
+                                                                               
 new HashMap<String, String>());
       response = IOUtils.toString(responseInputStream);
     } catch (IOException e) {
       throw new ServiceFormattedException(
@@ -87,7 +89,8 @@ public class RMRequestsDelegateImpl implements 
RMRequestsDelegate {
     String response;
     try {
       InputStream responseInputStream = 
context.getURLStreamProvider().readFrom(url, "GET",
-          null, new HashMap<String, String>());
+                                                                               
 (String)null,
+                                                                               
 new HashMap<String, String>());
       response = IOUtils.toString(responseInputStream);
     } catch (IOException e) {
       LOG.error("Error while reading from RM", e);

Reply via email to