瀏覽代碼

[oozie] Trim left slash in coordinator application URI of a bundle job

happywind 10 年之前
父節點
當前提交
8bef981
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      apps/oozie/src/oozie/templates/editor2/gen/bundle.xml.mako
  2. 1 1
      apps/oozie/src/oozie/views/editor2.py

+ 1 - 1
apps/oozie/src/oozie/templates/editor2/gen/bundle.xml.mako

@@ -41,7 +41,7 @@
 
   % for bundled in bundle.data['coordinators']:
   <coordinator name="${ mapping['coord_%s' % loop.index].name }-${ loop.index }">
-     <app-path>${'${'}nameNode}${ mapping['coord_%s_dir' % loop.index ] }</app-path>
+     <app-path>${ mapping['coord_%s_dir' % loop.index ] }</app-path>
      <configuration>
        <property>
           <name>wf_application_path</name>

+ 1 - 1
apps/oozie/src/oozie/views/editor2.py

@@ -762,7 +762,7 @@ def _submit_bundle(request, bundle, properties):
 
       coordinator = Coordinator(document=coord)
       coord_dir = Submission(request.user, coordinator, request.fs, request.jt, properties).deploy()
-      deployment_mapping['coord_%s_dir' % i] = coord_dir
+      deployment_mapping['coord_%s_dir' % i] = request.fs.get_hdfs_path(coord_dir)
       deployment_mapping['coord_%s' % i] = coord
 
     properties.update(deployment_mapping)