You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ni...@apache.org on 2017/01/03 11:43:10 UTC
[05/20] ambari git commit: AMBARI-19321 : Hive View 2.0 - Minimal
view for Hive which includes new UI changes. Also made changes in poms as
required (nitirajrathore)
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/components/table-advanced-settings.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/components/table-advanced-settings.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/components/table-advanced-settings.hbs
new file mode 100644
index 0000000..18f22f9
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/components/table-advanced-settings.hbs
@@ -0,0 +1,226 @@
+{{!
+* 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="panel panel-info">
+ <div class="panel-heading">
+ <div class="panel-title">
+ {{fa-icon "cog" size="lg"}}
+ Settings
+ </div>
+ </div>
+ <div class="panel-body">
+ <div class="form-horizontal">
+ <div class="form-group">
+ <label class="col-md-2 control-label">Transactional</label>
+ <div class="col-md-4">
+ <label>
+ {{input type="checkbox" checked=settings.transactional}}
+ </label>
+ </div>
+ </div>
+
+ {{#if shouldAddBuckets}}
+ <div class="form-group">
+ <label class="col-md-2 control-label">Number of buckets</label>
+ <div class="col-md-6">
+ <div class="{{if hasNumBucketError 'has-error'}}">
+
+ {{input type="number" class="form-control" value=settings.numBuckets}}
+ {{#if hasNumBucketError}}
+ <span class="help-block">{{numBucketErrorText}}</span>
+ {{/if}}
+ </div>
+ </div>
+ </div>
+ {{/if}}
+ </div>
+ </div>
+
+</div>
+
+<div class="panel panel-info">
+ <div class="panel-heading">
+ <div class="panel-title">
+ <button class="btn btn-primary {{if showLocationInput 'active'}}" {{action "toggleLocation"}}>
+ {{fa-icon (if showLocationInput "minus" "plus")}}
+ </button>
+ Add Location
+ </div>
+ </div>
+ {{#if showLocationInput}}
+ <div class="panel-body">
+ <div class="row">
+ <div class="col-md-6">
+ {{input type="text" class="form-control" value=settings.location}}
+ </div>
+ <button class="btn btn-success" {{action "toggleDirectoryViewer"}}>Select HDFS Directory</button>
+ </div>
+ {{#if showDirectoryViewer}}
+ {{hdfs-viewer-modal
+ showSelectedPath=true
+ close="closeHdfsModal"
+ selected="hdfsPathSelected"
+ }}
+ {{/if}}
+ </div>
+ {{/if}}
+</div>
+
+<div class="panel panel-info">
+ <div class="panel-heading">
+ <div class="panel-title">
+ <button class="btn btn-primary {{if showFileFormatInput 'active'}}" {{action "toggleFileFormat"}}>
+ {{fa-icon (if showFileFormatInput "minus" "plus")}}
+ </button>
+ Add File Format
+ </div>
+ </div>
+ {{#if showFileFormatInput}}
+ <div class="panel-body">
+ <div class="row">
+ <div class="col-md-6">
+ {{#power-select
+ selected=selectedFileFormat
+ options=fileFormats
+ searchField="name"
+ searchPlaceholder="Enter data type"
+ onchange=(action "fileFormatSelected") as |parameter|}}
+ {{parameter.name}}
+ {{/power-select}}
+ </div>
+ </div>
+ {{#if customFileFormat}}
+ <div class="row fileformat-custom-row">
+ <div class="col-md-6 form-horizontal">
+ <div class="form-group">
+ <label class="col-md-3 control-label">Input Format</label>
+ <div class="col-md-9">
+ {{input type="text" class="form-control" value=settings.fileFormat.inputFormat
+ placeholder="Input format class"}}
+ </div>
+ </div>
+ <div class="form-group">
+ <label class="col-md-3 control-label">Output Format</label>
+ <div class="col-md-9">
+ {{input type="text" class="form-control" value=settings.fileFormat.outputFormat
+ placeholder="Output format class"}}
+ </div>
+ </div>
+ </div>
+ </div>
+ {{/if}}
+
+ </div>
+ {{/if}}
+</div>
+
+<div class="panel panel-info">
+ <div class="panel-heading">
+ <div class="panel-title">
+ <button class="btn btn-primary {{if showRowFormatInput 'active'}}" {{action "toggleRowFormat"}}>
+ {{fa-icon (if showRowFormatInput "minus" "plus")}}
+ </button>
+ Add Row Format
+ </div>
+ </div>
+ {{#if showRowFormatInput}}
+ <div class="panel-body rowformat-custom-row">
+ <div class="row">
+ <div class="col-md-6 form-horizontal">
+ <div class="form-group">
+ <label class="col-md-4 control-label">Fields Terminated By</label>
+ <div class="col-md-7">
+ {{#power-select
+ selected=selectedFieldTerminator
+ options=terminationChars
+ searchField="name"
+ searchPlaceholder="Enter terminator character"
+ onchange=(action "fieldTerminatorSelected") as |parameter|}}
+ {{parameter.name}}{{#if parameter.description}} - {{parameter.description}}{{/if}}
+ {{/power-select}}
+ </div>
+ <div class="col-md-1">
+ <a class="text-danger" {{action "clearFieldTerminator"}}>{{fa-icon "times" size="lg"}}</a>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="row">
+ <div class="col-md-6 form-horizontal">
+ <div class="form-group">
+ <label class="col-md-4 control-label">Lines Terminated By</label>
+ <div class="col-md-7">
+ {{#power-select
+ selected=selectedLinesTerminator
+ options=terminationChars
+ searchField="name"
+ searchPlaceholder="Enter terminator character"
+ onchange=(action "linesTerminatorSelected") as |parameter|}}
+ {{parameter.name}}{{#if parameter.description}} - {{parameter.description}}{{/if}}
+ {{/power-select}}
+ </div>
+ <div class="col-md-1">
+ <a class="text-danger" {{action "clearLinesTerminator"}}>{{fa-icon "times" size="lg"}}</a>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="row">
+ <div class="col-md-6 form-horizontal">
+ <div class="form-group">
+ <label class="col-md-4 control-label">Null Defined As</label>
+ <div class="col-md-7">
+ {{#power-select
+ selected=selectedNullDefinition
+ options=terminationChars
+ searchField="name"
+ searchPlaceholder="Enter terminator character"
+ onchange=(action "nullDefinedAsSelected") as |parameter|}}
+ {{parameter.name}}{{#if parameter.description}} - {{parameter.description}}{{/if}}
+ {{/power-select}}
+ </div>
+ <div class="col-md-1">
+ <a class="text-danger" {{action "clearNullDefinition"}}>{{fa-icon "times" size="lg"}}</a>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="row">
+ <div class="col-md-6 form-horizontal">
+ <div class="form-group">
+ <label class="col-md-4 control-label">Escape Defined As</label>
+ <div class="col-md-7">
+ {{#power-select
+ selected=selectedEscapeDefinition
+ options=terminationChars
+ searchField="name"
+ searchPlaceholder="Enter terminator chanracter"
+ onchange=(action "escapeDefinedAsSelected") as |parameter|}}
+ {{parameter.name}}{{#if parameter.description}} - {{parameter.description}}{{/if}}
+ {{/power-select}}
+ </div>
+ <div class="col-md-1">
+ <a class="text-danger" {{action "clearEscapeDefinition"}}>{{fa-icon "times" size="lg"}}</a>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ {{/if}}
+</div>
+
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/components/table-columns.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/components/table-columns.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/components/table-columns.hbs
new file mode 100644
index 0000000..f5fc547
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/components/table-columns.hbs
@@ -0,0 +1,42 @@
+{{!
+* 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.
+}}
+
+<table class="table table-bordered table-hover">
+ <thead>
+ <tr>
+ <th width="30%">COLUMN NAME</th>
+ <th width="25%">DATA TYPE</th>
+ <th width="25%">SIZE</th>
+ <th width="5%" class="text-center">ADVANCED</th>
+ <th width="15%" class="text-center">ACTION</th>
+ </tr>
+ </thead>
+ <tbody>
+ {{#each columns as |column|}}
+ {{column-item column=column
+ columnDeleted="columnDeleted"
+ columnUpdated="columnUpdated"
+ }}
+ {{/each}}
+ <tr class="new-settings text-center">
+ <td colspan="5">
+ <a {{action "addNewColumn"}}>{{fa-icon "plus"}} Add New Column</a>
+ </td>
+ </tr>
+ </tbody>
+</table>
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/components/table-properties.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/components/table-properties.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/components/table-properties.hbs
new file mode 100644
index 0000000..0eaab5e
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/components/table-properties.hbs
@@ -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
+*
+* 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.
+}}
+
+<table class="table table-bordered table-hover">
+ <thead>
+ <tr>
+ <th width="40%">KEY</th>
+ <th width="40%">VALUE</th>
+ <th width="20%" class="text-center">ACTION</th>
+ </tr>
+ </thead>
+ <tbody>
+ {{#each properties as |property|}}
+ {{property-item property=property
+ propertyItemDeleted="itemDeleted"
+ propertyItemUpdated="itemUpdated"
+ }}
+ {{/each}}
+ <tr class="new-settings text-center">
+ <td colspan="3">
+ <a {{action "addNewRow"}}>{{fa-icon "plus"}} Add New Column</a>
+ </td>
+ </tr>
+ </tbody>
+</table>
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/components/tabs-item.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/components/tabs-item.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/components/tabs-item.hbs
new file mode 100644
index 0000000..361a359
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/components/tabs-item.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.
+}}
+
+{{#unless shouldTransition}}
+ <a {{action 'selected'}}>{{fa-icon tab.faIcon}} {{tab.label}}</a>
+{{else}}
+ {{#link-to tab.link eventName='click'}}{{fa-icon tab.faIcon}} {{tab.label}}{{/link-to}}
+{{/unless}}
+
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/components/tabs-pane.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/components/tabs-pane.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/components/tabs-pane.hbs
new file mode 100644
index 0000000..b61d090
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/components/tabs-pane.hbs
@@ -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.
+}}
+
+{{#each tabs as |tab|}}
+ {{yield tab}}
+{{/each}}
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/components/top-application-bar.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/components/top-application-bar.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/components/top-application-bar.hbs
new file mode 100644
index 0000000..f930be9
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/components/top-application-bar.hbs
@@ -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.
+}}
+
+<h3 class="clearfix">
+ <strong>HIVE</strong>
+ <span class="pull-right">
+ <button class="btn btn-sm btn-success">{{fa-icon "plus"}} NEW JOB</button>
+ <button class="btn btn-sm btn-success">{{fa-icon "plus"}} NEW TABLE</button>
+ </span>
+</h3>
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/databases.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/databases.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/databases.hbs
new file mode 100644
index 0000000..2be061f
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/databases.hbs
@@ -0,0 +1,39 @@
+{{!
+* 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.
+}}
+
+{{database-search-bar databases=model selected="databaseSelected"}}
+<div class="hv-dropdown database-dropdown">
+ <div class="dropdown">
+ <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1121" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
+ {{fa-icon "navicon"}}
+ </button>
+ <ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenu1121">
+ <li><a href="#" {{action "dropDatabase"}} class="text-uppercase">{{fa-icon "trash"}} drop database</a></li>
+ <li><a href="#" {{action "createTable"}} class="text-uppercase">{{fa-icon "plus"}} create table</a></li>
+ </ul>
+ </div>
+</div>
+
+{{#if databaseNotEmpty}}
+ {{database-not-empty name=databaseName close="notEmptyDialogClosed"}}
+{{/if}}
+
+{{#if confirmDropDatabase}}
+ {{database-drop-confirm name=databaseName yes="databaseDropConfirmed" no="databaseDropDeclined"}}
+{{/if}}
+{{outlet}}
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database.hbs
new file mode 100644
index 0000000..941bb77
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database.hbs
@@ -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.
+}}
+
+{{outlet}}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables.hbs
new file mode 100644
index 0000000..1f98b97
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables.hbs
@@ -0,0 +1,45 @@
+{{!
+* 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="dipayan123 clearfix">
+ <div class="col-md-3">
+ <div class="row">
+ <div class="hv-dropdown tables-dropdown">
+ {{#link-to "databases.database.tables.new" class="btn btn-success"}}{{fa-icon "plus"}}{{/link-to}}
+ </div>
+
+ {{#list-filter header="tables" items=model
+ placeholder="Search"
+ as |filteredItems|}}
+ {{#list-group class="table-list" items=filteredItems as |item|}}
+ {{list-item item=item itemClicked="tableSelected"}}
+ {{/list-group}}
+ {{/list-filter}}
+
+ </div>
+ </div>
+ <div class="col-md-9">
+ <div class="row">
+ {{outlet}}
+ </div>
+ </div>
+
+</div>
+
+
+
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/new.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/new.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/new.hbs
new file mode 100644
index 0000000..39b7a9e
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/new.hbs
@@ -0,0 +1,42 @@
+{{!
+* 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="col-md-12 table-info">
+ {{#if showCreateTableModal}}
+ {{#modal-dialog
+ translucentOverlay=true
+ container-class="modal-dialog modal-sm"}}
+ <div class="modal-content">
+ <div class="modal-header text-danger">
+ <p class="modal-title">{{fa-icon "plus"}} Create table</p>
+ </div>
+ <div class="modal-body text-center text-primary">
+ <p>{{createTableMessage}}</p>
+ </div>
+ </div><!-- /.modal-content -->
+ {{/modal-dialog}}
+ {{/if}}
+ <div class="table-header row">
+ <p class="text-uppercase">table<strong> > create table</strong></p>
+ </div>
+ <div class="table-body">
+ {{create-table tabs=tabs
+ cancel="cancel"
+ create="create"}}
+ </div>
+</div>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table.hbs
new file mode 100644
index 0000000..258f687
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table.hbs
@@ -0,0 +1,42 @@
+{{!
+* 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="col-md-12 table-info">
+ <div class="table-header row">
+ <p class="text-uppercase">table<strong> > {{model.table}}</strong></p>
+ <div class="hv-dropdown tables-dropdown">
+ <div class="dropdown">
+ <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
+ {{fa-icon "navicon"}}
+ </button>
+ <ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenu1">
+ <li><a href="#" class="text-uppercase">{{fa-icon "edit"}} Edit</a></li>
+ <li><a href="#" class="text-uppercase">{{fa-icon "trash"}} Delete</a></li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ <div class="table-body">
+ {{#tabs-pane tabs=tabs inverse= true as |tab|}}
+ {{tabs-item tab=tab tabs=tabs}}
+ {{/tabs-pane}}
+ {{outlet}}
+ </div>
+
+
+</div>
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/columns.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/columns.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/columns.hbs
new file mode 100644
index 0000000..f7f01f5
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/columns.hbs
@@ -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.
+}}
+
+<div class="row">
+ <table class="table table-bordered table-hover">
+ <thead>
+ <tr>
+ <th>COLUMN NAME</th>
+ <th>COLUMN TYPE</th>
+ <th>COMMENT</th>
+ </tr>
+ </thead>
+ <tbody>
+ {{#each table.columns as |column|}}
+ <tr>
+ <th>{{column.name}}</th>
+ <td>{{column.type}}</td>
+ <td>{{column.comment}}</td>
+ </tr>
+ {{/each}}
+ </tbody>
+ </table>
+</div>
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/ddl.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/ddl.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/ddl.hbs
new file mode 100644
index 0000000..cbbcdd0
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/ddl.hbs
@@ -0,0 +1,27 @@
+{{!
+* 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="row">
+{{!--
+ {{ivy-codemirror value=table.ddl
+ options=(hash lineNumbers=true
+ readOnly=true
+ mode="sql"
+ theme="solarized")}}
+--}}
+</div>
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/details.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/details.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/details.hbs
new file mode 100644
index 0000000..1577fec
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/details.hbs
@@ -0,0 +1,65 @@
+{{!
+* 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="row">
+ <table class="table table-bordered table-hover">
+ <thead>
+ <tr>
+ <th>INFORMATION</th>
+ <th>VALUE</th>
+ </tr>
+ </thead>
+ {{#with table.detailedInfo as |info|}}
+ <tbody>
+ <tr>
+ <th>Database Name</th>
+ <td>{{info.dbName}}</td>
+ </tr>
+ <tr>
+ <th>Owner</th>
+ <td>{{info.owner}}</td>
+ </tr>
+ <tr>
+ <th>Create Time</th>
+ <td>{{info.createTime}}</td>
+ </tr>
+ <tr>
+ <th>Last Access Time</th>
+ <td>{{info.lastAccessTime}}</td>
+ </tr>
+ <tr>
+ <th>Retention</th>
+ <td>{{info.retention}}</td>
+ </tr>
+ <tr>
+ <th>Table Type</th>
+ <td>{{info.tableType}}</td>
+ </tr>
+ <tr>
+ <th>Location</th>
+ <td>{{info.location}}</td>
+ </tr>
+ <tr>
+ <th>Parameters</th>
+ <td><pre class="table-info-json">{{toJson info.parameters}}</pre></td>
+ </tr>
+ </tbody>
+ {{/with}}
+
+ </table>
+</div>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/partitions.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/partitions.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/partitions.hbs
new file mode 100644
index 0000000..f66a0bc
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/partitions.hbs
@@ -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.
+}}
+
+<div class="row">
+ <table class="table table-bordered table-hover">
+ <thead>
+ <tr>
+ <th>COLUMN NAME</th>
+ <th>COLUMN TYPE</th>
+ <th>COMMENT</th>
+ </tr>
+ </thead>
+ <tbody>
+ {{#each model.partitionInfo.columns as |column|}}
+ <tr>
+ <th>{{column.name}}</th>
+ <td>{{column.type}}</td>
+ <td>{{column.comment}}</td>
+ </tr>
+ {{/each}}
+ </tbody>
+ </table>
+</div>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/stats.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/stats.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/stats.hbs
new file mode 100644
index 0000000..6671b8b
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/stats.hbs
@@ -0,0 +1,17 @@
+{{!
+* 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.
+}}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/storage.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/storage.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/storage.hbs
new file mode 100644
index 0000000..6e76741
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/storage.hbs
@@ -0,0 +1,64 @@
+{{!
+* 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="row">
+ <table class="table table-bordered table-hover">
+ <thead>
+ <tr>
+ <th>INFORMATION</th>
+ <th>VALUE</th>
+ </tr>
+ </thead>
+ {{#with table.storageInfo as |info|}}
+ <tbody>
+ <tr>
+ <th>SerDe Library</th>
+ <td>{{info.serdeLibrary}}</td>
+ </tr>
+ <tr>
+ <th>Input Format</th>
+ <td>{{info.inputFormat}}</td>
+ </tr>
+ <tr>
+ <th>Output Format</th>
+ <td>{{info.outputFormat}}</td>
+ </tr>
+ <tr>
+ <th>Compressed</th>
+ <td>{{info.compressed}}</td>
+ </tr>
+ <tr>
+ <th>Number of Buckets</th>
+ <td>{{info.numBuckets}}</td>
+ </tr>
+ <tr>
+ <th>Bucket Columns</th>
+ <td>{{info.bucketCols}}</td>
+ </tr>
+ <tr>
+ <th>Sort Columns</th>
+ <td>{{info.sortCols}}</td>
+ </tr>
+ <tr>
+ <th>Parameters</th>
+ <td><pre class="table-info-json">{{toJson info.parameters}}</pre></td>
+ </tr>
+ </tbody>
+ {{/with}}
+ </table>
+</div>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/view.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/view.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/view.hbs
new file mode 100644
index 0000000..d703191
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/databases/database/tables/table/view.hbs
@@ -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
+*
+* 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="row">
+ <table class="table table-bordered table-hover">
+ <thead>
+ <tr>
+ <th>INFORMATION</th>
+ <th>VALUE</th>
+ </tr>
+ </thead>
+ {{#with table.viewInfo as |info|}}
+ <tbody>
+ <tr>
+ <th>Original Text</th>
+ <td>{{info.originalText}}</td>
+ </tr>
+ <tr>
+ <th>Extended Text</th>
+ <td>{{info.extendedText}}</td>
+ </tr>
+ </tbody>
+ {{/with}}
+ </table>
+</div>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/jobs.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/jobs.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/jobs.hbs
new file mode 100644
index 0000000..4382b7a
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/jobs.hbs
@@ -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.
+}}
+
+{{jobs-browser jobs=model
+ startTime=startTimeText
+ endTime=endTimeText
+ filterChanged="dateFilterChanged"
+}}
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/messages.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/messages.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/messages.hbs
new file mode 100644
index 0000000..b856c20
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/messages.hbs
@@ -0,0 +1,54 @@
+{{!
+* 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="row">
+ <div class="col-md-12 messages-header">
+ <div class="col-md-1">
+ {{!--#link-to "files" (query-params path=currentBrowserPath) class="btn btn-primary"}}{{fa-icon "arrow-left"}} Browser{{/link-to--}}
+ </div>
+ <div class="col-md-2 col-md-offset-4 text-center">
+ <span class="messages-title">{{fa-icon "comment"}} Messages</span>
+ </div>
+ </div>
+</div>
+<div class="row">
+ <div class={{if isExpanded "col-md-12" "col-md-4"}}>
+ <div class="list-group">
+ {{#each model as |message|}}
+ {{#link-to 'messages.message' message class=(alert-message-context-class message.type "list-group-item list-group-item-")}}
+ <h4 class="list-group-item-heading wrap-message">
+ {{#fa-stack}}
+ {{fa-icon "circle-thin" stack=2}}
+ {{fa-icon (alert-message-icon-class message.type) stack=1}}
+ {{/fa-stack}}
+ {{{message.message}}}</h4>
+ <p class="list-group-item-text wrap-message">{{shorten-text message.responseMessage shortenLength}}</p>
+ {{/link-to}}
+ {{else}}
+ No messages present
+ {{/each}}
+ </div>
+
+ </div>
+ {{#unless isExpanded}}
+ <div class="col-md-8">
+ {{outlet}}
+ </div>
+ {{/unless}}
+</div>
+
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/messages/message.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/messages/message.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/messages/message.hbs
new file mode 100644
index 0000000..0c69d58
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/messages/message.hbs
@@ -0,0 +1,48 @@
+{{!
+* 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={{alert-message-context-class model.type "panel panel-"}}>
+ <div class="panel-heading wrap-message">
+ {{#fa-stack size="lg"}}
+ {{fa-icon "circle-thin" stack=2}}
+ {{fa-icon (alert-message-icon-class model.type) stack=1}}
+ {{/fa-stack}}
+ {{{model.message}}}
+ </div>
+ {{#if displayBody}}
+ <div class="panel-body">
+ {{#if showStatus}}
+ <p><strong>Server status:</strong> {{model.status}}</p>
+ <hr/>
+ {{/if}}
+ {{#if model.responseMessage}}
+ {{alert-message-display title="Server Message:"
+ value=model.responseMessage
+ shorten=true
+ length=200}}
+ <hr/>
+ {{/if}}
+ {{#if model.trace}}
+ {{alert-message-display title="Error trace:"
+ value=model.trace
+ shorten=true
+ length=500}}
+ {{/if}}
+ </div>
+ {{/if}}
+</div>
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/query.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/query.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/query.hbs
new file mode 100644
index 0000000..d24c7d0
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/query.hbs
@@ -0,0 +1,88 @@
+{{!
+* 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.
+}}
+
+{{multiple-database-search-bar databases=model selected=selected xyz="xyz" }}
+
+<div class="clearfix">
+ <div class="col-md-9">
+ <div class="row query-editor">
+ {{query-editor query=currentQuery }}
+ </div>
+ <div class="row query-editor-controls">
+ <button class="btn btn-success" {{action "executeQuery" }}>{{fa-icon "check"}} Execute</button>
+ </div>
+ </div>
+
+ <div class="col-md-3">
+ <div class="row">
+ <div class="panel-group database-panel" id="accordion" role="tablist" aria-multiselectable="true">
+
+ {{#each selectedTablesModels as |tableModel|}}
+ <div class="panel panel-default">
+
+ <div class="panel-heading" role="tab">
+ <h4 class="panel-title">
+ <a role="button" data-toggle="collapse" data-parent="#accordion"
+ href="javascript:void(0)" {{action 'showTables' tableModel.dbname }} aria-expanded="true"
+ aria-controls={{tableModel.dbname}}>
+ {{ tableModel.dbname }}
+ </a>
+ <small class="pull-right">Tables({{tableModel.tables.length}})</small>
+ </h4>
+ </div>
+
+ <div id={{ tableModel.dbname }} class="panel-collapse collapse {{if singleDbModel 'in'}}" role="tabpanel"
+ aria-labelledby="headingOne">
+ <div class="panel-body">
+ {{#if tableModel.tables.length }}
+ {{#list-filter header="tables" items=tableModel.tables
+ placeholder="Search Tables"
+ as |filteredItems|}}
+ {{#list-group class="table-list" items=filteredItems as |item|}}
+ {{list-item item=item itemClicked="tableSelected"}}
+ {{/list-group}}
+ {{/list-filter}}
+ {{else}}
+ <div class="empty">No Table found.</div>
+ {{/if}}
+ </div>
+ </div>
+
+ </div>
+ {{/each}}
+
+ </div>
+ </div>
+</div>
+</div>
+
+
+<div class="clearfix query-editor-results">
+ {{#if isQueryRunning}}
+ <div style="left:37%; position: relative;">
+ <img src="http://www.bba-reman.com/images/fbloader.gif" height="22" width="32" />
+ </div>
+ {{/if}}
+ {{query-result-table queryResult=queryResult showPreviousButton=showPreviousButton goNextPage='goNextPage' goPrevPage='goPrevPage' }}
+</div>
+
+{{#if databaseNotEmpty}}
+ {{database-not-empty name=databaseName close="notEmptyDialogClosed"}}
+{{/if}}
+
+{{outlet}}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/savedqueries.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/savedqueries.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/savedqueries.hbs
new file mode 100644
index 0000000..b776fd2
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/savedqueries.hbs
@@ -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.
+}}
+
+{{outlet}}
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/settings.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/settings.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/settings.hbs
new file mode 100644
index 0000000..047336f
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/settings.hbs
@@ -0,0 +1,32 @@
+{{!
+* 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="col-md-12 table-info">
+ <div class="row table-body">
+ {{#setting-list settings=model newSettings="addNewSettings" as |setting|}}
+ {{#unless setting.editMode}}
+ {{setting-item setting=setting editAction="editAction" deleteAction="deleteAction"}}
+ {{else}}
+ {{edit-setting-item setting=setting
+ hiveParameters=hiveParameters
+ updateAction="updateAction"
+ cancelAction="cancelAction"}}
+ {{/unless}}
+ {{/setting-list}}
+ </div>
+</div>
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/tables.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/tables.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/tables.hbs
new file mode 100644
index 0000000..b776fd2
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/tables.hbs
@@ -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.
+}}
+
+{{outlet}}
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/templates/udfs.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/templates/udfs.hbs b/contrib/views/hive20/src/main/resources/ui/app/templates/udfs.hbs
new file mode 100644
index 0000000..b776fd2
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/udfs.hbs
@@ -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.
+}}
+
+{{outlet}}
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/app/utils/hdfs-picker-config.js
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/utils/hdfs-picker-config.js b/contrib/views/hive20/src/main/resources/ui/app/utils/hdfs-picker-config.js
new file mode 100644
index 0000000..f4ed7db
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/app/utils/hdfs-picker-config.js
@@ -0,0 +1,32 @@
+/**
+ * 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 ViewerConfig from 'hdfs-directory-viewer/utils/viewer-config';
+
+export default ViewerConfig.extend({
+ store: null,
+
+ showOnlyDirectories: true,
+
+ expandIcon: 'fa fa-chevron-right',
+ collapseIcon: 'fa fa-chevron-down',
+
+ listDirectoryUrl(pathParams) {
+ return `${this.get('store').adapterFor('hdfs-viewer').get('namespace')}?${pathParams}`;
+ }
+});
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/bower.json
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/bower.json b/contrib/views/hive20/src/main/resources/ui/bower.json
new file mode 100644
index 0000000..4eadee7
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/bower.json
@@ -0,0 +1,11 @@
+{
+ "name": "ui",
+ "dependencies": {
+ "ember": "~2.7.0",
+ "ember-cli-shims": "~0.1.1",
+ "ember-qunit-notifications": "0.1.0",
+ "font-awesome": "~4.5.0",
+ "codemirror": "~5.15.0",
+ "bootstrap-treeview": "~1.2.0"
+ }
+}
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/config/environment.js
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/config/environment.js b/contrib/views/hive20/src/main/resources/ui/config/environment.js
new file mode 100644
index 0000000..9efd491
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/config/environment.js
@@ -0,0 +1,64 @@
+/**
+ * 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.
+ */
+
+/* jshint node: true */
+
+module.exports = function(environment) {
+ var ENV = {
+ modulePrefix: 'ui',
+ environment: environment,
+ rootURL: '/',
+ locationType: 'hash',
+ EmberENV: {
+ FEATURES: {
+ // Here you can enable experimental features on an ember canary build
+ // e.g. 'with-controller': true
+ }
+ },
+
+ APP: {
+ // Here you can pass flags/options to your application instance
+ // when it is created
+ }
+ };
+
+ if (environment === 'development') {
+ // ENV.APP.LOG_RESOLVER = true;
+ // ENV.APP.LOG_ACTIVE_GENERATION = true;
+ // ENV.APP.LOG_TRANSITIONS = true;
+ // ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
+ // ENV.APP.LOG_VIEW_LOOKUPS = true;
+ }
+
+ if (environment === 'test') {
+ // Testem prefers this...
+ ENV.locationType = 'none';
+
+ // keep test console output quieter
+ ENV.APP.LOG_ACTIVE_GENERATION = false;
+ ENV.APP.LOG_VIEW_LOOKUPS = false;
+
+ ENV.APP.rootElement = '#ember-testing';
+ }
+
+ if (environment === 'production') {
+
+ }
+
+ return ENV;
+};
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/ember-cli-build.js
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/ember-cli-build.js b/contrib/views/hive20/src/main/resources/ui/ember-cli-build.js
new file mode 100644
index 0000000..e41c8e8
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/ember-cli-build.js
@@ -0,0 +1,68 @@
+/**
+ * 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.
+ */
+
+/*jshint node:true*/
+/* global require, module */
+var EmberApp = require('ember-cli/lib/broccoli/ember-app');
+
+module.exports = function(defaults) {
+ var app = new EmberApp(defaults, {
+ // Add options here
+ bootstrap: {
+ // List of Bootstrap plugins to use
+ plugins: ['dropdown']
+ },
+ fingerprint: {
+ enabled: false
+ },
+ codemirror: {
+ modes: ['sql'],
+ themes: ['solarized']
+ }
+ });
+
+ // Use `app.import` to add additional libraries to the generated
+ // output files.
+ //
+ // If you need to use different assets in different
+ // environments, specify an object as the first parameter. That
+ // object's keys should be the environment name and the values
+ // should be the asset to use in that environment.
+ //
+ // If the library that you are including contains AMD or ES6
+ // modules that you would like to import into your application
+ // please specify an object with the list of modules as keys
+ // along with the exports of each module as its value.
+
+
+ app.import('bower_components/codemirror/lib/codemirror.js');
+ app.import('bower_components/codemirror/addon/hint/sql-hint.js');
+ app.import('bower_components/codemirror/addon/hint/show-hint.js');
+ app.import('bower_components/codemirror/lib/codemirror.css');
+ app.import('bower_components/codemirror/addon/hint/show-hint.css');
+
+ /*
+ app.import('vendor/codemirror/codemirror-min.js');
+ app.import('vendor/codemirror/sql-hint.js');
+ app.import('vendor/codemirror/show-hint.js');
+ app.import('vendor/codemirror/codemirror.css');
+ app.import('vendor/codemirror/show-hint.css');
+ */
+
+ return app.toTree();
+};
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/package.json
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/package.json b/contrib/views/hive20/src/main/resources/ui/package.json
new file mode 100644
index 0000000..ed7a299
--- /dev/null
+++ b/contrib/views/hive20/src/main/resources/ui/package.json
@@ -0,0 +1,64 @@
+{
+ "name": "ui",
+ "version": "0.0.0",
+ "description": "Hive View UI",
+ "private": true,
+ "directories": {
+ "doc": "doc",
+ "test": "tests"
+ },
+ "scripts": {
+ "build": "ember build",
+ "start": "ember server",
+ "test": "ember test",
+ "preinstall": "chmod +x node/npm/bin/node-gyp-bin/node-gyp",
+ "postinstall": "bash node/with_new_path.sh node node_modules/.bin/bower --allow-root install"
+ },
+ "repository": "",
+ "engines": {
+ "node": ">= 0.10.0"
+ },
+ "author": "",
+ "license": "MIT",
+ "devDependencies": {
+ "bootstrap-daterangepicker": "2.1.24",
+ "bower": "^1.7.9",
+ "broccoli-asset-rev": "^2.4.2",
+ "ember-ajax": "^2.0.1",
+ "ember-cli": "2.7.0",
+ "ember-cli-app-version": "^1.0.0",
+ "ember-cli-babel": "^5.1.6",
+ "ember-cli-daterangepicker": "0.3.0",
+ "ember-cli-dependency-checker": "^1.2.0",
+ "ember-cli-flash": "1.4.0",
+ "ember-cli-htmlbars": "^1.0.3",
+ "ember-cli-htmlbars-inline-precompile": "^0.3.1",
+ "ember-cli-inject-live-reload": "^1.4.0",
+ "ember-cli-jshint": "^1.0.0",
+ "ember-cli-moment-shim": "3.0.1",
+ "ember-cli-qunit": "^2.0.0",
+ "ember-cli-release": "^0.2.9",
+ "ember-cli-sass": "5.6.0",
+ "ember-cli-sri": "^2.1.0",
+ "ember-cli-test-loader": "^1.1.0",
+ "ember-cli-uglify": "^1.2.0",
+ "ember-composable-helpers": "1.1.2",
+ "ember-data": "^2.7.0",
+ "ember-export-application-global": "^1.0.5",
+ "ember-font-awesome": "2.2.0",
+ "ember-light-table": "1.8.0",
+ "ember-load-initializers": "^0.5.1",
+ "ember-modal-dialog": "0.9.0",
+ "ember-moment": "7.2.0",
+ "ember-power-select": "1.0.0-beta.31",
+ "ember-resolver": "^2.0.3",
+ "ember-responsive": "2.0.0",
+ "ember-sass-bootstrap": "0.1.2",
+ "loader.js": "^4.0.1"
+ },
+ "ember-addon": {
+ "paths": [
+ "ext/hdfs-directory-viewer"
+ ]
+ }
+}
http://git-wip-us.apache.org/repos/asf/ambari/blob/853a1ce7/contrib/views/hive20/src/main/resources/ui/public/fonts/roboto/roboto-v15-latin-300.eot
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/public/fonts/roboto/roboto-v15-latin-300.eot b/contrib/views/hive20/src/main/resources/ui/public/fonts/roboto/roboto-v15-latin-300.eot
new file mode 100644
index 0000000..826acfd
Binary files /dev/null and b/contrib/views/hive20/src/main/resources/ui/public/fonts/roboto/roboto-v15-latin-300.eot differ