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

File View not accessible in Ambari 2.7 after enabling 3 namenodes in HDP 3.0

    XMLWordPrintableJSON

Details

    Description

      Ambari-2.7.0 supports HDFS Federation architecture

      But if we configure 3 namenode the Files view never works.

      It will fail with below exception

      Service 'hdfs' check failed: HDFS080 webhdfs.ha.namenodes.list namenodes count is not exactly 2
      
      Service 'hdfs' check failed: 
      org.apache.ambari.view.utils.hdfs.HdfsApiException: HDFS080 webhdfs.ha.namenodes.list namenodes count is not exactly 2 
      at org.apache.ambari.view.utils.hdfs.ConfigurationBuilder.copyHAProperties(ConfigurationBuilder.java:247) 
      at org.apache.ambari.view.utils.hdfs.ConfigurationBuilder.parseProperties(ConfigurationBuilder.java:110) 
      at org.apache.ambari.view.utils.hdfs.ConfigurationBuilder.buildConfig(ConfigurationBuilder.java:327) 
      at org.apache.ambari.view.utils.hdfs.HdfsApi.<init>(HdfsApi.java:75) 
      at org.apache.ambari.view.utils.hdfs.HdfsUtil.getHdfsApi(HdfsUtil.java:157) 
      at org.apache.ambari.view.utils.hdfs.HdfsUtil.connectToHDFSApi(HdfsUtil.java:145) 
      at org.apache.ambari.view.commons.hdfs.HdfsService.hdfsSmokeTest(HdfsService.java:145) 
      at org.apache.ambari.view.filebrowser.HelpService.hdfsStatus(HelpService.java:95) 
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
      at java.lang.reflect.Method.invoke(Method.java:498) 
      at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) 
      

      By inspecting the code , it looks like this is not supposed to work in filesview and it wil only allow two namenodes

      code :
      https://github.com/apache/ambari/blob/trunk/contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/ConfigurationBuilder.java#L247

      Attachments

        Activity

          People

            nitiraj.rathore Nitiraj Singh Rathore
            asnaik Akhil Naik
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3h
                3h