Jelajahi Sumber

[oozie] Use Oozie 1 workspace style until we switch to 2

Romain Rigaux 11 tahun lalu
induk
melakukan
b6ecfd6
2 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 2 1
      apps/oozie/src/oozie/conf.py
  2. 1 1
      apps/oozie/src/oozie/models2.py

+ 2 - 1
apps/oozie/src/oozie/conf.py

@@ -49,7 +49,8 @@ LOCAL_SAMPLE_DATA_DIR = Config(
 
 REMOTE_SAMPLE_DIR = Config(
   key="remote_data_dir",
-  default="/user/hue/oozie/workspaces/hue-oozie-$TIME",
+  #default="/user/hue/oozie/workspaces/hue-oozie-$TIME",
+  default="/user/hue/oozie/workspaces",
   help=_t("Location on HDFS where the Oozie workflows are stored. Parameters are $TIME and $USER, e.g. /user/$USER/hue/workspaces/workflow-$TIME")
 )
 

+ 1 - 1
apps/oozie/src/oozie/models2.py

@@ -56,7 +56,7 @@ class Job(object):
 
   @classmethod
   def get_workspace(cls, user):
-    return REMOTE_SAMPLE_DIR.get().replace('$USER', user.username).replace('$TIME', str(time.time()))
+    return (REMOTE_SAMPLE_DIR.get() + '/hue-oozie-$TIME').replace('$USER', user.username).replace('$TIME', str(time.time()))
 
   @property
   def validated_name(self):