瀏覽代碼

[beeswax] Improve double click in navigator

Add a note in Oozie Hive example
Romain Rigaux 12 年之前
父節點
當前提交
0f3fb0d

+ 3 - 3
apps/beeswax/src/beeswax/templates/execute.mako

@@ -541,7 +541,7 @@ ${layout.menubar(section='query')}
           $(data.split(" ")).each(function (cnt, table) {
             if ($.trim(table) != ""){
               var _table = $("<li>");
-              _table.html("<a href='#' class='pull-right hide'><i class='icon-eye-open'></i></a><a href='#' title='" + table + "'><i class='icon-table'></i> " + table + "</a><ul class='unstyled'></ul>");
+              _table.html("<a href='#' class='pull-right hide'><i class='icon-eye-open' title='" + "${ _('View data') }" + "'></i></a><a href='#' title='" + table + "'><i class='icon-table'></i> " + table + "</a><ul class='unstyled'></ul>");
               _table.data("table", table).attr("id", "navigatorTables_" + table);
               _table.find("a:eq(1)").on("click", function () {
                 _table.find(".icon-table").removeClass("icon-table").addClass("icon-spin").addClass("icon-spinner");
@@ -554,7 +554,7 @@ ${layout.menubar(section='query')}
                     _column.html("<a href='#' style='padding-left:10px'" + (col.comment != null && col.comment != "" ? " title='" + col.comment + "'" : "") + "><i class='icon-columns'></i> " + col.name + " (" + col.type + ")</a>");
                     _column.appendTo(_table.find("ul"));
                     _column.on("dblclick", function () {
-                      codeMirror.replaceSelection(col.name);
+                      codeMirror.replaceSelection($.trim(col.name) + ', ');
                       codeMirror.setSelection(codeMirror.getCursor());
                       codeMirror.focus();
                     });
@@ -562,7 +562,7 @@ ${layout.menubar(section='query')}
                 });
               });
               _table.find("a:eq(1)").on("dblclick", function () {
-                codeMirror.replaceSelection(table);
+                codeMirror.replaceSelection($.trim(table) + ' ');
                 codeMirror.setSelection(codeMirror.getCursor());
                 codeMirror.focus();
               });

+ 6 - 12
apps/oozie/examples/managed/hive/hive-site.xml

@@ -19,20 +19,14 @@
 
 <configuration>
 
-<!-- Hive Configuration can either be stored in this file or in the hadoop configuration files  -->
-<!-- that are implied by Hadoop setup variables.                                                -->
-<!-- Aside from Hadoop setup variables - this file is provided as a convenience so that Hive    -->
-<!-- users do not have to edit hadoop configuration files (that may be managed as a centralized -->
-<!-- resource).                                                                                 -->
-
-
-<property>
-  <name>hive.server2.authentication</name>
-  <value>NOSASL</value>
-</property>
+<!--
+  Note:
 
+  Configure Hive to use a remote Hive Metastore and update this hive-site.xml.
+  This example can work with a local metatastore but this is not recommended.
 
-<!-- Hive Execution Parameters -->
+  http://gethue.tumblr.com/post/60937985689/hadoop-tutorials-ii-2-execute-hive-queries-and
+-->
 
 <property>
   <name>javax.jdo.option.ConnectionURL</name>

+ 6 - 12
apps/oozie/examples/unmanaged/hive/hive-site.xml

@@ -19,20 +19,14 @@
 
 <configuration>
 
-<!-- Hive Configuration can either be stored in this file or in the hadoop configuration files  -->
-<!-- that are implied by Hadoop setup variables.                                                -->
-<!-- Aside from Hadoop setup variables - this file is provided as a convenience so that Hive    -->
-<!-- users do not have to edit hadoop configuration files (that may be managed as a centralized -->
-<!-- resource).                                                                                 -->
-
-
-<property>
-  <name>hive.server2.authentication</name>
-  <value>NOSASL</value>
-</property>
+<!--
+  Note:
 
+  Configure Hive to use a remote Hive Metastore and update this hive-site.xml.
+  This example can work with a local metatastore but this is not recommended.
 
-<!-- Hive Execution Parameters -->
+  http://gethue.tumblr.com/post/60937985689/hadoop-tutorials-ii-2-execute-hive-queries-and
+-->
 
 <property>
   <name>javax.jdo.option.ConnectionURL</name>