----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/45054/#review126362 -----------------------------------------------------------
Ship it! Ship It! - Alejandro Fernandez On March 31, 2016, 4:44 p.m., Di Li wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/45054/ > ----------------------------------------------------------- > > (Updated March 31, 2016, 4:44 p.m.) > > > Review request for Ambari, Alejandro Fernandez, Jaimin Jetly, and Yusaku Sako. > > > Bugs: AMBARI-15443 > https://issues.apache.org/jira/browse/AMBARI-15443 > > > Repository: ambari > > > Description > ------- > > The items described here are the ones on the Hosts tab, in the Actions > drop-down list where the UI shows entries such as All Hosts. If user mouses > over the All Hosts, it shows a sub-list including Hosts and slave components. > > The slave component items are hardcoded in hosts_table_menu_view.js as shown > below. This jira is to put this info into each service's metainfo.xml so that > the slave component items can be stack driven. > > components: function () { > var serviceNames = App.Service.find().mapProperty('serviceName'); > var menuItems = [ > O.create( > { serviceName: 'HDFS', componentName: 'DATANODE', masterComponentName: > 'NAMENODE', componentNameFormatted: > Em.I18n.t('dashboard.services.hdfs.datanodes') } > > ), > O.create( > { serviceName: 'YARN', componentName: 'NODEMANAGER', masterComponentName: > 'RESOURCEMANAGER', componentNameFormatted: > Em.I18n.t('dashboard.services.yarn.nodeManagers') } > > ), > O.create( > { serviceName: 'HBASE', componentName: 'HBASE_REGIONSERVER', > masterComponentName: 'HBASE_MASTER', componentNameFormatted: > Em.I18n.t('dashboard.services.hbase.regionServers') } > > ), > O.create( > { serviceName: 'STORM', componentName: 'SUPERVISOR', masterComponentName: > 'SUPERVISOR', componentNameFormatted: > Em.I18n.t('dashboard.services.storm.supervisors') } > > )]; > > return menuItems.filter(function (item) > { return serviceNames.contains(item.serviceName); } > > ); > }.property(), > > > Diffs > ----- > > > ambari-server/src/main/java/org/apache/ambari/server/controller/StackServiceComponentResponse.java > cfd4e7b > > ambari-server/src/main/java/org/apache/ambari/server/controller/internal/StackServiceComponentResourceProvider.java > 70945ba > > ambari-server/src/main/java/org/apache/ambari/server/stack/ComponentModule.java > a122dc6 > > ambari-server/src/main/java/org/apache/ambari/server/state/BulkCommandDefinition.java > PRE-CREATION > > ambari-server/src/main/java/org/apache/ambari/server/state/ComponentInfo.java > 0d2053c > ambari-server/src/main/resources/common-services/HAWQ/2.0.0/metainfo.xml > e35b7d8 > > ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/metainfo.xml > d96c6fb > > ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/metainfo.xml > 0ffd8f5 > ambari-server/src/main/resources/common-services/PXF/3.0.0/metainfo.xml > afe27ec > > ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/metainfo.xml > 08286f3 > > ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/metainfo.xml > 592631e > ambari-server/src/main/resources/properties.json 01c15f2 > > ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java > af51baf > > ambari-server/src/test/java/org/apache/ambari/server/stack/ComponentModuleTest.java > 2f84f04 > > ambari-server/src/test/resources/stacks/HDP/2.0.5/services/HBASE/metainfo.xml > 0942428 > > ambari-server/src/test/resources/stacks/HDP/2.0.5/services/HDFS/metainfo.xml > 7c0dc74 > > ambari-server/src/test/resources/stacks/HDP/2.0.6/services/HBASE/metainfo.xml > 3043b1e > ambari-web/app/mappers/stack_service_mapper.js 8a65055 > ambari-web/app/models/stack_service_component.js 26ff1b8 > ambari-web/app/views/main/host/hosts_table_menu_view.js e75b643 > ambari-web/test/mappers/stack_service_mapper_test.js 4bc36fe > > Diff: https://reviews.apache.org/r/45054/diff/ > > > Testing > ------- > > unit test > patch a trunk cluster with code change, verify the host bulk command list > shown for DataNode, HBase Region server, storm supervisor, etc. > > > Thanks, > > Di Li > >