ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbhowm...@apache.org
Subject [02/10] ambari git commit: AMBARI-17079. Moved Hue to Ambari migrator to standard view architecture (Pradarttana Panda via dipayanb)
Date Thu, 30 Jun 2016 06:55:32 GMT
http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.gitignore
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.gitignore b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.gitignore
new file mode 100644
index 0000000..f7245d9
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.gitignore
@@ -0,0 +1,44 @@
+# See http://help.github.com/ignore-files/ for more about ignoring files.
+
+# compiled output
+/dist
+/tmp
+
+# NPM packages folder.
+
+node_modules/
+bower_components/
+node/
+
+# misc
+/.sass-cache
+/connect.lock
+/coverage/*
+/libpeerconnection.log
+npm-debug.log
+testem.log
+
+/.idea
+
+# Numerous always-ignore extensions
+*.diff
+*.err
+*.orig
+*.log
+*.rej
+*.swo
+*.swp
+*.vi
+*~
+*.sass-cache
+
+# OS or Editor folders
+.DS_Store
+.cache
+.project
+.settings
+.tmproj
+dist
+nbproject
+Thumbs.db
+

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.jshintrc
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.jshintrc b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.jshintrc
new file mode 100644
index 0000000..08096ef
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.jshintrc
@@ -0,0 +1,32 @@
+{
+  "predef": [
+    "document",
+    "window",
+    "-Promise"
+  ],
+  "browser": true,
+  "boss": true,
+  "curly": true,
+  "debug": false,
+  "devel": true,
+  "eqeqeq": true,
+  "evil": true,
+  "forin": false,
+  "immed": false,
+  "laxbreak": false,
+  "newcap": true,
+  "noarg": true,
+  "noempty": false,
+  "nonew": false,
+  "nomen": false,
+  "onevar": false,
+  "plusplus": false,
+  "regexp": false,
+  "undef": true,
+  "sub": true,
+  "strict": false,
+  "white": false,
+  "eqnull": true,
+  "esnext": true,
+  "unused": true
+}

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.travis.yml
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.travis.yml b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.travis.yml
new file mode 100644
index 0000000..ba472d4
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.travis.yml
@@ -0,0 +1,38 @@
+# 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.
+
+---
+language: node_js
+node_js:
+  - "4"
+
+sudo: false
+
+cache:
+  directories:
+    - node_modules
+
+before_install:
+  - npm config set spin false
+  - npm install -g bower
+  - npm install phantomjs-prebuilt
+
+install:
+  - npm install
+  - bower install
+
+script:
+  - npm test

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.watchmanconfig
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.watchmanconfig b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.watchmanconfig
new file mode 100644
index 0000000..6ec27cc
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.watchmanconfig
@@ -0,0 +1,21 @@
+/**
+ * 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.
+ */
+
+{
+  "ignore_dirs": ["tmp", "dist"]
+}

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/README.md
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/README.md b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/README.md
new file mode 100644
index 0000000..1d1a14f
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/README.md
@@ -0,0 +1,67 @@
+<!---
+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.
+-->
+# Hueambarimigration-view
+
+This README outlines the details of collaborating on this Ember application.
+A short introduction of this app could easily go here.
+
+## Prerequisites
+
+You will need the following things properly installed on your computer.
+
+* [Git](http://git-scm.com/)
+* [Node.js](http://nodejs.org/) (with NPM)
+* [Bower](http://bower.io/)
+* [Ember CLI](http://ember-cli.com/)
+* [PhantomJS](http://phantomjs.org/)
+
+## Installation
+
+* `git clone <repository-url>` this repository
+* change into the new directory
+* `npm install`
+* `bower install`
+
+## Running / Development
+
+* `ember server`
+* Visit your app at [http://localhost:4200](http://localhost:4200).
+
+### Code Generators
+
+Make use of the many generators for code, try `ember help generate` for more details
+
+### Running Tests
+
+* `ember test`
+* `ember test --server`
+
+### Building
+
+* `ember build` (development)
+* `ember build --environment production` (production)
+
+### Deploying
+
+Specify what it takes to deploy your app.
+
+## Further Reading / Useful Links
+
+* [ember.js](http://emberjs.com/)
+* [ember-cli](http://ember-cli.com/)
+* Development Browser Extensions
+  * [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)
+  * [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)
+

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/adapters/application.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/adapters/application.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/adapters/application.js
new file mode 100644
index 0000000..d096f68
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/adapters/application.js
@@ -0,0 +1,47 @@
+/**
+ * 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.
+ */
+
+import DS from 'ember-data';
+import Ember from 'ember';
+
+export default DS.RESTAdapter.extend({
+  namespace: Ember.computed(function() {
+    var parts = window.location.pathname.match(/\/[^\/]*/g);
+    var view = parts[1];
+    var version = '/versions' + parts[2];
+    var instance = parts[3];
+    if (parts.length === 4) { // version is not present
+      instance = parts[2];
+      version = '';
+    }
+    return 'api/v1/views' + view + version + '/instances' + instance + '/resources';
+   //return "";
+  }),
+
+   handleResponse: function(status, headers, payload){
+      if(status === 500 && payload){
+        return payload;
+      }
+      return this._super(...arguments);
+    },
+
+  headers: {
+    'X-Requested-By': 'ambari',
+    'Authorization': 'Basic YWRtaW46YWRtaW4='
+  }
+});

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/app.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/app.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/app.js
new file mode 100644
index 0000000..4028e22
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/app.js
@@ -0,0 +1,38 @@
+/**
+ * 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.
+ */
+import Ember from 'ember';
+import Resolver from './resolver';
+import loadInitializers from 'ember-load-initializers';
+import config from './config/environment';
+
+let App;
+
+Ember.MODEL_FACTORY_INJECTIONS = true;
+
+App = Ember.Application.extend({
+  modulePrefix: config.modulePrefix,
+  podModulePrefix: config.podModulePrefix,
+  Resolver
+});
+
+loadInitializers(App, config.modulePrefix);
+
+
+
+
+export default App;

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/components/.gitkeep
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/components/.gitkeep b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/components/.gitkeep
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/controllers/.gitkeep
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/controllers/.gitkeep b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/controllers/.gitkeep
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/helpers/.gitkeep
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/helpers/.gitkeep b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/helpers/.gitkeep
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/index.html
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/index.html b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/index.html
new file mode 100644
index 0000000..620f4a2
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/index.html
@@ -0,0 +1,40 @@
+<!---
+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.
+-->
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <title>HueambarimigrationView</title>
+    <meta name="description" content="">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+
+    {{content-for "head"}}
+
+    <link rel="stylesheet" href="assets/vendor.css">
+    <link rel="stylesheet" href="assets/hueambarimigration-view.css">
+
+
+    {{content-for "head-footer"}}
+  </head>
+  <body>
+    {{content-for "body"}}
+
+    <script src="assets/vendor.js"></script>
+    <script src="assets/hueambarimigration-view.js"></script>
+
+    {{content-for "body-footer"}}
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/.gitkeep
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/.gitkeep b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/.gitkeep
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/allinstancedetail.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/allinstancedetail.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/allinstancedetail.js
new file mode 100644
index 0000000..5f02afc
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/allinstancedetail.js
@@ -0,0 +1,23 @@
+/**
+ * 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.
+ */
+import Model from 'ember-data/model';
+import DS from 'ember-data';
+
+export default Model.extend({
+  instanceName: DS.attr('string')
+});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/ambaridatabase.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/ambaridatabase.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/ambaridatabase.js
new file mode 100644
index 0000000..ec458dc
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/ambaridatabase.js
@@ -0,0 +1,24 @@
+/**
+ * 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.
+ */
+import Model from 'ember-data/model';
+import DS from 'ember-data';
+
+export default Model.extend({
+  configStatus: DS.attr('string'),
+  configParameter: DS.attr('string')
+});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/ambariwebhdfsurl.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/ambariwebhdfsurl.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/ambariwebhdfsurl.js
new file mode 100644
index 0000000..ec458dc
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/ambariwebhdfsurl.js
@@ -0,0 +1,24 @@
+/**
+ * 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.
+ */
+import Model from 'ember-data/model';
+import DS from 'ember-data';
+
+export default Model.extend({
+  configStatus: DS.attr('string'),
+  configParameter: DS.attr('string')
+});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/checkprogress.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/checkprogress.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/checkprogress.js
new file mode 100644
index 0000000..1f4d2c6
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/checkprogress.js
@@ -0,0 +1,30 @@
+/**
+ * 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.
+ */
+import Model from 'ember-data/model';
+import DS from 'ember-data';
+
+export default Model.extend({
+  progressPercentage: DS.attr('string'),
+  numberOfQueryTransfered: DS.attr('string'),
+  totalNoQuery: DS.attr('string'),
+  intanceName: DS.attr('string'),
+  userNameofhue: DS.attr('string'),
+  totalTimeTaken: DS.attr('string'),
+  jobtype: DS.attr('string'),
+  isNoQuerySelected: DS.attr('string')
+});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/getmigrationresultid.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/getmigrationresultid.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/getmigrationresultid.js
new file mode 100644
index 0000000..5d55773
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/getmigrationresultid.js
@@ -0,0 +1,23 @@
+/**
+ * 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.
+ */
+import Model from 'ember-data/model';
+import DS from 'ember-data';
+
+export default Model.extend({
+  idforJob: DS.attr('string')
+});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/hiveinstancedetail.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/hiveinstancedetail.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/hiveinstancedetail.js
new file mode 100644
index 0000000..5f02afc
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/hiveinstancedetail.js
@@ -0,0 +1,23 @@
+/**
+ * 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.
+ */
+import Model from 'ember-data/model';
+import DS from 'ember-data';
+
+export default Model.extend({
+  instanceName: DS.attr('string')
+});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huedatabase.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huedatabase.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huedatabase.js
new file mode 100644
index 0000000..620f806
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huedatabase.js
@@ -0,0 +1,24 @@
+/**
+ * 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.
+ */
+import Model from 'ember-data/model';
+import DS from 'ember-data';
+
+export default Model.extend({
+  configStatus: DS.attr('string'),
+  configParameter: DS.attr('string')
+});

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huehttpurl.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huehttpurl.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huehttpurl.js
new file mode 100644
index 0000000..620f806
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huehttpurl.js
@@ -0,0 +1,24 @@
+/**
+ * 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.
+ */
+import Model from 'ember-data/model';
+import DS from 'ember-data';
+
+export default Model.extend({
+  configStatus: DS.attr('string'),
+  configParameter: DS.attr('string')
+});

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huewebhdfsurl.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huewebhdfsurl.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huewebhdfsurl.js
new file mode 100644
index 0000000..620f806
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huewebhdfsurl.js
@@ -0,0 +1,24 @@
+/**
+ * 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.
+ */
+import Model from 'ember-data/model';
+import DS from 'ember-data';
+
+export default Model.extend({
+  configStatus: DS.attr('string'),
+  configParameter: DS.attr('string')
+});

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/piginstancedetail.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/piginstancedetail.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/piginstancedetail.js
new file mode 100644
index 0000000..5f02afc
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/piginstancedetail.js
@@ -0,0 +1,23 @@
+/**
+ * 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.
+ */
+import Model from 'ember-data/model';
+import DS from 'ember-data';
+
+export default Model.extend({
+  instanceName: DS.attr('string')
+});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/returnjobid.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/returnjobid.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/returnjobid.js
new file mode 100644
index 0000000..5d55773
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/returnjobid.js
@@ -0,0 +1,23 @@
+/**
+ * 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.
+ */
+import Model from 'ember-data/model';
+import DS from 'ember-data';
+
+export default Model.extend({
+  idforJob: DS.attr('string')
+});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/returnjobidforrevertchange.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/returnjobidforrevertchange.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/returnjobidforrevertchange.js
new file mode 100644
index 0000000..5d55773
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/returnjobidforrevertchange.js
@@ -0,0 +1,23 @@
+/**
+ * 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.
+ */
+import Model from 'ember-data/model';
+import DS from 'ember-data';
+
+export default Model.extend({
+  idforJob: DS.attr('string')
+});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/startmigration.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/startmigration.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/startmigration.js
new file mode 100644
index 0000000..5913726
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/startmigration.js
@@ -0,0 +1,23 @@
+/**
+ * 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.
+ */
+import Model from 'ember-data/model';
+import DS from 'ember-data';
+
+export default Model.extend({
+  progressPercentage: DS.attr('string')
+});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/startrevertchange.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/startrevertchange.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/startrevertchange.js
new file mode 100644
index 0000000..5913726
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/startrevertchange.js
@@ -0,0 +1,23 @@
+/**
+ * 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.
+ */
+import Model from 'ember-data/model';
+import DS from 'ember-data';
+
+export default Model.extend({
+  progressPercentage: DS.attr('string')
+});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/usersdetail.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/usersdetail.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/usersdetail.js
new file mode 100644
index 0000000..0313a16
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/usersdetail.js
@@ -0,0 +1,23 @@
+/**
+ * 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.
+ */
+import Model from 'ember-data/model';
+import DS from 'ember-data';
+
+export default Model.extend({
+  username: DS.attr('string')
+});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/resolver.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/resolver.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/resolver.js
new file mode 100644
index 0000000..884fa9b
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/resolver.js
@@ -0,0 +1,20 @@
+/**
+ * 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.
+ */
+import Resolver from 'ember-resolver';
+
+export default Resolver;

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/router.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/router.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/router.js
new file mode 100644
index 0000000..6d99750
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/router.js
@@ -0,0 +1,38 @@
+/**
+ * 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.
+ */
+import Ember from 'ember';
+import config from './config/environment';
+
+const Router = Ember.Router.extend({
+  location: config.locationType
+});
+
+Router.map(function() {
+  this.route('check-configuration');
+  this.route('homePage', function() {
+    this.route('hive-history');
+    this.route('hive-saved-query');
+    this.route('pig-script');
+    this.route('pig-job');
+    this.route('revert-change');
+  });
+
+
+});
+
+export default Router;

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/.gitkeep
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/.gitkeep b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/.gitkeep
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/check-configuration.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/check-configuration.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/check-configuration.js
new file mode 100644
index 0000000..8e0f28d
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/check-configuration.js
@@ -0,0 +1,215 @@
+/**
+ * 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.
+ */
+import Ember from 'ember';
+
+
+export default Ember.Route.extend({
+
+  actions: {
+    toggleStackTrace: function() {
+      var value = this.controller.get('isExpanded');
+      this.controller.set('isExpanded', !value);
+    }
+  },
+
+  isExpanded: false,
+
+  setupController: function() {
+    var progresBar = 0;
+    var passtonext = 0;
+    var self = this;
+    var control = this.controller;
+    this.controller.set('progresBar', progresBar);
+    var huehttpurl = this.store.queryRecord('huehttpurl', {});
+    var huewebhdfsurl = this.store.queryRecord('huewebhdfsurl', {});
+    var ambariwebhdfs = this.store.queryRecord('ambariwebhdfsurl', {});
+    var huedatabases = this.store.queryRecord('huedatabase', {});
+    var ambaridatabases = this.store.queryRecord('ambaridatabase', {});
+
+    huehttpurl.then(function() {
+        passtonext = passtonext + 20;
+        progresBar = progresBar + 20;
+        control.set('progresBar', progresBar);
+        control.set('huehttpurlTestDone', "set");
+
+        if (huehttpurl.get('configStatus') === "Success") {
+          control.set('huehttpurlTest', "Success");
+          control.set('huehttpurlTestresult', "Hue Http URl test Successful");
+        }
+
+        if (passtonext === 100) {
+          Ember.run.later(this, function() {
+            self.transitionTo('homePage');
+          }, 4000);
+        }
+      },
+      function(error) {
+        progresBar = progresBar + 20;
+        var checkFailedMessage;
+        control.set('progresBar', progresBar);
+        control.set('huehttpurlTestresult', "Hue Http URl test Failed");
+        if (error.status !== 200) {
+          checkFailedMessage = "Service Hue Database check failed";
+          var errors;
+          errors = checkFailedMessage;
+          errors += (error.message) ? (': <i>' + error.message + '</i><br>') : '<br>';
+
+          control.set("errors", errors);
+        }
+        if (error.trace != null) {
+          var stackTrace;
+          stackTrace = checkFailedMessage + ':\n' + error.trace;
+          control.set("stackTrace", stackTrace);
+        }
+      });
+    huewebhdfsurl.then(function() {
+        passtonext = passtonext + 20;
+        progresBar = progresBar + 20;
+        control.set('huewebhdfsurlTestDone', progresBar);
+
+        if (huewebhdfsurl.get('configStatus') === "Success") {
+          control.set('huewebhdfsurlTest', "Success");
+          control.set('huewebhdfsurlTestresult', "Hue Webhdfs url test Successful");
+        }
+        if (passtonext === 100) {
+          Ember.run.later(this, function() {
+            self.transitionTo('homePage');
+          }, 4000);
+        }
+      },
+      function(error) {
+        progresBar = progresBar + 20;
+        var checkFailedMessage;
+        control.set('progresBar', progresBar);
+        if (error.status !== 200) {
+          checkFailedMessage = "Service Hue Database check failed";
+          var errors;
+          errors = checkFailedMessage;
+          errors += (error.message) ? (': <i>' + error.message + '</i><br>') : '<br>';
+          control.set("errors", errors);
+        }
+        if (error.trace != null) {
+          var stackTrace;
+          stackTrace = checkFailedMessage + ':\n' + error.trace;
+          control.set("stackTrace", stackTrace);
+        }
+      });
+    ambariwebhdfs.then(function() {
+        progresBar = progresBar + 20;
+        passtonext = passtonext + 20;
+        control.set('progresBar', progresBar);
+        control.set('ambariwebhdfsTestDone', progresBar);
+
+        if (ambariwebhdfs.get('configStatus') === "Success") {
+          control.set('ambariwebhdfsTest', "Success");
+          control.set('ambariwebhdfsTestresult', "Ambari Webhdfs url test Successful");
+        }
+        if (passtonext === 100) {
+          Ember.run.later(this, function() {
+            self.transitionTo('homePage');
+          }, 4000);
+        }
+      },
+      function(error) {
+        progresBar = progresBar + 20;
+        var checkFailedMessage;
+        control.set('progresBar', progresBar);
+        if (error.status !== 200) {
+          checkFailedMessage = "Service Hue Database check failed";
+          var errors;
+          errors = checkFailedMessage;
+          errors += (error.message) ? (': <i>' + error.message + '</i><br>') : '<br>';
+          control.set("errors", errors);
+        }
+        if (error.trace != null) {
+          var stackTrace;
+          stackTrace = checkFailedMessage + ':\n' + error.trace;
+          control.set("stackTrace", stackTrace);
+        }
+      });
+    huedatabases.then(function() {
+        passtonext = passtonext + 20;
+        progresBar = progresBar + 20;
+        control.set('progresBar', progresBar);
+        control.set('huedatabasesTestDone', progresBar);
+
+        if (huedatabases.get('configStatus') === "Success") {
+          control.set('huedatabasesTest', "Success");
+          control.set('huedatabasesTestresult', "Hue database Connection test Successful");
+        }
+        if (passtonext === 100) {
+          Ember.run.later(this, function() {
+            self.transitionTo('homePage');
+          }, 4000);
+        }
+      },
+      function(error) {
+        control.set('huedatabasesTest', "Success");
+        control.set('huedatabasesTest', null);
+        progresBar = progresBar + 20;
+        var checkFailedMessage;
+        control.set('progresBar', progresBar);
+        control.set('huedatabasesTestresult', "Hue database Connection test Failed");
+        if (error.status !== 200) {
+          checkFailedMessage = "Service Hue Database check failed";
+          var errors;
+          errors = checkFailedMessage;
+          errors += (error.message) ? (': <i>' + error.message + '</i><br>') : '<br>';
+          control.set("errors", errors);
+        }
+        if (error.trace !== null) {
+          var stackTrace;
+          stackTrace = checkFailedMessage + ':\n' + error.trace;
+          control.set("stackTrace", stackTrace);
+        }
+      });
+    ambaridatabases.then(function() {
+        passtonext = passtonext + 20;
+        progresBar = progresBar + 20;
+        control.set('progresBar', progresBar);
+        control.set('ambaridatabasesTestDone', progresBar);
+        if (ambaridatabases.get('configStatus') === "Success") {
+          control.set('ambaridatabasesTest', "Success");
+          control.set('ambaridatabasesTestresult', "Ambari database Connection test Successful");
+        }
+        if (passtonext === 100) {
+          Ember.run.later(this, function() {
+            self.transitionTo('homePage');
+          }, 4000);
+        }
+      },
+      function(error) {
+        progresBar = progresBar + 20;
+        var checkFailedMessage;
+        control.set('progresBar', progresBar);
+        if (error.status !== 200) {
+          checkFailedMessage = "Service Hue Database check failed";
+          var errors;
+          errors = checkFailedMessage;
+          errors += (error.message) ? (': <i>' + error.message + '</i><br>') : '<br>';
+          control.set("errors", errors);
+        }
+
+        if (error.trace !== null) {
+          var stackTrace;
+          stackTrace = checkFailedMessage + ':\n' + error.trace;
+          control.set("stackTrace", stackTrace);
+        }
+      });
+  }
+});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page.js
new file mode 100644
index 0000000..ff14e60
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page.js
@@ -0,0 +1,21 @@
+/**
+ * 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.
+ */
+import Ember from 'ember';
+
+export default Ember.Route.extend({
+});

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/hive-history.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/hive-history.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/hive-history.js
new file mode 100644
index 0000000..a47b93f
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/hive-history.js
@@ -0,0 +1,106 @@
+/**
+ * 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.
+ */
+import Ember from 'ember';
+
+export default Ember.Route.extend({
+
+  model: function() {
+    var store = this.store;
+    return Ember.RSVP.hash({
+      usersdetail: store.findAll('usersdetail'),
+      hiveinstancedetail: store.findAll('hiveinstancedetail')
+
+    });
+
+  },
+
+  actions: {
+    submitResult: function() {
+      this.controller.set('jobstatus', null);
+      this.controller.set('progressBar', null);
+      this.controller.set('completionStatus', null);
+      var migration = this.store.queryRecord('returnjobid', {
+        username: this.controller.get('usernamehue'),
+        instance: this.controller.get('instancename'),
+        startdate: this.controller.get('startdate'),
+        enddate: this.controller.get('enddate'),
+        jobtype: "hivehistoryquerymigration"
+      });
+      var control = this.controller;
+      var store = this.store;
+      var repeat = this;
+
+      migration.then(function() {
+        var jobid = migration.get('idforJob');
+        console.log("jobid  is   " + jobid);
+        var hivehistoryqueryjobstart = store.queryRecord('startmigration', {
+          username: control.get('usernamehue'),
+          instance: control.get('instancename'),
+          startdate: control.get('startdate'),
+          enddate: control.get('enddate'),
+          jobid: jobid,
+          jobtype: "hivehistoryquerymigration"
+        });
+        hivehistoryqueryjobstart.then(function() {
+          control.set('jobstatus', "0");
+          repeat.progresscheck(jobid);
+        });
+      });
+    }
+  },
+  progresscheck: function(jobid) {
+    var repeat = this;
+    var control = this.controller;
+
+    Ember.run.later(this, function() {
+      var progress = this.store.queryRecord('checkprogress', {
+        jobid: jobid
+      });
+      progress.then(function() {
+        // control.set('jobstatus',null);
+        var progressPercentage = progress.get('progressPercentage');
+        var numberOfQueryTransfered = progress.get('numberOfQueryTransfered');
+        var totalNoQuery = progress.get('totalNoQuery');
+        var intanceName = progress.get('intanceName');
+        var userNameofhue = progress.get('userNameofhue');
+        var totalTimeTaken = progress.get('totalTimeTaken');
+        var isNoQuerySelected = progress.get('isNoQuerySelected');
+
+        if (progressPercentage !== '100' && isNoQuerySelected === 'no') {
+          control.set('progressBar', progressPercentage);
+          repeat.progresscheck(jobid);
+        }
+        if (progressPercentage === '100' || isNoQuerySelected === 'yes') {
+          control.set('jobstatus', null);
+          control.set('completionStatus', progressPercentage);
+          control.set('progressBar', progressPercentage);
+          if (numberOfQueryTransfered === "0") {
+            control.set('numberOfQueryTransfered', "No Queries selected according to your criteria");
+          } else {
+            control.set('numberOfQueryTransfered', numberOfQueryTransfered);
+          }
+          control.set('totalNoQuery', totalNoQuery);
+          control.set('instanceName', intanceName);
+          control.set('Username', userNameofhue);
+          control.set('totalTimeTaken', totalTimeTaken);
+
+        }
+      });
+    }, 500);
+  }
+});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/hive-saved-query.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/hive-saved-query.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/hive-saved-query.js
new file mode 100644
index 0000000..d50a402
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/hive-saved-query.js
@@ -0,0 +1,102 @@
+/**
+ * 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.
+ */
+import Ember from 'ember';
+
+export default Ember.Route.extend({
+
+  model: function() {
+    var store = this.store;
+    return Ember.RSVP.hash({
+      usersdetail: store.findAll('usersdetail'),
+      hiveinstancedetail: store.findAll('hiveinstancedetail')
+
+    });
+
+  },
+
+  actions: {
+    submitResult: function() {
+      this.controller.set('jobstatus', null);
+      this.controller.set('progressBar', null);
+      this.controller.set('completionStatus', null);
+      var migration = this.store.queryRecord('returnjobid', {
+        username: this.controller.get('usernamehue'),
+        instance: this.controller.get('instancename'),
+        startdate: this.controller.get('startdate'),
+        enddate: this.controller.get('enddate'),
+        jobtype: "hivesavedquerymigration"
+      });
+      var control = this.controller;
+      var store = this.store;
+      var repeat = this;
+
+      migration.then(function() {
+        var jobid = migration.get('idforJob');
+        var hivehistoryqueryjobstart = store.queryRecord('startmigration', {
+          username: control.get('usernamehue'),
+          instance: control.get('instancename'),
+          startdate: control.get('startdate'),
+          enddate: control.get('enddate'),
+          jobid: jobid,
+          jobtype: "hivesavedquerymigration"
+        });
+        hivehistoryqueryjobstart.then(function() {
+          control.set('jobstatus', "0");
+          repeat.progresscheck(jobid);
+        });
+      });
+    }
+  },
+  progresscheck: function(jobid) {
+    var repeat = this;
+    var control = this.controller;
+    Ember.run.later(this, function() {
+      var progress = this.store.queryRecord('checkprogress', {
+        jobid: jobid
+      });
+      progress.then(function() {
+        var progressPercentage = progress.get('progressPercentage');
+        var numberOfQueryTransfered = progress.get('numberOfQueryTransfered');
+        var totalNoQuery = progress.get('totalNoQuery');
+        var intanceName = progress.get('intanceName');
+        var userNameofhue = progress.get('userNameofhue');
+        var totalTimeTaken = progress.get('totalTimeTaken');
+        var isNoQuerySelected = progress.get('isNoQuerySelected');
+        if (progressPercentage !== '100' && isNoQuerySelected === 'no') {
+          control.set('progressBar', progressPercentage);
+          repeat.progresscheck(jobid);
+        }
+        if (progressPercentage === '100' || isNoQuerySelected === 'yes') {
+          control.set('jobstatus', null);
+          control.set('completionStatus', progressPercentage);
+          control.set('progressBar', progressPercentage);
+          if (numberOfQueryTransfered === "0") {
+            control.set('numberOfQueryTransfered', "No Queries selected according to your criteria");
+          } else {
+            control.set('numberOfQueryTransfered', numberOfQueryTransfered);
+          }
+          control.set('totalNoQuery', totalNoQuery);
+          control.set('instanceName', intanceName);
+          control.set('Username', userNameofhue);
+          control.set('totalTimeTaken', totalTimeTaken);
+
+        }
+      });
+    }, 500);
+  }
+});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/pig-job.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/pig-job.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/pig-job.js
new file mode 100644
index 0000000..debb1eb
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/pig-job.js
@@ -0,0 +1,102 @@
+/**
+ * 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.
+ */
+import Ember from 'ember';
+
+export default Ember.Route.extend({
+
+  model: function() {
+    var store = this.store;
+    return Ember.RSVP.hash({
+      usersdetail: store.findAll('usersdetail'),
+      piginstancedetail: store.findAll('piginstancedetail')
+
+    });
+
+  },
+
+  actions: {
+    submitResult: function() {
+      this.controller.set('jobstatus', null);
+      this.controller.set('progressBar', null);
+      this.controller.set('completionStatus', null);
+      var migration = this.store.queryRecord('returnjobid', {
+        username: this.controller.get('usernamehue'),
+        instance: this.controller.get('instancename'),
+        startdate: this.controller.get('startdate'),
+        enddate: this.controller.get('enddate'),
+        jobtype: "pigjobmigration"
+      });
+      var control = this.controller;
+      var store = this.store;
+      var repeat = this;
+
+      migration.then(function() {
+        var jobid = migration.get('idforJob');
+        var hivehistoryqueryjobstart = store.queryRecord('startmigration', {
+          username: control.get('usernamehue'),
+          instance: control.get('instancename'),
+          startdate: control.get('startdate'),
+          enddate: control.get('enddate'),
+          jobid: jobid,
+          jobtype: "pigjobmigration"
+        });
+        hivehistoryqueryjobstart.then(function() {
+          control.set('jobstatus', "0");
+          repeat.progresscheck(jobid);
+        });
+      });
+    }
+  },
+  progresscheck: function(jobid) {
+    var repeat = this;
+    var control = this.controller;
+    Ember.run.later(this, function() {
+      var progress = this.store.queryRecord('checkprogress', {
+        jobid: jobid
+      });
+      progress.then(function() {
+        var progressPercentage = progress.get('progressPercentage');
+        var numberOfQueryTransfered = progress.get('numberOfQueryTransfered');
+        var totalNoQuery = progress.get('totalNoQuery');
+        var intanceName = progress.get('intanceName');
+        var userNameofhue = progress.get('userNameofhue');
+        var totalTimeTaken = progress.get('totalTimeTaken');
+        var isNoQuerySelected = progress.get('isNoQuerySelected');
+        if (progressPercentage !== '100' && isNoQuerySelected === 'no') {
+          control.set('progressBar', progressPercentage);
+          repeat.progresscheck(jobid);
+        }
+        if (progressPercentage === '100' || isNoQuerySelected === 'yes') {
+          control.set('jobstatus', null);
+          control.set('completionStatus', progressPercentage);
+          control.set('progressBar', progressPercentage);
+          if (numberOfQueryTransfered === "0") {
+            control.set('numberOfQueryTransfered', "No Queries selected according to your criteria");
+          } else {
+            control.set('numberOfQueryTransfered', numberOfQueryTransfered);
+          }
+          control.set('totalNoQuery', totalNoQuery);
+          control.set('instanceName', intanceName);
+          control.set('Username', userNameofhue);
+          control.set('totalTimeTaken', totalTimeTaken);
+
+        }
+      });
+    }, 500);
+  }
+});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/pig-script.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/pig-script.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/pig-script.js
new file mode 100644
index 0000000..ab0b919
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/pig-script.js
@@ -0,0 +1,103 @@
+/**
+ * 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.
+ */
+import Ember from 'ember';
+
+export default Ember.Route.extend({
+
+  model: function() {
+    var store = this.store;
+    return Ember.RSVP.hash({
+      usersdetail: store.findAll('usersdetail'),
+      piginstancedetail: store.findAll('piginstancedetail')
+
+    });
+
+  },
+
+  actions: {
+    submitResult: function() {
+      this.controller.set('jobstatus', null);
+      this.controller.set('progressBar', null);
+      this.controller.set('completionStatus', null);
+      var migration = this.store.queryRecord('returnjobid', {
+        username: this.controller.get('usernamehue'),
+        instance: this.controller.get('instancename'),
+        startdate: this.controller.get('startdate'),
+        enddate: this.controller.get('enddate'),
+        jobtype: "pigsavedscriptmigration"
+      });
+      var control = this.controller;
+      var store = this.store;
+      var repeat = this;
+
+      migration.then(function() {
+        var jobid = migration.get('idforJob');
+        var hivehistoryqueryjobstart = store.queryRecord('startmigration', {
+          username: control.get('usernamehue'),
+          instance: control.get('instancename'),
+          startdate: control.get('startdate'),
+          enddate: control.get('enddate'),
+          jobid: jobid,
+          jobtype: "pigsavedscriptmigration"
+        });
+        hivehistoryqueryjobstart.then(function() {
+          control.set('jobstatus', "0");
+          repeat.progresscheck(jobid);
+        });
+      });
+    }
+  },
+  progresscheck: function(jobid) {
+    var repeat = this;
+    var control = this.controller;
+    Ember.run.later(this, function() {
+      var progress = this.store.queryRecord('checkprogress', {
+        jobid: jobid
+      });
+      progress.then(function() {
+        // control.set('jobstatus',null);
+        var progressPercentage = progress.get('progressPercentage');
+        var numberOfQueryTransfered = progress.get('numberOfQueryTransfered');
+        var totalNoQuery = progress.get('totalNoQuery');
+        var intanceName = progress.get('intanceName');
+        var userNameofhue = progress.get('userNameofhue');
+        var totalTimeTaken = progress.get('totalTimeTaken');
+        var isNoQuerySelected = progress.get('isNoQuerySelected');
+        if (progressPercentage !== '100' && isNoQuerySelected === 'no') {
+          control.set('progressBar', progressPercentage);
+          repeat.progresscheck(jobid);
+        }
+        if (progressPercentage === '100' || isNoQuerySelected === 'yes') {
+          control.set('jobstatus', null);
+          control.set('completionStatus', progressPercentage);
+          control.set('progressBar', progressPercentage);
+          if (numberOfQueryTransfered === "0") {
+            control.set('numberOfQueryTransfered', "No Queries selected according to your criteria");
+          } else {
+            control.set('numberOfQueryTransfered', numberOfQueryTransfered);
+          }
+          control.set('totalNoQuery', totalNoQuery);
+          control.set('instanceName', intanceName);
+          control.set('Username', userNameofhue);
+          control.set('totalTimeTaken', totalTimeTaken);
+
+        }
+      });
+    }, 500);
+  }
+});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/revert-change.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/revert-change.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/revert-change.js
new file mode 100644
index 0000000..b34b5ed
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/revert-change.js
@@ -0,0 +1,97 @@
+/**
+ * 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.
+ */
+import Ember from 'ember';
+
+
+export default Ember.Route.extend({
+
+  model: function() {
+    var store = this.store;
+    return Ember.RSVP.hash({
+      allinstancedetail: store.findAll('allinstancedetail')
+    });
+  },
+
+  actions: {
+    submitResult: function() {
+      this.controller.set('jobstatus', null);
+      this.controller.set('progressBar', null);
+      this.controller.set('completionStatus', null);
+      var migration = this.store.queryRecord('returnjobidforrevertchange', {
+        instance: this.controller.get('instancename'),
+        revertdate: this.controller.get('revertdate')
+      });
+      var control = this.controller;
+      var store = this.store;
+      var repeat = this;
+      migration.then(function() {
+        var jobid = migration.get('idforJob');
+        var hivehistoryqueryjobstart = store.queryRecord('startrevertchange', {
+          instance: control.get('instancename'),
+          revertdate: control.get('revertdate'),
+          jobid: jobid
+        });
+        hivehistoryqueryjobstart.then(function() {  
+          control.set('jobstatus', "0");
+          repeat.progresscheck(jobid);
+        });
+      });
+    }
+  },
+
+  progresscheck: function(jobid) {
+
+    var repeat = this;
+    var control = this.controller;
+    Ember.run.later(this, function() {
+      var progress = this.store.queryRecord('checkprogress', {
+        jobid: jobid
+      });
+      progress.then(function() {
+
+        var progressPercentage = progress.get('progressPercentage');
+        var numberOfQueryTransfered = progress.get('numberOfQueryTransfered');
+        var totalNoQuery = progress.get('totalNoQuery');
+        var intanceName = progress.get('intanceName');
+        var userNameofhue = progress.get('userNameofhue');
+        var totalTimeTaken = progress.get('totalTimeTaken');
+        //var jobtype=progress.get('jobtype');
+        var isNoQuerySelected = progress.get('isNoQuerySelected');
+        if (progressPercentage !== '100' && isNoQuerySelected === 'no') {
+          control.set('progressBar', progressPercentage);
+          repeat.progresscheck(jobid);
+        }
+        if (progressPercentage === '100' || isNoQuerySelected === 'yes') {
+          control.set('jobstatus', null);
+          control.set('completionStatus', progressPercentage);
+          control.set('progressBar', progressPercentage);
+          if (numberOfQueryTransfered === "0") {
+            control.set('numberOfQueryTransfered', "No Queries selected according to your criteria");
+          } else {
+            control.set('numberOfQueryTransfered', numberOfQueryTransfered);
+          }
+          control.set('totalNoQuery', totalNoQuery);
+          control.set('instanceName', intanceName);
+          control.set('Username', userNameofhue);
+          control.set('totalTimeTaken', totalTimeTaken);
+        }
+      });
+    }, 500);
+  }
+
+});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/index.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/index.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/index.js
new file mode 100644
index 0000000..80f2600
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/index.js
@@ -0,0 +1,24 @@
+/**
+ * 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.
+ */
+import Ember from 'ember';
+
+export default Ember.Route.extend({
+  beforeModel() {
+    this.transitionTo('check-configuration');
+  }
+});

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/serializers/application.js
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/serializers/application.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/serializers/application.js
new file mode 100644
index 0000000..6e1291b
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/serializers/application.js
@@ -0,0 +1,19 @@
+/**
+ * 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.
+ */
+import DS from 'ember-data';
+export default DS.RESTSerializer.extend({});

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/styles/app.css
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/styles/app.css b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/styles/app.css
new file mode 100644
index 0000000..3196113
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/styles/app.css
@@ -0,0 +1,25 @@
+/**
+ * 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.
+ */
+body{
+padding-top:10px;
+}
+
+nav.active
+{
+font-weight: bold;
+}

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/styles/app.scss
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/styles/app.scss b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/styles/app.scss
new file mode 100644
index 0000000..dbea46e
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/styles/app.scss
@@ -0,0 +1,18 @@
+/**
+ * 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.
+ */
+@import "ember-power-select";

http://git-wip-us.apache.org/repos/asf/ambari/blob/f6e8637c/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/application.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/application.hbs b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/application.hbs
new file mode 100644
index 0000000..4e484d3
--- /dev/null
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/application.hbs
@@ -0,0 +1,24 @@
+{{!
+   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.
+}}
+<div class="container">
+  {{outlet}}
+
+</div>
+
+
+


Mime
View raw message