Parcourir la source

[jobsub] Add security_enabled config for Oozie security

bc Wong il y a 13 ans
Parent
commit
878deac434

+ 7 - 1
apps/jobsub/src/jobsub/conf.py

@@ -18,7 +18,7 @@
 
 import os.path
 
-from desktop.lib.conf import Config
+from desktop.lib.conf import Config, coerce_bool
 
 REMOTE_DATA_DIR = Config(
   key="remote_data_dir",
@@ -38,3 +38,9 @@ OOZIE_URL = Config(
   help='URL to Oozie server. This is required for job submission.',
   default='http://localhost:11000/oozie',
   type=str)
+
+SECURITY_ENABLED = Config(
+  key="security_enabled",
+  help="Whether Oozie requires client to do perform Kerberos authentication",
+  default=False,
+  type=coerce_bool)

+ 7 - 2
desktop/conf.dist/hue.ini

@@ -230,8 +230,13 @@
   # users to submit jobs.
   oozie_url=http://localhost:11000/oozie
 
+  ## security_enabled=false
 
+
+###########################################################################
 # Settings for the User Admin application
+###########################################################################
+
 [useradmin]
-# The name of the default user group that users will be a member of
-## default_user_group=default_group
+  # The name of the default user group that users will be a member of
+  ## default_user_group=default_group

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

@@ -221,7 +221,23 @@
       # Whether to submit jobs to this cluster
       ## submit_to=False
 
+
+###########################################################################
+# Settings to configure Job Designer.
+###########################################################################
+
 [jobsub]
   # The URL where the Oozie service runs on. This is required in order for
   # users to submit jobs.
   oozie_url=http://localhost:11000/oozie
+
+  ## security_enabled=false
+
+
+###########################################################################
+# Settings for the User Admin application
+###########################################################################
+
+[useradmin]
+  # The name of the default user group that users will be a member of
+  ## default_user_group=default_group