Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-13345

Views: HDFS API utility needs to work with WASB

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0, 2.1.1, 2.1.2
    • Fix Version/s: 2.2.0
    • Component/s: ambari-views
    • Labels:
      None

      Description

      We have a cluster that has HDFS configured for WASB. The Files View fails to load with the error below. This is the HDFS config...
      fs.defaultFS = wasb://cloudbreak@operations8738sa.blob.core.windows.net
      In an attempt to get this working, I placed hadoop-azure-2.7.1.jar in here and restarted Ambari Server.
      /var/lib/ambari-server/resources/views/work/FILES

      {1.0.0}

      /WEB-INF/lib
      But the view still continued to fail to load. This is from ambari-server.log when I try to access the view:
      25 Sep 2015 15:48:39,450 INFO [qtp-client-20] ConfigurationBuilder:101 - HdfsApi configured to connect to defaultFS='wasb://cloudbreak@operations8738sa.blob.core.windows.net:50070'
      25 Sep 2015 15:48:39,584 WARN [qtp-client-20] NativeCodeLoader:62 - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
      25 Sep 2015 15:48:39,615 ERROR [qtp-client-20] HdfsUtil:130 - HDFS040 Couldn't open connection to HDFS
      This is the exception shown in the UI when trying to access the view.
      org.apache.ambari.view.utils.hdfs.HdfsApiException: HDFS040 Couldn't open connection to HDFS
      at org.apache.ambari.view.utils.hdfs.HdfsUtil.connectToHDFSApi(HdfsUtil.java:131)
      at org.apache.ambari.view.filebrowser.HdfsService.getApi(HdfsService.java:79)
      at org.apache.ambari.view.filebrowser.FileOperationService.listdir(FileOperationService.java:64)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)

        Issue Links

          Activity

          Hide
          hadoopqa Hadoop QA added a comment -

          -1 overall. Here are the results of testing the latest attachment
          http://issues.apache.org/jira/secure/attachment/12765580/AMBARI-13345_branch-2.1.patch
          against trunk revision .

          +1 @author. The patch does not contain any @author tags.

          -1 tests included. The patch doesn't appear to include any new or modified tests.
          Please justify why no new tests are needed for this patch.
          Also please list what manual steps were performed to verify this patch.

          +1 javac. The applied patch does not increase the total number of javac compiler warnings.

          +1 release audit. The applied patch does not increase the total number of release audit warnings.

          -1 core tests. The patch failed these unit tests in contrib/views/hive contrib/views/utils:

          org.apache.ambari.view.hive.resources.jobs.JobLDAPServiceTest
          org.apache.ambari.view.hive.client.ConnectionTest

          Test results: https://builds.apache.org/job/Ambari-trunk-test-patch/3929//testReport/
          Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/3929//console

          This message is automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - -1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12765580/AMBARI-13345_branch-2.1.patch against trunk revision . +1 @author . The patch does not contain any @author tags. -1 tests included . The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 javac . The applied patch does not increase the total number of javac compiler warnings. +1 release audit . The applied patch does not increase the total number of release audit warnings. -1 core tests . The patch failed these unit tests in contrib/views/hive contrib/views/utils: org.apache.ambari.view.hive.resources.jobs.JobLDAPServiceTest org.apache.ambari.view.hive.client.ConnectionTest Test results: https://builds.apache.org/job/Ambari-trunk-test-patch/3929//testReport/ Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/3929//console This message is automatically generated.
          Hide
          hadoopqa Hadoop QA added a comment -

          -1 overall. Here are the results of testing the latest attachment
          http://issues.apache.org/jira/secure/attachment/12765763/AMBARI-13345_branch-2.1.patch
          against trunk revision .

          +1 @author. The patch does not contain any @author tags.

          -1 tests included. The patch doesn't appear to include any new or modified tests.
          Please justify why no new tests are needed for this patch.
          Also please list what manual steps were performed to verify this patch.

          +1 javac. The applied patch does not increase the total number of javac compiler warnings.

          +1 release audit. The applied patch does not increase the total number of release audit warnings.

          -1 core tests. The patch failed these unit tests in contrib/views/hive contrib/views/utils:

          org.apache.ambari.view.hive.resources.jobs.JobLDAPServiceTest
          org.apache.ambari.view.hive.client.ConnectionTest

          Test results: https://builds.apache.org/job/Ambari-trunk-test-patch/3941//testReport/
          Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/3941//console

          This message is automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - -1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12765763/AMBARI-13345_branch-2.1.patch against trunk revision . +1 @author . The patch does not contain any @author tags. -1 tests included . The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 javac . The applied patch does not increase the total number of javac compiler warnings. +1 release audit . The applied patch does not increase the total number of release audit warnings. -1 core tests . The patch failed these unit tests in contrib/views/hive contrib/views/utils: org.apache.ambari.view.hive.resources.jobs.JobLDAPServiceTest org.apache.ambari.view.hive.client.ConnectionTest Test results: https://builds.apache.org/job/Ambari-trunk-test-patch/3941//testReport/ Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/3941//console This message is automatically generated.
          Hide
          sumitmohanty Sumit Mohanty added a comment -

          Committed to trunk, branch-2.1, branch-2.1.2

          Show
          sumitmohanty Sumit Mohanty added a comment - Committed to trunk, branch-2.1, branch-2.1.2
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Ambari-trunk-Commit #3635 (See https://builds.apache.org/job/Ambari-trunk-Commit/3635/)
          AMBARI-13345. Views: HDFS API utility needs to work with WASB (Gaurav (smohanty: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=45ce79631b95066664e3a8a01661f1daa9739dd2)

          • contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/files/FileService.java
          • contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/ConfigurationBuilder.java
          • contrib/views/utils/pom.xml
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Ambari-trunk-Commit #3635 (See https://builds.apache.org/job/Ambari-trunk-Commit/3635/ ) AMBARI-13345 . Views: HDFS API utility needs to work with WASB (Gaurav (smohanty: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=45ce79631b95066664e3a8a01661f1daa9739dd2 ) contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/files/FileService.java contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/ConfigurationBuilder.java contrib/views/utils/pom.xml
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Ambari-branch-2.1 #676 (See https://builds.apache.org/job/Ambari-branch-2.1/676/)
          AMBARI-13345. Views: HDFS API utility needs to work with WASB (Gaurav (smohanty: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=e9263e486a0068dba1430ea76190cb91778f0473)

          • contrib/views/utils/pom.xml
          • contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/files/FileService.java
          • contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/ConfigurationBuilder.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Ambari-branch-2.1 #676 (See https://builds.apache.org/job/Ambari-branch-2.1/676/ ) AMBARI-13345 . Views: HDFS API utility needs to work with WASB (Gaurav (smohanty: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=e9263e486a0068dba1430ea76190cb91778f0473 ) contrib/views/utils/pom.xml contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/files/FileService.java contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/ConfigurationBuilder.java

            People

            • Assignee:
              gnagar Gaurav Nagar
              Reporter:
              rconline Rohit Choudhary
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development