浏览代码

[jobsub] Add configuration for "oozie_url"

bc Wong 13 年之前
父节点
当前提交
0daca3133d
共有 3 个文件被更改,包括 14 次插入1 次删除
  1. 5 1
      desktop/conf.dist/hue.ini
  2. 3 0
      desktop/conf/pseudo-distributed.ini.tmpl
  3. 6 0
      desktop/libs/hadoop/src/hadoop/conf.py

+ 5 - 1
desktop/conf.dist/hue.ini

@@ -124,9 +124,13 @@
   #
   # NOTE: Hue depends on Cloudera's Distribution of Hadoop version 3 (CDH3)
   # or later.
-  hadoop_home=/usr/lib/hadoop-0.20
+  hadoop_home=/usr/lib/hadoop
   # hadoop_conf_dir=/etc/hadoop/conf
 
+  # The URL where the Oozie service runs on. This is required in order for
+  # users to submit jobs.
+  oozie_url=http://localhost:11000/oozie
+
 
   # Configuration for HDFS NameNode
   # ------------------------------------------------------------------------

+ 3 - 0
desktop/conf/pseudo-distributed.ini.tmpl

@@ -15,6 +15,9 @@
   # Point this variable at the path to your Hadoop wrapper script
   hadoop_home=$HADOOP_HOME
 
+  # Point this to the Oozie service
+  oozie_url=http://localhost:11000/oozie
+
   [[hdfs_clusters]]
     [[[default]]]
       security_enabled=false

+ 6 - 0
desktop/libs/hadoop/src/hadoop/conf.py

@@ -166,6 +166,12 @@ MR_CLUSTERS = UnspecifiedConfigSection(
   )
 )
 
+OOZIE_URL = Config(
+  key='oozie_url',
+  help='URL to Oozie server. This is required for job submission.',
+  default='http://localhost:11000/oozie',
+  type=str)
+
 
 def config_validator():
   """