ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rle...@apache.org
Subject [40/42] ambari git commit: AMBARI-21330.Remove slider view from Ambari-3.0.0(Venkata Sairam)
Date Fri, 23 Jun 2017 13:29:35 GMT
AMBARI-21330.Remove slider view from Ambari-3.0.0(Venkata Sairam)


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

Branch: refs/heads/branch-feature-AMBARI-20859
Commit: ec8deeba201bfceb646d6d4a6e0e6fb97e9bc102
Parents: 8f06a5b
Author: Venkata Sairam <venkatasairam.lanka@gmail.com>
Authored: Fri Jun 23 12:31:45 2017 +0530
Committer: Venkata Sairam <venkatasairam.lanka@gmail.com>
Committed: Fri Jun 23 12:31:45 2017 +0530

----------------------------------------------------------------------
 contrib/views/pom.xml                           |     1 -
 contrib/views/slider/docs/index.md              |   164 -
 contrib/views/slider/gzip-content.cmd           |    17 -
 contrib/views/slider/gzip-content.ps1           |    81 -
 contrib/views/slider/pom.xml                    |   463 -
 .../apache/ambari/view/slider/AlertField.java   |    62 -
 .../apache/ambari/view/slider/AlertState.java   |    40 -
 .../ambari/view/slider/MetricsHolder.java       |    44 -
 .../apache/ambari/view/slider/SliderApp.java    |   198 -
 .../ambari/view/slider/SliderAppComponent.java  |    62 -
 .../ambari/view/slider/SliderAppType.java       |   107 -
 .../view/slider/SliderAppTypeComponent.java     |   103 -
 .../slider/SliderAppTypesResourceProvider.java  |    94 -
 .../ambari/view/slider/SliderAppsAlerts.java    |   127 -
 .../view/slider/SliderAppsConfiguration.java    |    52 -
 .../view/slider/SliderAppsResourceProvider.java |   124 -
 .../view/slider/SliderAppsViewController.java   |   112 -
 .../slider/SliderAppsViewControllerImpl.java    |  1510 -
 .../apache/ambari/view/slider/TemporalInfo.java |    48 -
 .../apache/ambari/view/slider/ViewStatus.java   |    72 -
 .../view/slider/clients/AmbariClient.java       |    58 -
 .../view/slider/clients/AmbariCluster.java      |    52 -
 .../view/slider/clients/AmbariClusterInfo.java  |    40 -
 .../slider/clients/AmbariHostComponent.java     |    49 -
 .../view/slider/clients/AmbariHostInfo.java     |    32 -
 .../view/slider/clients/AmbariService.java      |    36 -
 .../view/slider/clients/AmbariServiceInfo.java  |    51 -
 .../slider/rest/SliderAppTypesResource.java     |    54 -
 .../view/slider/rest/SliderAppsResource.java    |   163 -
 .../view/slider/rest/ViewStatusResource.java    |    40 -
 .../slider/rest/client/AmbariHttpClient.java    |   233 -
 .../view/slider/rest/client/BaseHttpClient.java |   157 -
 .../slider/rest/client/JMXMetricHolder.java     |    50 -
 .../ambari/view/slider/rest/client/Metric.java  |   158 -
 .../slider/rest/client/SliderAppJmxHelper.java  |   205 -
 .../rest/client/SliderAppMasterClient.java      |   324 -
 .../rest/client/SliderAppMetricsHelper.java     |   159 -
 .../view/slider/rest/client/TimelineMetric.java |   172 -
 .../slider/rest/client/TimelineMetrics.java     |   101 -
 .../rest/client/URLStreamProviderBasicAuth.java |   105 -
 .../slider/src/main/resources/slider.properties |    19 -
 .../slider/src/main/resources/ui/.gitignore     |    31 -
 .../views/slider/src/main/resources/ui/LICENSE  |    21 -
 .../slider/src/main/resources/ui/README.md      |   122 -
 .../src/main/resources/ui/app/assets/404.html   |   175 -
 .../app/assets/apple-touch-icon-precomposed.png |   Bin 1226 -> 0 bytes
 .../resources/ui/app/assets/crossdomain.xml     |    31 -
 .../resources/ui/app/assets/data/apps/apps.json |  1320 -
 .../ui/app/assets/data/apptypes/all_fields.json |   642 -
 .../ui/app/assets/data/metrics/metric.json      |   946 -
 .../ui/app/assets/data/metrics/metric2.json     |  3838 --
 .../ui/app/assets/data/metrics/metric3.json     |  1856 -
 .../ui/app/assets/data/metrics/metric4.json     |   968 -
 .../ui/app/assets/data/resource/empty_json.json |     1 -
 .../data/resource/slider-properties-2.json      |     9 -
 .../assets/data/resource/slider-properties.json |   148 -
 .../app/assets/data/resource/status_false.json  |     8 -
 .../app/assets/data/resource/status_true.json   |     5 -
 .../main/resources/ui/app/assets/favicon.ico    |   Bin 766 -> 0 bytes
 .../ui/app/assets/font/fontawesome-webfont.eot  |   Bin 37405 -> 0 bytes
 .../ui/app/assets/font/fontawesome-webfont.svg  |   399 -
 .../ui/app/assets/font/fontawesome-webfont.ttf  |   Bin 79076 -> 0 bytes
 .../ui/app/assets/font/fontawesome-webfont.woff |   Bin 43572 -> 0 bytes
 .../resources/ui/app/assets/images/.gitkeep     |     0
 .../ui-bg_flat_0_aaaaaa_40x100.png              |   Bin 180 -> 0 bytes
 .../ui-bg_glass_55_fbf9ee_1x400.png             |   Bin 120 -> 0 bytes
 .../ui-bg_glass_65_ffffff_1x400.png             |   Bin 105 -> 0 bytes
 .../ui-bg_glass_75_dadada_1x400.png             |   Bin 111 -> 0 bytes
 .../ui-bg_glass_75_e6e6e6_1x400.png             |   Bin 110 -> 0 bytes
 .../ui-bg_glass_75_ffffff_1x400.png             |   Bin 107 -> 0 bytes
 .../ui-bg_highlight-soft_75_cccccc_1x100.png    |   Bin 101 -> 0 bytes
 .../ui-bg_inset-soft_95_fef1ec_1x100.png        |   Bin 123 -> 0 bytes
 .../ui-icons_222222_256x240.png                 |   Bin 4369 -> 0 bytes
 .../ui-icons_2e83ff_256x240.png                 |   Bin 4369 -> 0 bytes
 .../ui-icons_454545_256x240.png                 |   Bin 4369 -> 0 bytes
 .../ui-icons_888888_256x240.png                 |   Bin 4369 -> 0 bytes
 .../ui-icons_cd0a0a_256x240.png                 |   Bin 4369 -> 0 bytes
 .../ui-icons_f6cf3b_256x240.png                 |   Bin 8884 -> 0 bytes
 .../src/main/resources/ui/app/assets/index.html |    46 -
 .../ui/app/assets/javascripts/ember-qunit.js    |   266 -
 .../ui/app/assets/javascripts/jquery.mockjax.js |   692 -
 .../assets/javascripts/modernizr-2.6.2.min.js   |     4 -
 .../ui/app/assets/javascripts/qunit.js          |  2495 -
 .../ui/app/assets/javascripts/sinon-1.13.0.js   |  5830 ---
 .../app/assets/javascripts/sinon-qunit-1.0.0.js |    62 -
 .../ui/app/assets/javascripts/tests.js          |    29 -
 .../ui/app/assets/stylesheets/qunit.css         |   237 -
 .../src/main/resources/ui/app/assets/tests.html |    46 -
 .../main/resources/ui/app/components/.gitkeep   |     0
 .../ui/app/components/configSection.js          |   164 -
 .../src/main/resources/ui/app/config/app.js     |    27 -
 .../src/main/resources/ui/app/config/env.js     |    33 -
 .../src/main/resources/ui/app/config/router.js  |    35 -
 .../src/main/resources/ui/app/config/store.js   |    23 -
 .../main/resources/ui/app/controllers/.gitkeep  |     0
 .../app/controllers/application_controller.js   |    27 -
 .../createAppWizard/step1_controller.js         |   251 -
 .../createAppWizard/step2_controller.js         |   136 -
 .../createAppWizard/step3_controller.js         |   250 -
 .../createAppWizard/step4_controller.js         |   176 -
 .../controllers/create_app_wizard_controller.js |   122 -
 .../slider_app/summary_controller.js            |    27 -
 .../ui/app/controllers/slider_app_controller.js |   472 -
 .../app/controllers/slider_apps_controller.js   |    35 -
 .../ui/app/controllers/slider_controller.js     |   138 -
 .../ui/app/controllers/tooltip_controller.js    |    19 -
 .../src/main/resources/ui/app/helpers/.gitkeep  |     0
 .../src/main/resources/ui/app/helpers/ajax.js   |   388 -
 .../src/main/resources/ui/app/helpers/helper.js |   169 -
 .../resources/ui/app/helpers/string_utils.js    |   163 -
 .../src/main/resources/ui/app/initialize.js     |   171 -
 .../ui/app/mappers/application_type.js          |   162 -
 .../src/main/resources/ui/app/mappers/mapper.js |    56 -
 .../ui/app/mappers/slider_apps_mapper.js        |   292 -
 .../ui/app/mixins/ajax_error_handler.js         |    82 -
 .../resources/ui/app/mixins/run_periodically.js |   109 -
 .../main/resources/ui/app/mixins/with_panels.js |    53 -
 .../src/main/resources/ui/app/models/.gitkeep   |     0
 .../resources/ui/app/models/config_property.js  |    47 -
 .../src/main/resources/ui/app/models/host.js    |    33 -
 .../main/resources/ui/app/models/slider_app.js  |   207 -
 .../resources/ui/app/models/slider_app_alert.js |   149 -
 .../ui/app/models/slider_app_component.js       |    65 -
 .../resources/ui/app/models/slider_app_type.js  |    64 -
 .../ui/app/models/slider_app_type_component.js  |    63 -
 .../resources/ui/app/models/slider_config.js    |    45 -
 .../ui/app/models/slider_quick_link.js          |    33 -
 .../resources/ui/app/models/typed_property.js   |    38 -
 .../ui/app/routes/create_app_wizard.js          |    54 -
 .../src/main/resources/ui/app/routes/main.js    |    75 -
 .../src/main/resources/ui/app/styles/app.less   |   303 -
 .../resources/ui/app/styles/application.less    |    23 -
 .../resources/ui/app/styles/application.styl    |    18 -
 .../resources/ui/app/styles/apps-table.less     |   320 -
 .../main/resources/ui/app/styles/common.less    |   109 -
 .../resources/ui/app/styles/old-bootstrap.less  |   164 -
 .../main/resources/ui/app/styles/wizard.less    |   232 -
 .../resources/ui/app/templates/application.hbs  |    56 -
 .../ui/app/templates/common/ajax_error.hbs      |    24 -
 .../ui/app/templates/common/app_tooltip.hbs     |    24 -
 .../resources/ui/app/templates/common/chart.hbs |    26 -
 .../ui/app/templates/common/config.hbs          |    37 -
 .../ui/app/templates/components/.gitkeep        |     0
 .../app/templates/components/configSection.hbs  |    78 -
 .../ui/app/templates/createAppWizard.hbs        |    43 -
 .../ui/app/templates/createAppWizard/step1.hbs  |   192 -
 .../ui/app/templates/createAppWizard/step2.hbs  |    62 -
 .../ui/app/templates/createAppWizard/step3.hbs  |    37 -
 .../ui/app/templates/createAppWizard/step4.hbs  |    41 -
 .../main/resources/ui/app/templates/index.hbs   |    21 -
 .../resources/ui/app/templates/slider_app.hbs   |    70 -
 .../ui/app/templates/slider_app/configs.hbs     |    40 -
 .../slider_app/destroy/destroy_popup.hbs        |    20 -
 .../slider_app/destroy/destroy_popup_footer.hbs |    28 -
 .../ui/app/templates/slider_app/flex_popup.hbs  |    40 -
 .../ui/app/templates/slider_app/summary.hbs     |   135 -
 .../resources/ui/app/templates/slider_apps.hbs  |    87 -
 .../ui/app/templates/slider_title_tooltip.hbs   |    27 -
 .../ui/app/templates/unavailable_apps.hbs       |    22 -
 .../src/main/resources/ui/app/translations.js   |   169 -
 .../src/main/resources/ui/app/views/.gitkeep    |     0
 .../resources/ui/app/views/application_view.js  |    70 -
 .../resources/ui/app/views/common/chart_view.js |   914 -
 .../ui/app/views/common/config_set_view.js      |    57 -
 .../ui/app/views/common/filter_view.js          |   370 -
 .../resources/ui/app/views/common/sort_view.js  |   206 -
 .../resources/ui/app/views/common/table_view.js |   418 -
 .../ui/app/views/createAppWizard/step1_view.js  |    47 -
 .../ui/app/views/createAppWizard/step2_view.js  |    33 -
 .../ui/app/views/createAppWizard/step3_view.js  |    25 -
 .../ui/app/views/createAppWizard/step4_view.js  |    24 -
 .../ui/app/views/create_app_wizard_view.js      |    80 -
 .../ui/app/views/slider_app/configs_view.js     |    57 -
 .../slider_app/destroy_modal_footer_view.js     |    41 -
 .../app/views/slider_app/destroy_popup_view.js  |    37 -
 .../views/slider_app/metrics/app_metric_view.js |    77 -
 .../views/slider_app/metrics/metric2_view.js    |    63 -
 .../views/slider_app/metrics/metric3_view.js    |    61 -
 .../views/slider_app/metrics/metric4_view.js    |    54 -
 .../app/views/slider_app/metrics/metric_view.js |    70 -
 .../ui/app/views/slider_app/summary_view.js     |   141 -
 .../resources/ui/app/views/slider_app_view.js   |    30 -
 .../resources/ui/app/views/slider_apps_view.js  |   175 -
 .../slider/src/main/resources/ui/config.js      |   123 -
 .../main/resources/ui/envs/development/env.js   |    21 -
 .../main/resources/ui/envs/production/env.js    |    21 -
 .../arraycontroller/arraycontroller.js.hbs      |    23 -
 .../generators/arraycontroller/generator.json   |    10 -
 .../ui/generators/component/component.hbs.hbs   |    19 -
 .../ui/generators/component/component.js.hbs    |    23 -
 .../ui/generators/component/generator.json      |    14 -
 .../ui/generators/controller/controller.js.hbs  |    23 -
 .../ui/generators/controller/generator.json     |    10 -
 .../ui/generators/helper/generator.json         |    10 -
 .../ui/generators/helper/helper.js.hbs          |    24 -
 .../ui/generators/model/generator.json          |    10 -
 .../resources/ui/generators/model/model.js.hbs  |    24 -
 .../ui/generators/route/generator.json          |    10 -
 .../resources/ui/generators/route/route.js.hbs  |    25 -
 .../ui/generators/template/generator.json       |    10 -
 .../ui/generators/template/template.hbs.hbs     |    19 -
 .../resources/ui/generators/view/generator.json |    10 -
 .../resources/ui/generators/view/view.js.hbs    |    23 -
 .../slider/src/main/resources/ui/karma.conf.js  |    94 -
 .../slider/src/main/resources/ui/package.json   |    38 -
 .../slider/src/main/resources/ui/runner.js      |   136 -
 .../views/slider/src/main/resources/ui/setup.js |    78 -
 .../slider/src/main/resources/ui/test/index.md  |    28 -
 .../ui/test/integration/pages/index_test.js     |   127 -
 .../integration/pages/slider_errors_test.js     |    63 -
 .../processes/create_new_app_test.js            |   358 -
 .../createAppWizard/step1_controller_test.js    |   431 -
 .../createAppWizard/step2_controller_test.js    |   403 -
 .../createAppWizard/step3_controller_test.js    |   421 -
 .../createAppWizard/step4_controller_test.js    |   440 -
 .../create_app_wizard_controller_test.js        |   201 -
 .../slider_app/summary_controller_test.js       |    36 -
 .../controllers/slider_app_controller_test.js   |   607 -
 .../controllers/slider_apps_controller_test.js  |    58 -
 .../unit/controllers/slider_controller_test.js  |   140 -
 .../unit/mappers/slider_apps_mapper_test.js     |    85 -
 .../unit/models/slider_app_component_test.js    |    51 -
 .../ui/test/unit/models/slider_app_test.js      |    95 -
 .../test/unit/views/common/table_view_test.js   |    35 -
 .../unit/views/slider_app/summary_view_test.js  |    68 -
 .../ui/vendor/scripts/common/bootstrap.js       |  1951 -
 .../ui/vendor/scripts/common/bs-basic.min.js    |     1 -
 .../ui/vendor/scripts/common/bs-button.min.js   |     1 -
 .../ui/vendor/scripts/common/bs-core.min.js     |     1 -
 .../ui/vendor/scripts/common/bs-modal.min.js    |     1 -
 .../ui/vendor/scripts/common/bs-nav.min.js      |     1 -
 .../ui/vendor/scripts/common/bs-popover.min.js  |     1 -
 .../vendor/scripts/common/console-polyfill.js   |    13 -
 .../ui/vendor/scripts/common/cubism.v1.js       |  1085 -
 .../resources/ui/vendor/scripts/common/d3.v2.js |  7033 ---
 .../vendor/scripts/common/ember-i18n-1.4.1.js   |   199 -
 .../ui/vendor/scripts/common/handlebars.js      |  2746 --
 .../ui/vendor/scripts/common/jquery.js          |  8829 ----
 .../ui/vendor/scripts/common/jquery.timeago.js  |   214 -
 .../ui/vendor/scripts/common/jquery.ui.core.js  |   334 -
 .../ui/vendor/scripts/common/jquery.ui.mouse.js |   175 -
 .../vendor/scripts/common/jquery.ui.sortable.js |  1088 -
 .../vendor/scripts/common/jquery.ui.widget.js   |   276 -
 .../ui/vendor/scripts/common/moment.min.js      |     7 -
 .../ui/vendor/scripts/common/rickshaw.js        |  2659 -
 .../resources/ui/vendor/scripts/common/tv4.js   |  1605 -
 .../ui/vendor/scripts/development/ember-data.js | 10620 ----
 .../ui/vendor/scripts/development/ember.js      | 43235 -----------------
 .../ui/vendor/scripts/production/ember-data.js  | 10626 ----
 .../ui/vendor/scripts/production/ember.js       | 41620 ----------------
 .../resources/ui/vendor/styles/bootstrap.css    |  5785 ---
 .../main/resources/ui/vendor/styles/cubism.css  |    82 -
 .../ui/vendor/styles/font-awesome-ie7.css       |  1203 -
 .../resources/ui/vendor/styles/font-awesome.css |  1479 -
 .../jquery-ui-1.8.16.custom.css                 |  1320 -
 .../resources/ui/vendor/styles/rickshaw.css     |   307 -
 .../src/main/resources/view.log4j.properties    |    27 -
 .../views/slider/src/main/resources/view.xml    |    82 -
 .../ambari/view/slider/SliderClientTest.java    |    31 -
 .../rest/client/SliderAppMasterClientTest.java  |   177 -
 260 files changed, 185176 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/pom.xml
