Эх сурвалжийг харах

[oozie] Token propagation warning when using Java action in secured mode

Romain Rigaux 13 жил өмнө
parent
commit
102666a

+ 9 - 0
apps/oozie/src/oozie/templates/editor/action_utils.mako

@@ -16,6 +16,7 @@
 
 <%!
   from django.utils.translation import ugettext as _
+  from liboozie.oozie_api import get_oozie
 %>
 
 <%namespace name="utils" file="../utils.inc.mako" />
@@ -130,6 +131,14 @@
                 ${ _('The ssh server requires passwordless login') }.
               </p>
             % endif
+            % if node_type == 'java':
+              % if get_oozie().security_enabled:
+                <p class="alert alert-warn span5">
+                  ${ _('The delegation token needs to be propagated from the launcher job to the MR job') }.
+                  <a href="https://issues.apache.org/jira/browse/OOZIE-1172">OOZIE-1172</a>
+                </p>
+              % endif
+            % endif
             % if node_type == 'email':
               <p class="alert alert-warn span5">
                 ${ _('Requires some SMTP server configuration to be present (in oozie-site.xml)') }.