Ver Fonte

[oozie] Update section icons

Romain Rigaux há 12 anos atrás
pai
commit
8449aa5

+ 2 - 2
apps/beeswax/src/beeswax/server/hive_server2_lib.py

@@ -115,7 +115,7 @@ class HiveServerTable(Table):
       return describe_text+  rows[detailed_row_index + 1]['col_name']
     except:
       return describe_text
-      
+  
 
 class HiveServerTRowSet:
   def __init__(self, row_set, schema):
@@ -511,7 +511,7 @@ class HiveServerClient:
 
   def get_partitions(self, database, table_name, max_parts):
     table = self.get_table(database, table_name)
-    # todo use DB
+    # TODO: do a 'use DB' ?
     partitionTable = self.execute_query_statement('SHOW PARTITIONS %s' % table_name) # DB prefix not supported
     return [PartitionValueCompatible(partition, table) for partition in partitionTable.rows()][-max_parts:]
 

+ 2 - 2
apps/beeswax/src/beeswax/templates/watch_results.mako

@@ -70,7 +70,7 @@ ${layout.menubar(section='query')}
                 <ul class="nav nav-list">
                     <li><a id="collapse" class="btn btn-small"><i class="icon-chevron-left" rel="tooltip" title="${_('Collapse this panel')}"></i></a></li>
                     % if download_urls:
-                    <li class="nav-header">${_('Downloads')}</li>
+                    <li class="nav-header">${_('Results')}</li>
                     <li><a target="_blank" href="${download_urls["csv"]}"><i class="icon-download"></i> ${_('Download as CSV')}</a></li>
                     <li><a target="_blank" href="${download_urls["xls"]}"><i class="icon-download"></i> ${_('Download as XLS')}</a></li>
                     % endif
@@ -80,7 +80,7 @@ ${layout.menubar(section='query')}
                     % if app_name != 'impala':
                     <%
                       n_jobs = hadoop_jobs and len(hadoop_jobs) or 0
-                      mr_jobs = (n_jobs == 1) and _('MR Job') or _('MR Jobs')
+                      mr_jobs = (n_jobs == 1) and _('MapReduce Job') or _('MapReduce Jobs')
                     %>
                      % if n_jobs > 0:
                         <li class="nav-header">${mr_jobs} (${n_jobs})</li>

+ 5 - 1
apps/oozie/src/oozie/templates/navigation-bar.mako

@@ -29,7 +29,11 @@
             <ul class="nav">
               <li class="currentApp">
                 <a href="/${app_name}">
-                  <img src="/oozie/static/art/icon_oozie_24.png" />
+                  % if dashboard:
+                    <img src="/oozie/static/art/icon_oozie_dashboard_24.png" />
+                  % else:
+                    <img src="/oozie/static/art/icon_oozie_editor_24.png" />
+                  % endif
                   ${ _('Oozie Dashboard') if dashboard else _('Oozie Editor') }
                 </a>
                </li>

+ 1 - 1
desktop/core/src/desktop/templates/tours.mako

@@ -129,7 +129,7 @@ $.jHueTour({
      },
      {
        "name": "huesqoop",
-       "desc": "${_("The Sqoop 2 app")}",
+       "desc": "${_("Transfering data with Sqoop")}",
        "path": "/sqoop",
        "video": "http://player.vimeo.com/video/76063637",
        "blog": "http://gethue.tumblr.com/post/63064228790/move-data-in-out-your-hadoop-cluster-with-the-sqoop"