----------------------------------------------------------------------
diff --git a/contrib/views/pom.xml b/contrib/views/pom.xml
index 402f7cd..b4bc128 100644
--- a/contrib/views/pom.xml
+++ b/contrib/views/pom.xml
@@ -41,7 +41,6 @@
     <module>files</module>
     <module>jobs</module>
     <module>pig</module>
-    <module>slider</module>
     <module>capacity-scheduler</module>
     <module>tez</module>
     <module>hawq</module>

http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/docs/index.md
----------------------------------------------------------------------
diff --git a/contrib/views/slider/docs/index.md b/contrib/views/slider/docs/index.md
deleted file mode 100644
index e2329fe..0000000
--- a/contrib/views/slider/docs/index.md
+++ /dev/null
@@ -1,164 +0,0 @@
-<!---
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements.  See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License.  You may obtain a copy of the License at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
--->
-# Slider Apps View
-
-## Security Guide
-*Slider Apps View* can optionally connect to a Kerberos secured cluster by following the below steps.
-
-### Step-1: Deploy a HDP cluster and secure it using *Kerberos*
-After deploying a HDP cluster through Ambari, it can be secured by using the *Enable Security* button in *Admin > Seurity* page.
-
-### Step-2: Create *Kerberos* principal for view
-We need to provide a *Kerberos* identity for the process in which the view is run. We shall identify the user as `view-principal`. **In this document `view-principal` can be changed to any suitable name.** Since views are generally hosted by Ambari server, typically this can be named as *ambari*.
-
-On the machine where *KDC Server* is hosted, create user principal by running below command
-
-```
-kadmin.local -q "addprinc -randkey view-principal@EXAMPLE.COM"
-```
-Next, extract keytab file 
-
-```
-kadmin.local -q "xst -k /path/to/keytab/view-principal.headless.keytab view-principal@EXAMPLE.COM"
-```
-The keytab file should then be copied over to the keytabs location on the host where the view is hosted.
-
-```
-cp /path/to/keytab/view-principal.headless.keytab /etc/security/keytabs/
-```
-
-Change file permissions so that only necessary users can access it.
-
-```
-chmod 440 /etc/security/keytabs/view-principal.headless.keytab
-```
-
-If the view is hosted by *ambari-server*, its Kerberos identity can be set by running the below command.
-
-```
-ambari-server setup-security
-```
-During *setup-security* the `view-principal` user should be provided along with the keytab. These same values will be provided as view parameters in *Step-4*.
-
-
-### Step-3: Configure *proxyuser* for created principal
-Add the following configurations in *Custom core-site* section of *HDFS* service.
-
-* hadoop.proxyuser.`view-principal`.groups = *
-* hadoop.proxyuser.`view-principal`.hosts = `view-server-host`
-
-This will in-turn show up in *core-site.xml* as
-
-```
-<property>
-  <name>hadoop.proxyuser.view-principal.groups</name>
-  <value>*</value>
-</property>
-
-<property>
-  <name>hadoop.proxyuser.view-principal.hosts</name>
-  <value>view-server-host.ambari.apache.org</value>
-</property>
-```
-Restart HDFS and YARN services.
-
-### Step-4: Create *Slider Apps View* with security parameters
-
-From *Ambari-Admin* create a *Slider Apps View* with the below parameters populated
-
-* slider.security.enabled = true
-* view.kerberos.principal = `view-principal`
-* view.kerberos.principal.keytab = `/etc/security/keytabs/view-principal.headless.keytab`
-
-### Step-5 Create *Kerberos* principal for *slider.user*
-We need to provide a *Kerberos* identity for the user identified in *slider.user* view parameter. 
-
-The *slider.user* view parameter has the following interpretations:
-
-* If the parameter is left blank, it means the user *yarn*. 
-* If it is `${username}`, it is the user logged into Ambari. 
-* Else, it is exact name of the user. 
-
-We shall assume the user as `slider-user`. In a secured cluster this user has to actually exist on all the hosts. The user should also have an *uid* greater than 1000.
-
-On the machine where *KDC Server* is hosted, create user principal by running below command
-
-```
-kadmin.local -q "addprinc -randkey slider-user@EXAMPLE.COM"
-```
-Next, extract keytab file 
-
-```
-kadmin.local -q "xst -k /path/to/keytab/slider-user.headless.keytab slider-user@EXAMPLE.COM"
-```
-The keytab file should then be copied over to the keytabs location on the host where the view is hosted.
-
-```
-cp /path/to/keytab/slider-user.headless.keytab /etc/security/keytabs/
-```
-
-Change file permissions so that only necessary users can access it.
-
-**Make sure that `slider-user` keytab is at /etc/security/keytabs/`slider-user`.headless.keytab**
-
-### Step-6 Create *Kerberos* principals for App launched by  *slider.user*
-Slider Apps contain services, and they might need their own identities when talking to HDFS and YARN. To support such Apps, keytabs have to be created that are required specifically for the Apps. Each keytab should contain the identity of the principal on all hosts where the application can run.
-
-By default, the following keytabs have to be created for specific Apps. This user has to exist on all hosts where containers are run:
-#### HBase
-For each host `host-name` in the cluster, do the following 
-
-* 
-```
-kadmin.local -q "addprinc -randkey slider-user/[host-name]@EXAMPLE.COM"
-```
-Next, extract identities on all hosts into a single keytab file 
-
-* 
-```
-kadmin.local -q "xst -k /path/to/keytab/slider-user.HBASE.service.keytab slider-user/[host-name]@EXAMPLE.COM"
-```
-
-The keytab file containing multiple identities should then be copied over to the keytabs location on the host where the view is hosted.
-
-```
-cp /path/to/keytab/slider-user.HBASE.service.keytab /etc/security/keytabs/
-```
-
-Change file permissions so that only necessary users can access it.
-
-#### Storm
-For each host `host-name` in the cluster, do the following 
-
-* 
-```
-kadmin.local -q "addprinc -randkey slider-user/[host-name]@EXAMPLE.COM"
-```
-Next, extract all identities into a single keytab file 
-
-* 
-```
-kadmin.local -q "xst -k /path/to/keytab/slider-user.STORM.nimbus.keytab slider-user/[host-name]@EXAMPLE.COM"
-kadmin.local -q "xst -k /path/to/keytab/slider-user.STORM.client.keytab slider-user@EXAMPLE.COM"
-```
-
-The keytab file containing multiple identities should then be copied over to the keytabs location on the host where the view is hosted.
-
-```
-cp /path/to/keytab/slider-user.STORM.nimbus.keytab /etc/security/keytabs/
-cp /path/to/keytab/slider-user.STORM.client.keytab /etc/security/keytabs/
-```
-
-Change file permissions so that only necessary users can access it.

http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/gzip-content.cmd
----------------------------------------------------------------------
diff --git a/contrib/views/slider/gzip-content.cmd b/contrib/views/slider/gzip-content.cmd
deleted file mode 100644
index 21838f8..0000000
--- a/contrib/views/slider/gzip-content.cmd
+++ /dev/null
@@ -1,17 +0,0 @@
-@echo off
-rem Licensed to the Apache Software Foundation (ASF) under one or more
-rem contributor license agreements.  See the NOTICE file distributed with
-rem this work for additional information regarding copyright ownership.
-rem The ASF licenses this file to You under the Apache License, Version 2.0
-rem (the "License"); you may not use this file except in compliance with
-rem the License.  You may obtain a copy of the License at
-rem
-rem     http://www.apache.org/licenses/LICENSE-2.0
-rem
-rem Unless required by applicable law or agreed to in writing, software
-rem distributed under the License is distributed on an "AS IS" BASIS,
-rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-rem See the License for the specific language governing permissions and
-rem limitations under the License.
-
-powershell -File %~dpn0.ps1 %* < NUL
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/gzip-content.ps1
----------------------------------------------------------------------
diff --git a/contrib/views/slider/gzip-content.ps1 b/contrib/views/slider/gzip-content.ps1
deleted file mode 100644
index a6042a1..0000000
--- a/contrib/views/slider/gzip-content.ps1
+++ /dev/null
@@ -1,81 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-# Stop on all errors
-$ErrorActionPreference = 'Stop';
-
-Function Gzip-File{
-   Param(
-        $inFile,
-        $outFile = ($inFile + ".gz"),
-        $force = $false
-        )
-  if(-not (Test-Path $inFile)) {
-    Write-Host "$inFile does not exist"
-    return $false
-  }
-  if((Test-Path $outFile)) {
-    if(-not $force) {
-      Write-Host "$outFile already exists"
-      return $true
-    } else {
-      Remove-Item $outFile
-    }
-  }
-  $inputStream = New-Object System.IO.FileStream $inFile, ([IO.FileMode]::Open), ([IO.FileAccess]::Read), ([IO.FileShare]::Read)
-  $outputStream = New-Object System.IO.FileStream $outFile, ([IO.FileMode]::Create), ([IO.FileAccess]::Write), ([IO.FileShare]::None)
-  $gzipStream = New-Object System.IO.Compression.GzipStream $outputStream, ([IO.Compression.CompressionMode]::Compress)
-
-  $buffer = New-Object byte[](1024)
-  while($true){
-    $read = $inputStream.Read($buffer, 0, 1024)
-    if ($read -le 0){break}
-    $gzipStream.Write($buffer, 0, $read)
-  }
-  $gzipStream.Close()
-  $outputStream.Close()
-  $inputStream.Close()
-  Remove-Item $inFile
-  return $true
-}
-
-$errorFound = $false
-$files = @()
-$force = $false
-ForEach ($arg in $args) {
-  if($arg -eq "-f" -or $arg -eq "--force") {
-    $force = $true
-    continue
-  }
-  $files += $arg
-}
-
-ForEach ($file in $files) {
-  $input = $file
-  $output = $file + ".gz";
-  Write-Host "Running: Gzip-File $input $output $force"
-  $success = Gzip-File $input $output $force
-  if(-not $success) {
-    $errorFound = $true
-  }
-}
-
-if ($errorFound) {
-  throw "Failed to gzip all files!"
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/pom.xml
----------------------------------------------------------------------
diff --git a/contrib/views/slider/pom.xml b/contrib/views/slider/pom.xml
deleted file mode 100644
index 21afd3d..0000000
--- a/contrib/views/slider/pom.xml
+++ /dev/null
@@ -1,463 +0,0 @@
-<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
-	license agreements. See the NOTICE file distributed with this work for additional
-	information regarding copyright ownership. The ASF licenses this file to
-	You under the Apache License, Version 2.0 (the "License"); you may not use
-	this file except in compliance with the License. You may obtain a copy of
-	the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
-	by applicable law or agreed to in writing, software distributed under the
-	License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
-	OF ANY KIND, either express or implied. See the License for the specific
-	language governing permissions and limitations under the License. -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ambari.contrib.views</groupId>
-  <artifactId>slider</artifactId>
-  <version>2.0.0.0-SNAPSHOT</version>
-  <name>Slider</name>
-
-  <parent>
-    <groupId>org.apache.ambari.contrib.views</groupId>
-    <artifactId>ambari-contrib-views</artifactId>
-    <version>2.0.0.0-SNAPSHOT</version>
-  </parent>
-
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.slider</groupId>
-      <artifactId>slider-core</artifactId>
-      <version>${slider.version}</version>
-      <exclusions>
-        <exclusion>
-          <groupId>org.apache.hadoop</groupId>
-          <artifactId>hadoop-yarn-api</artifactId>
-        </exclusion>
-      </exclusions>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.slider</groupId>
-      <artifactId>slider-agent</artifactId>
-      <version>${slider.version}</version>
-      <type>tar.gz</type>
-    </dependency>
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.easymock</groupId>
-      <artifactId>easymock</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>commons-configuration</groupId>
-      <artifactId>commons-configuration</artifactId>
-      <version>${commons-configuration.version}</version>
-      <exclusions>
-        <exclusion>
-          <groupId>commons-logging</groupId>
-          <artifactId>commons-logging</artifactId>
-        </exclusion>
-        <exclusion>
-          <groupId>commons-lang</groupId>
-          <artifactId>commons-lang</artifactId>
-        </exclusion>
-        <exclusion>
-          <groupId>commons-logging</groupId>
-          <artifactId>commons-logging</artifactId>
-        </exclusion>
-      </exclusions>
-    </dependency>
-    <dependency>
-      <groupId>commons-lang</groupId>
-      <artifactId>commons-lang</artifactId>
-      <version>${commons-lang.version}</version>
-      <exclusions>
-      </exclusions>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.httpcomponents</groupId>
-      <artifactId>httpclient</artifactId>
-      <version>${httpclient.version}</version>
-      <exclusions>
-      </exclusions>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.ambari</groupId>
-      <artifactId>ambari-views</artifactId>
-      <scope>provided</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.commons</groupId>
-      <artifactId>commons-compress</artifactId>
-      <version>${commons-compress.version}</version>
-    </dependency>
-    <dependency>
-      <groupId>com.google.inject</groupId>
-      <artifactId>guice</artifactId>
-      <version>${guice.version}</version>
-    </dependency>
-    <dependency>
-      <groupId>com.googlecode.json-simple</groupId>
-      <artifactId>json-simple</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>com.sun.jersey</groupId>
-      <artifactId>jersey-core</artifactId>
-      <version>${jersey.version}</version>
-    </dependency>
-    <dependency>
-      <groupId>com.sun.jersey</groupId>
-      <artifactId>jersey-client</artifactId>
-      <version>${jersey.version}</version>
-    </dependency>
-    <dependency>
-      <groupId>com.sun.jersey.contribs</groupId>
-      <artifactId>jersey-guice</artifactId>
-      <version>${jersey.version}</version>
-    </dependency>
-    <dependency>
-      <groupId>com.sun.jersey</groupId>
-      <artifactId>jersey-json</artifactId>
-      <version>${jersey.version}</version>
-    </dependency>
-    <dependency>
-      <groupId>com.sun.jersey</groupId>
-      <artifactId>jersey-server</artifactId>
-      <version>${jersey.version}</version>
-    </dependency>
-    <dependency>
-      <groupId>commons-io</groupId>
-      <artifactId>commons-io</artifactId>
-      <version>${commons-io.version}</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.ambari.contrib.views</groupId>
-      <artifactId>ambari-views-utils</artifactId>
-      <version>2.0.0.0-SNAPSHOT</version>
-    </dependency>
-  </dependencies>
-
-  <properties>
-    <ambari.dir>${project.parent.parent.parent.basedir}</ambari.dir>
-    <nodejs.directory>${basedir}/target/nodejs</nodejs.directory>
-    <npm.version>1.4.3</npm.version>
-    <ui.directory>${basedir}/src/main/resources/ui</ui.directory>
-    <commons-configuration.version>1.6</commons-configuration.version>
-    <commons-lang.version>2.6</commons-lang.version>
-    <commons-compress.version>1.9</commons-compress.version>
-    <httpclient.version>4.5.2</httpclient.version>
-    <slider.version>0.81.0-incubating-SNAPSHOT</slider.version>
-    <guice.version>3.0</guice.version>
-    <jackson.version>1.9.13</jackson.version>
-    <jersey.version>1.9</jersey.version>
-    <commons-io.version>2.4</commons-io.version>
-  </properties>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>exec-maven-plugin</artifactId>
-        <version>1.2.1</version>
-        <executions>
-          <execution>
-            <id>clean-rmdir</id>
-            <phase>clean</phase>
-            <goals>
-              <goal>exec</goal>
-            </goals>
-            <configuration>
-              <executable>${executable.rmdir}</executable>
-              <workingDirectory>${ui.directory}</workingDirectory>
-              <commandlineArgs>${args.rm.clean} public node_modules</commandlineArgs>
-              <successCodes>
-                <successCode>0</successCode>
-                <successCode>1</successCode>
-                <successCode>2</successCode>
-              </successCodes>
-            </configuration>
-          </execution>
-          <execution>
-            <id>clean-mkdir</id>
-            <phase>clean</phase>
-            <goals>
-              <goal>exec</goal>
-            </goals>
-            <configuration>
-              <executable>${executable.mkdir}</executable>
-              <workingDirectory>${ui.directory}</workingDirectory>
-              <commandlineArgs>${args.mkdir} public</commandlineArgs>
-            </configuration>
-          </execution>
-          <execution>
-            <id>slider-ui-compile-npm</id>
-            <phase>generate-resources</phase>
-            <goals>
-              <goal>exec</goal>
-            </goals>
-            <configuration>
-              <executable>${executable.npm}</executable>
-              <workingDirectory>${ui.directory}</workingDirectory>
-              <commandlineArgs>${args.npm} install</commandlineArgs>
-            </configuration>
-          </execution>
-          <execution>
-            <id>slider-ui-compile-brunch</id>
-            <phase>generate-resources</phase>
-            <goals>
-              <goal>exec</goal>
-            </goals>
-            <configuration>
-              <executable>${executable.brunch}</executable>
-              <workingDirectory>${ui.directory}</workingDirectory>
-              <commandlineArgs>${args.brunch} build</commandlineArgs>
-            </configuration>
-          </execution>
-          <execution>
-            <id>slider-ui-test</id>
-            <phase>test</phase>
-            <goals>
-              <goal>exec</goal>
-            </goals>
-            <configuration>
-              <skip>${skipTests}</skip>
-              <executable>${executable.npm}</executable>
-              <workingDirectory>${ui.directory}</workingDirectory>
-              <commandlineArgs>${args.npm} test</commandlineArgs>
-              <environmentVariables>
-                <PYTHON>${executable.python}</PYTHON>
-              </environmentVariables>
-            </configuration>
-          </execution>
-          <execution>
-            <id>gzip ambari-web content</id>
-            <phase>prepare-package</phase>
-            <goals>
-              <goal>exec</goal>
-            </goals>
-            <configuration>
-              <executable>${executable.gzip}</executable>
-              <workingDirectory>${ui.directory}</workingDirectory>
-              <arguments>
-                <argument>-f</argument>
-                <argument>public/javascripts/app.js</argument>
-                <argument>public/javascripts/vendor.js</argument>
-                <argument>public/stylesheets/app.css</argument>
-              </arguments>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-<!--
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-antrun-plugin</artifactId>
-        <version>1.7</version>
-        <executions>
-           <execution>
-            <id>prepare-package</id>
-            <phase>prepare-package</phase>
-            <goals>
-              <goal>run</goal>
-            </goals>
-            <configuration>
-              <target name="slider-ui-prepare-package">
-                <copy toDir="${project.build.directory}/ambari-server-${project.version}-dist/ambari-server-${project.version}/web/">
-                    <fileset dir="${ui.directory}/../ambari-web/public"/> </copy>
-              </target>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
--->
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <version>3.1</version>
-        <configuration>
-          <source>1.6</source>
-          <target>1.6</target>
-        </configuration>
-      </plugin>
-      <plugin>
-        <artifactId>maven-dependency-plugin</artifactId>
-        <executions>
-          <execution>
-            <id>copy-dependencies</id>
-            <phase>generate-resources</phase>
-            <goals>
-              <goal>copy-dependencies</goal>
-            </goals>
-            <configuration>
-              <outputDirectory>${project.build.directory}/lib</outputDirectory>
-              <includeScope>runtime</includeScope>
-              <excludeArtifactIds>slider-agent</excludeArtifactIds>
-            </configuration>
-          </execution>
-          <execution>
-            <id>copy-slider-agent-with-rename</id>
-            <phase>generate-resources</phase>
-            <goals>
-              <goal>copy-dependencies</goal>
-            </goals>
-            <configuration>
-              <outputDirectory>${project.build.directory}/lib</outputDirectory>
-              <includeScope>runtime</includeScope>
-              <stripVersion>true</stripVersion>
-              <includeArtifactIds>slider-agent</includeArtifactIds>
-            </configuration>
-          </execution>
-          <execution>
-            <id>copy-artifact</id>
-            <phase>package</phase>
-            <goals>
-              <goal>copy</goal>
-            </goals>
-            <configuration>
-              <artifactItems>
-                <artifactItem>
-                  <groupId>${project.groupId}</groupId>
-                  <artifactId>${project.artifactId}</artifactId>
-                  <version>${project.version}</version>
-                  <type>${project.packaging}</type>
-                </artifactItem>
-              </artifactItems>
-              <outputDirectory>${views.jars.dir.rel}</outputDirectory>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
-        <groupId>org.vafer</groupId>
-        <artifactId>jdeb</artifactId>
-        <version>1.0.1</version>
-        <executions>
-          <execution>
-            <phase>none</phase>
-            <goals>
-              <goal>jdeb</goal>
-            </goals>
-          </execution>
-        </executions>
-        <configuration>
-          <skip>true</skip>
-          <submodules>false</submodules>
-        </configuration>
-      </plugin>
-    </plugins>
-    <resources>
-      <resource>
-        <directory>src/main/resources</directory>
-        <filtering>true</filtering>
-        <includes>
-          <include>slider.properties</include>
-        </includes>
-      </resource>
-      <resource>
-        <directory>src/main/resources/</directory>
-        <filtering>false</filtering>
-        <includes>
-          <include>view.xml</include>
-          <include>view.log4j.properties</include>
-        </includes>
-      </resource>
-      <resource>
-        <directory>src/main/resources/ui/public</directory>
-        <filtering>false</filtering>
-      </resource>
-      <resource>
-        <targetPath>WEB-INF/lib</targetPath>
-        <filtering>false</filtering>
-        <directory>target/lib</directory>
-      </resource>
-    </resources>
-    <pluginManagement>
-      <plugins>
-        <!--This plugin's configuration is used to store Eclipse m2e settings
-            only. It has no influence on the Maven build itself. -->
-        <plugin>
-          <groupId>org.eclipse.m2e</groupId>
-          <artifactId>lifecycle-mapping</artifactId>
-          <version>1.0.0</version>
-          <configuration>
-            <lifecycleMappingMetadata>
-              <pluginExecutions>
-                <pluginExecution>
-                  <pluginExecutionFilter>
-                    <groupId>
-                      org.codehaus.mojo
-                    </groupId>
-                    <artifactId>
-                      exec-maven-plugin
-                    </artifactId>
-                    <versionRange>
-                      [1.2.1,)
-                    </versionRange>
-                    <goals>
-                      <goal>exec</goal>
-                    </goals>
-                  </pluginExecutionFilter>
-                  <action>
-                    <ignore></ignore>
-                  </action>
-                </pluginExecution>
-              </pluginExecutions>
-            </lifecycleMappingMetadata>
-          </configuration>
-        </plugin>
-      </plugins>
-    </pluginManagement>
-  </build>
-  <profiles>
-    <profile>
-      <id>windows</id>
-      <activation>
-        <os>
-          <family>win</family>
-        </os>
-      </activation>
-      <properties>
-        <envClassifier>win</envClassifier>
-        <dirsep>\</dirsep>
-        <executable.python>python</executable.python>
-        <executable.brunch>cmd</executable.brunch>
-        <args.brunch>/C brunch</args.brunch>
-        <executable.gzip>${project.basedir}\gzip-content.cmd</executable.gzip>
-        <executable.mkdir>cmd</executable.mkdir>
-        <args.mkdir>/C mkdir</args.mkdir>
-        <executable.npm>cmd</executable.npm>
-        <args.npm>/C npm</args.npm>
-        <executable.rmdir>cmd</executable.rmdir>
-        <args.rm.clean>/C rmdir /S /Q</args.rm.clean>
-        <executable.shell>cmd</executable.shell>
-        <fileextension.shell>cmd</fileextension.shell>
-      </properties>
-    </profile>
-    <profile>
-      <id>linux</id>
-      <activation>
-        <os>
-          <family>unix</family>
-        </os>
-      </activation>
-      <properties>
-        <envClassifier>linux</envClassifier>
-        <dirsep>/</dirsep>
-        <executable.python>${project.basedir}/../ambari-common/src/main/unix/ambari-python-wrap</executable.python>
-        <executable.brunch>brunch</executable.brunch>
-        <args.brunch></args.brunch>
-        <executable.gzip>gzip</executable.gzip>
-        <executable.mkdir>mkdir</executable.mkdir>
-        <args.mkdir></args.mkdir>
-        <executable.npm>npm</executable.npm>
-        <args.npm></args.npm>
-        <executable.rmdir>rm</executable.rmdir>
-        <args.rm.clean>-rf</args.rm.clean>
-        <executable.shell>sh</executable.shell>
-        <fileextension.shell>sh</fileextension.shell>
-      </properties>
-    </profile>
-  </profiles>
-</project>

http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/AlertField.java
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/AlertField.java b/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/AlertField.java
deleted file mode 100644
index 40fd97f..0000000
--- a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/AlertField.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ambari.view.slider;
-
-public enum AlertField {
-  /**
-   * Description of a service
-   */
-  description,
-  /**
-   * Host name where to which service belongs
-   */
-  host_name,
-  /**
-   * Last status
-   */
-  last_status,
-  /**
-   * Time when last status was checked
-   */
-  last_status_time,
-  /**
-   * Service
-   */
-  service_name,
-  /**
-   * Component name
-   */
-  component_name,
-  /**
-   * Same, as actual_status and last_status
-   */
-  status,
-  /**
-   * Time when status was checked
-   */
-  status_time,
-  /**
-   * Not yet used, for future purpose
-   */
-  output,
-  /**
-   * Same, as status and last_status
-   */
-  actual_status
-}

http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/AlertState.java
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/AlertState.java b/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/AlertState.java
deleted file mode 100644
index d239394..0000000
--- a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/AlertState.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ambari.view.slider;
-
-
-public enum AlertState {
-  /**
-   * Alert does not need to be distributed.  Normal Operation.
-   */
-  OK,
-  /**
-   * Alert indicates there may be an issue.  The component may be operating
-   * normally but may be in danger of becoming <code>CRITICAL</code>.
-   */
-  WARNING,
-  /**
-   * Indicates there is a critical situation that needs to be addressed.
-   */
-  CRITICAL,
-  /**
-   * The state of the alert is not known.
-   */
-  UNKNOWN
-}

http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/MetricsHolder.java
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/MetricsHolder.java b/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/MetricsHolder.java
deleted file mode 100644
index 212092e..0000000
--- a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/MetricsHolder.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ambari.view.slider;
-
-import org.apache.ambari.view.slider.rest.client.Metric;
-
-import java.util.Map;
-
-public class MetricsHolder {
-  private Map<String, Map<String, Map<String, Metric>>> jmxMetrics;
-  private Map<String, Map<String, Map<String, Metric>>> timelineMetrics;
-
-  public Map<String, Map<String, Map<String, Metric>>> getJmxMetrics() {
-    return jmxMetrics;
-  }
-
-  public void setJmxMetrics(Map<String, Map<String, Map<String, Metric>>> jmxMetrics) {
-    this.jmxMetrics = jmxMetrics;
-  }
-
-  public Map<String, Map<String, Map<String, Metric>>> getTimelineMetrics() {
-    return timelineMetrics;
-  }
-
-  public void setTimelineMetrics(Map<String, Map<String, Map<String, Metric>>> timelineMetrics) {
-    this.timelineMetrics = timelineMetrics;
-  }
-}

http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderApp.java
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderApp.java b/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderApp.java
deleted file mode 100644
index 25b1e17..0000000
--- a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderApp.java
+++ /dev/null
@@ -1,198 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ambari.view.slider;
-
-import java.util.List;
-import java.util.Map;
-
-public class SliderApp {
-  public static final String STATE_FROZEN = "FROZEN";
-
-  private String id;
-  private String yarnId;
-  private String name;
-  private String appVersion;
-  private String description;
-  private String type;
-  private String typeId;
-  private String user;
-  private String state;
-  private String diagnostics;
-  private long startTime;
-  private long endTime;
-  private Map<String, String> jmx;
-  private Map<String, String> urls;
-  private Map<String, Map<String, String>> configs;
-  private Map<String, SliderAppComponent> components;
-  private Map<String, Number[][]> metrics;
-  private Map<String, Object> alerts;
-  private List<String> supportedMetrics;
-
-  public String getName() {
-    return name;
-  }
-
-  public void setName(String name) {
-    this.name = name;
-  }
-
-  public String getId() {
-    return id;
-  }
-
-  public void setId(String id) {
-    this.id = id;
-  }
-
-  public String getYarnId() {
-    return yarnId;
-  }
-
-  public void setYarnId(String yarnId) {
-    this.yarnId = yarnId;
-  }
-
-  public String getType() {
-    return type;
-  }
-
-  public void setType(String type) {
-    this.type = type;
-  }
-
-  public String getUser() {
-    return user;
-  }
-
-  public void setUser(String user) {
-    this.user = user;
-  }
-
-  public String getState() {
-    return state;
-  }
-
-  public void setState(String state) {
-    this.state = state;
-  }
-
-  public String getDiagnostics() {
-    return diagnostics;
-  }
-
-  public void setDiagnostics(String diagnostics) {
-    this.diagnostics = diagnostics;
-  }
-
-  public Map<String, String> getJmx() {
-    return jmx;
-  }
-
-  public void setJmx(Map<String, String> jmx) {
-    this.jmx = jmx;
-  }
-
-  public Map<String, String> getUrls() {
-    return urls;
-  }
-
-  public void setUrls(Map<String, String> urls) {
-    this.urls = urls;
-  }
-
-  public Map<String, Map<String, String>> getConfigs() {
-    return configs;
-  }
-
-  public void setConfigs(Map<String, Map<String, String>> configs) {
-    this.configs = configs;
-  }
-
-  public Map<String, SliderAppComponent> getComponents() {
-    return components;
-  }
-
-  public void setComponents(Map<String, SliderAppComponent> components) {
-    this.components = components;
-  }
-
-  public Map<String, Number[][]> getMetrics() {
-    return metrics;
-  }
-
-  public void setMetrics(Map<String, Number[][]> metrics) {
-    this.metrics = metrics;
-  }
-
-  public List<String> getSupportedMetrics() {
-    return supportedMetrics;
-  }
-
-  public void setSupportedMetrics(List<String> supportedMetrics) {
-    this.supportedMetrics = supportedMetrics;
-  }
-
-  public long getStartTime() {
-    return startTime;
-  }
-
-  public void setStartTime(long startTime) {
-    this.startTime = startTime;
-  }
-
-  public long getEndTime() {
-    return endTime;
-  }
-
-  public void setEndTime(long endTime) {
-    this.endTime = endTime;
-  }
-
-  public String getDescription() {
-    return description;
-  }
-
-  public void setDescription(String description) {
-    this.description = description;
-  }
-
-  public String getAppVersion() {
-    return appVersion;
-  }
-
-  public void setAppVersion(String appVersion) {
-    this.appVersion = appVersion;
-  }
-
-  public Map<String, Object> getAlerts() {
-    return alerts;
-  }
-
-  public void setAlerts(Map<String, Object> alerts) {
-    this.alerts = alerts;
-  }
-
-  public String getTypeId() {
-    return typeId;
-  }
-
-  public void setTypeId(String typeId) {
-    this.typeId = typeId;
-  }
-}

http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppComponent.java
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppComponent.java b/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppComponent.java
deleted file mode 100644
index 2d86085..0000000
--- a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppComponent.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ambari.view.slider;
-
-import java.util.Map;
-
-public class SliderAppComponent {
-	private String componentName;
-	private int instanceCount;
-	private Map<String, Map<String, String>> activeContainers;
-	private Map<String, Map<String, String>> completedContainers;
-
-	public String getComponentName() {
-		return componentName;
-	}
-
-	public void setComponentName(String componentName) {
-		this.componentName = componentName;
-	}
-
-	public int getInstanceCount() {
-		return instanceCount;
-	}
-
-	public void setInstanceCount(int instanceCount) {
-		this.instanceCount = instanceCount;
-	}
-
-	public Map<String, Map<String, String>> getActiveContainers() {
-		return activeContainers;
-	}
-
-	public void setActiveContainers(
-	    Map<String, Map<String, String>> activeContainers) {
-		this.activeContainers = activeContainers;
-	}
-
-	public Map<String, Map<String, String>> getCompletedContainers() {
-		return completedContainers;
-	}
-
-	public void setCompletedContainers(
-	    Map<String, Map<String, String>> completedContainers) {
-		this.completedContainers = completedContainers;
-	}
-}

http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppType.java
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppType.java b/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppType.java
deleted file mode 100644
index 99d1c3f..0000000
--- a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppType.java
+++ /dev/null
@@ -1,107 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ambari.view.slider;
-
-import java.util.List;
-import java.util.Map;
-
-import com.google.gson.JsonObject;
-
-public class SliderAppType {
-  private String id;
-  private String typeName;
-  private String typeVersion;
-  private String typeDescription;
-  Map<String, String> typeConfigsUnsecured;
-  Map<String, String> typeConfigsSecured;
-  private Map<String, String> typeConfigs;
-  private List<SliderAppTypeComponent> typeComponents;
-  private String typePackageFileName;
-  private List<String> supportedMetrics;
-  JsonObject resourcesSecured;
-  JsonObject resourcesUnsecured;
-
-  public List<String> getSupportedMetrics() {
-    return supportedMetrics;
-  }
-
-  public void setSupportedMetrics(List<String> supportedMetrics) {
-    this.supportedMetrics = supportedMetrics;
-  }
-
-  public String getId() {
-    return id;
-  }
-
-  public void setId(String id) {
-    this.id = id;
-  }
-
-  public String getTypeName() {
-    return typeName;
-  }
-
-  public void setTypeName(String name) {
-    this.typeName = name;
-  }
-
-  public String getTypeDescription() {
-    return typeDescription;
-  }
-
-  public void setTypeDescription(String description) {
-    this.typeDescription = description;
-  }
-
-  public Map<String, String> getTypeConfigs() {
-    return typeConfigs;
-  }
-
-  public void setTypeConfigs(Map<String, String> configs) {
-    this.typeConfigs = configs;
-  }
-
-  public List<SliderAppTypeComponent> getTypeComponents() {
-    return typeComponents;
-  }
-
-  public void setTypeComponents(List<SliderAppTypeComponent> components) {
-    this.typeComponents = components;
-  }
-
-  public String getTypeVersion() {
-    return typeVersion;
-  }
-
-  public void setTypeVersion(String version) {
-    this.typeVersion = version;
-  }
-
-  public String getTypePackageFileName() {
-    return typePackageFileName;
-  }
-
-  public void setTypePackageFileName(String typePackageFileName) {
-    this.typePackageFileName = typePackageFileName;
-  }
-
-  public String uniqueName() {
-    return getTypeName() + "-" + getTypeVersion();
-  }
-}

http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppTypeComponent.java
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppTypeComponent.java b/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppTypeComponent.java
deleted file mode 100644
index aa6c922..0000000
--- a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppTypeComponent.java
+++ /dev/null
@@ -1,103 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ambari.view.slider;
-
-public class SliderAppTypeComponent {
-	private String id;
-	private String name;
-	private String category;
-	private String displayName;
-	private int priority;
-	private int instanceCount;
-	private int maxInstanceCount;
-	private int yarnMemory;
-	private int yarnCpuCores;
-
-	public String getId() {
-		return id;
-	}
-
-	public void setId(String id) {
-		this.id = id;
-	}
-
-	public String getName() {
-		return name;
-	}
-
-	public void setName(String name) {
-		this.name = name;
-	}
-
-	public String getDisplayName() {
-		return displayName;
-	}
-
-	public void setDisplayName(String displayName) {
-		this.displayName = displayName;
-	}
-
-	public int getPriority() {
-		return priority;
-	}
-
-	public void setPriority(int priority) {
-		this.priority = priority;
-	}
-
-	public int getInstanceCount() {
-		return instanceCount;
-	}
-
-	public void setInstanceCount(int instanceCount) {
-		this.instanceCount = instanceCount;
-	}
-
-	public int getYarnMemory() {
-		return yarnMemory;
-	}
-
-	public void setYarnMemory(int yarnMemory) {
-		this.yarnMemory = yarnMemory;
-	}
-
-	public int getYarnCpuCores() {
-		return yarnCpuCores;
-	}
-
-	public void setYarnCpuCores(int yarnCpuCores) {
-		this.yarnCpuCores = yarnCpuCores;
-	}
-
-	public int getMaxInstanceCount() {
-		return maxInstanceCount;
-	}
-
-	public void setMaxInstanceCount(int maxInstanceCount) {
-		this.maxInstanceCount = maxInstanceCount;
-	}
-
-	public String getCategory() {
-		return category;
-	}
-
-	public void setCategory(String category) {
-		this.category = category;
-	}
-}

http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppTypesResourceProvider.java
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppTypesResourceProvider.java b/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppTypesResourceProvider.java
deleted file mode 100644
index 2167748..0000000
--- a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppTypesResourceProvider.java
+++ /dev/null
@@ -1,94 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ambari.view.slider;
-
-import java.io.IOException;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import org.apache.ambari.view.NoSuchResourceException;
-import org.apache.ambari.view.ReadRequest;
-import org.apache.ambari.view.ResourceAlreadyExistsException;
-import org.apache.ambari.view.ResourceProvider;
-import org.apache.ambari.view.SystemException;
-import org.apache.ambari.view.UnsupportedPropertyException;
-import org.apache.hadoop.yarn.exceptions.YarnException;
-
-import com.google.inject.Inject;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class SliderAppTypesResourceProvider implements
-    ResourceProvider<SliderAppType> {
-
-	private static final Logger logger = LoggerFactory
-	    .getLogger(SliderAppTypesResourceProvider.class);
-	@Inject
-	private SliderAppsViewController sliderController;
-
-	@Override
-	public void createResource(String resourceId, Map<String, Object> properties)
-	    throws SystemException, ResourceAlreadyExistsException,
-	    NoSuchResourceException, UnsupportedPropertyException {
-		// TODO Auto-generated method stub
-	}
-
-	@Override
-	public boolean deleteResource(String resourceId) throws SystemException,
-	    NoSuchResourceException, UnsupportedPropertyException {
-		// TODO Auto-generated method stub
-		return false;
-	}
-
-	@Override
-	public SliderAppType getResource(String appTypeId, Set<String> properties)
-	    throws SystemException, NoSuchResourceException,
-	    UnsupportedPropertyException {
-			SliderAppType sliderAppType = sliderController.getSliderAppType(appTypeId,
-			    properties);
-			if (sliderAppType == null)
-				throw new NoSuchResourceException(appTypeId);
-			return sliderAppType;
-	}
-
-	@Override
-	public Set<SliderAppType> getResources(ReadRequest request)
-	    throws SystemException, NoSuchResourceException,
-	    UnsupportedPropertyException {
-		Set<SliderAppType> appSet = new HashSet<SliderAppType>();
-			List<SliderAppType> sliderAppTypes = sliderController.getSliderAppTypes(request
-			    .getPropertyIds());
-            if (sliderAppTypes != null) {
-              for (SliderAppType app : sliderAppTypes)
-                appSet.add(app);
-            }
-		return appSet;
-	}
-
-	@Override
-	public boolean updateResource(String resourceId,
-	    Map<String, Object> properties) throws SystemException,
-	    NoSuchResourceException, UnsupportedPropertyException {
-		// TODO Auto-generated method stub
-		return false;
-	}
-
-}

http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsAlerts.java
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsAlerts.java b/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsAlerts.java
deleted file mode 100644
index 375e294..0000000
--- a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsAlerts.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ambari.view.slider;
-
-import com.google.inject.Singleton;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import java.lang.Exception;
-import java.util.*;
-
-@Singleton
-public class SliderAppsAlerts {
-  private static final Logger logger = LoggerFactory
-     .getLogger(SliderAppsAlerts.class);
-
-  public Map<String, Object> generateComponentsAlerts(Map<String, SliderAppComponent> components, String service){
-     HashMap<String, Object> result = new HashMap<String, Object>();
-     Set<Map<AlertField,Object>> details = buildAlertsDetails(components, service);
-
-    result.put("detail", details);
-    result.put("summary", buildAlertsSummary(details));
-
-    return result;
-  }
-
-  private Map<AlertState,Integer> buildAlertsSummary(Set<Map<AlertField,Object>> details){
-    Map<AlertState,Integer> result = new HashMap<AlertState, Integer>();
-
-    // Initial filling of map with available states
-    for (AlertState state:AlertState.values()){
-      result.put(state, 0);
-    }
-
-    for(Map<AlertField,Object> item:details){
-      AlertState state = (AlertState)item.get(AlertField.status);
-      result.put(state,result.get(state)+1);
-    }
-    return result;
-  }
-
-  private Set<Map<AlertField,Object>> buildAlertsDetails(Map<String, SliderAppComponent> components, String service){
-    HashSet<Map<AlertField,Object>> resultList = new HashSet<Map<AlertField, Object>>();
-    for (String componentKey:components.keySet()){
-      resultList.add(buildComponentAlert(components.get(componentKey), service));
-    }
-    return  resultList;
-  }
-
-  private Map<AlertField,Object> buildComponentAlert(SliderAppComponent component, String service){
-    HashMap<AlertField,Object> alertItem = new HashMap<AlertField, Object>();
-    Date date = Calendar.getInstance().getTime();
-
-    int totalContainerCount = component.getInstanceCount();
-    int activeContainerCount = component.getActiveContainers() != null ? component
-        .getActiveContainers().size() : 0;
-    AlertState state = AlertState.UNKNOWN;
-    String message = String.format("%s out of %s active", activeContainerCount,
-        totalContainerCount);
-    if (totalContainerCount == activeContainerCount || totalContainerCount < 1) {
-      // Everything OK
-      state = AlertState.OK;
-    } else {
-      float fraction = (float) activeContainerCount / (float) totalContainerCount;
-      if (fraction <= 0.2) { // less than or equal to 20%
-        state = AlertState.WARNING;
-      } else {
-        state = AlertState.CRITICAL;
-      }
-    }
-    alertItem.put(AlertField.description, String.format("%s component",component.getComponentName()));
-    alertItem.put(AlertField.host_name, getComponentHostName(component));
-    alertItem.put(AlertField.last_status, state);
-
-    alertItem.put(AlertField.last_status_time, new java.sql.Timestamp(date.getTime()));
-
-    alertItem.put(AlertField.service_name, service.toUpperCase());
-    alertItem.put(AlertField.component_name, component.getComponentName());
-    alertItem.put(AlertField.status, state);
-    alertItem.put(AlertField.status_time, new java.sql.Timestamp(date.getTime()));
-    alertItem.put(AlertField.output, message);
-    alertItem.put(AlertField.actual_status, state);
-    return alertItem;
-  }
-
-  @SuppressWarnings("unchecked")
-  private String getComponentHostName(SliderAppComponent component){
-    Map<String,Map<String,String>> containers = null;
-
-    if (component.getActiveContainers().size() > 0){
-      containers = component.getActiveContainers();
-    }
-
-    if (component.getCompletedContainers().size() > 0 && containers == null) {
-      containers =component.getCompletedContainers();
-    }
-
-
-    if (containers != null){
-      try {
-        // try to obtain host name from any first available container
-        return ((Map<String,String>)containers.values().toArray()[0]).get("host");
-      } catch (Exception e){
-        if (logger.isDebugEnabled()){
-          logger.warn("Couldn't obtain host name for the component", e);
-        }
-      }
-    }
-    return null;
-  }
-}

http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsConfiguration.java
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsConfiguration.java b/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsConfiguration.java
deleted file mode 100644
index a02a668..0000000
--- a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsConfiguration.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ambari.view.slider;
-
-import org.apache.commons.configuration.ConfigurationException;
-import org.apache.commons.configuration.PropertiesConfiguration;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class SliderAppsConfiguration {
-
-	public static final SliderAppsConfiguration INSTANCE = new SliderAppsConfiguration();
-	private static final Logger logger = LoggerFactory
-	    .getLogger(SliderAppsConfiguration.class);
-	private static final String SLIDER_APPS_PROPERTIES_FILE = "/slider.properties";
-	private PropertiesConfiguration propertiesConfig = null;
-
-	private PropertiesConfiguration getConfiguration()
-	    throws ConfigurationException {
-		if (propertiesConfig == null) {
-			propertiesConfig = new PropertiesConfiguration();
-			propertiesConfig.load(getClass().getResourceAsStream(
-			    SLIDER_APPS_PROPERTIES_FILE));
-		}
-		return propertiesConfig;
-	}
-
-	public String getVersion() {
-		try {
-			return getConfiguration().getString("slider.view.version");
-		} catch (ConfigurationException e) {
-			logger.warn("Unable to get version configuration", e);
-		}
-		return null;
-	}
-}

http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsResourceProvider.java
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsResourceProvider.java b/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsResourceProvider.java
deleted file mode 100644
index 1a92130..0000000
--- a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsResourceProvider.java
+++ /dev/null
@@ -1,124 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ambari.view.slider;
-
-import java.io.IOException;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import org.apache.ambari.view.NoSuchResourceException;
-import org.apache.ambari.view.ReadRequest;
-import org.apache.ambari.view.ResourceAlreadyExistsException;
-import org.apache.ambari.view.ResourceProvider;
-import org.apache.ambari.view.SystemException;
-import org.apache.ambari.view.UnsupportedPropertyException;
-import org.apache.hadoop.yarn.exceptions.YarnException;
-
-import com.google.inject.Inject;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class SliderAppsResourceProvider implements ResourceProvider<SliderApp> {
-
-	private static final Logger logger = LoggerFactory
-	    .getLogger(SliderAppsResourceProvider.class);
-	@Inject
-	private SliderAppsViewController sliderController;
-
-	@Override
-	public void createResource(String resourceId, Map<String, Object> properties)
-	    throws SystemException, ResourceAlreadyExistsException,
-	    NoSuchResourceException, UnsupportedPropertyException {
-		// TODO Auto-generated method stub
-	}
-
-	@Override
-	public boolean deleteResource(String resourceId) throws SystemException,
-	    NoSuchResourceException, UnsupportedPropertyException {
-		try {
-			sliderController.deleteSliderApp(resourceId);
-			return true;
-		} catch (YarnException e) {
-			logger.warn("Unable to delete Slider app with id " + resourceId, e);
-			throw new SystemException(e.getMessage(), e);
-		} catch (IOException e) {
-			logger.warn("Unable to delete Slider app with id " + resourceId, e);
-			throw new SystemException(e.getMessage(), e);
-		} catch (InterruptedException e) {
-		    logger.warn("Unable to delete Slider app with id " + resourceId, e);
-            throw new SystemException(e.getMessage(), e);
-        }
-	}
-
-	@Override
-	public SliderApp getResource(String resourceId, Set<String> properties)
-	    throws SystemException, NoSuchResourceException,
-	    UnsupportedPropertyException {
-		try {
-			SliderApp sliderApp = sliderController.getSliderApp(resourceId,
-			    properties);
-			if (sliderApp == null)
-				throw new NoSuchResourceException(resourceId);
-			return sliderApp;
-		} catch (YarnException e) {
-			logger.warn("Unable to determine Slider app with id " + resourceId, e);
-			throw new SystemException(e.getMessage(), e);
-		} catch (IOException e) {
-			logger.warn("Unable to determine Slider app with id " + resourceId, e);
-			throw new SystemException(e.getMessage(), e);
-		} catch (InterruptedException e) {
-		    logger.warn("Unable to determine Slider app with id " + resourceId, e);
-            throw new SystemException(e.getMessage(), e);
-        }
-	}
-
-	@Override
-	public Set<SliderApp> getResources(ReadRequest request)
-	    throws SystemException, NoSuchResourceException,
-	    UnsupportedPropertyException {
-		Set<SliderApp> appSet = new HashSet<SliderApp>();
-		try {
-			List<SliderApp> sliderApps = sliderController.getSliderApps(request
-			    .getPropertyIds());
-			for (SliderApp app : sliderApps)
-				appSet.add(app);
-		} catch (YarnException e) {
-			logger.warn("Unable to determine Slider apps", e);
-			throw new SystemException(e.getMessage(), e);
-		} catch (IOException e) {
-			logger.warn("Unable to determine Slider apps", e);
-			throw new SystemException(e.getMessage(), e);
-		} catch (InterruptedException e) {
-		    logger.warn("Unable to determine Slider apps", e);
-            throw new SystemException(e.getMessage(), e);
-        }
-		return appSet;
-	}
-
-	@Override
-	public boolean updateResource(String resourceId,
-	    Map<String, Object> properties) throws SystemException,
-	    NoSuchResourceException, UnsupportedPropertyException {
-		// TODO Auto-generated method stub
-		return false;
-	}
-
-}

http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewController.java
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewController.java b/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewController.java
deleted file mode 100644
index a574d2d..0000000
--- a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewController.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ambari.view.slider;
-
-import java.io.IOException;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import org.apache.hadoop.yarn.exceptions.YarnException;
-
-import com.google.gson.JsonObject;
-import com.google.inject.ImplementedBy;
-
-@ImplementedBy(SliderAppsViewControllerImpl.class)
-public interface SliderAppsViewController {
-
-  public static final String PARAM_AMBARI_CLUSTER_API = "ambari.server.url";
-  public static final String PARAM_AMBARI_USERNAME = "ambari.server.username";
-  public static final String PARAM_AMBARI_PASSWORD = "ambari.server.password";
-  public static final String PARAM_SLIDER_USER = "slider.user";
-  public static final String PARAM_VIEW_PRINCIPAL = "view.kerberos.principal";
-  public static final String PARAM_VIEW_PRINCIPAL_KEYTAB= "view.kerberos.principal.keytab";
-
-  public static final String PROPERTY_SLIDER_ZK_QUORUM = "slider.zookeeper.quorum";
-  public static final String PROPERTY_METRICS_SERVER_HOSTNAME = "site.global.metric_collector_host";
-  public static final String PROPERTY_METRICS_SERVER_PORT = "site.global.metric_collector_port";
-  public static final String PROPERTY_METRICS_LIBRARY_PATH = "site.global.metric_collector_lib";
-  public static final String PROPERTY_YARN_RM_WEBAPP_URL = "yarn.rm.webapp.url";
-  public static final String PROPERTY_SLIDER_USER = "view.slider.user";
-  public static final String PROPERTY_JAVA_HOME = "java.home";
-  public static final String PROPERTY_SLIDER_SECURITY_ENABLED = "slider.security.enabled";
-
-  public static final String METRICS_API_NAME = "Metrics API";
-
-  public ViewStatus getViewStatus();
-
-  /**
-   * Provides information about requested Slider App.
-   * 
-   * @param applicationId
-   * @param properties
-   *          Identifies specific properties to show up. Provide
-   *          <code>null</code> for default properties.
-   * @return
-   * @throws YarnException
-   * @throws IOException
-   * @throws InterruptedException 
-   */
-  public SliderApp getSliderApp(String applicationId, Set<String> properties)
-      throws YarnException, IOException, InterruptedException;
-
-  /**
-   * Provides list of Slider apps with requested properties populated.
-   * 
-   * @param properties
-   *          Identifies specific properties to show up. Provide
-   *          <code>null</code> for default properties.
-   * @return
-   * @throws YarnException
-   * @throws IOException
-   * @throws InterruptedException 
-   */
-  public List<SliderApp> getSliderApps(Set<String> properties)
-      throws YarnException, IOException, InterruptedException;
-
-  /**
-   * Attempts to delete a Slider app. An unsuccessful attempt will result in
-   * exception.
-   * 
-   * @param applicationId
-   * @throws YarnException
-   * @throws IOException
-   * @throws InterruptedException 
-   */
-  public void deleteSliderApp(String applicationId) throws YarnException,
-      IOException, InterruptedException;
-
-  public SliderAppType getSliderAppType(String appTypeId, Set<String> properties);
-
-  public List<SliderAppType> getSliderAppTypes(Set<String> properties);
-
-  public String createSliderApp(JsonObject requestJson) throws IOException,
-      YarnException, InterruptedException;
-
-  public void freezeApp(String appId) throws YarnException, IOException,
-      InterruptedException;
-
-  public void thawApp(String appId) throws YarnException, IOException,
-      InterruptedException;
-
-  public void flexApp(String appId, Map<String, Integer> componentsMap)
-      throws YarnException, IOException, InterruptedException;
-
-  public boolean appExists(String string) throws IOException, InterruptedException, YarnException;
-}


Mime
View raw message