|
|
@@ -21,7 +21,7 @@ import logging
|
|
|
import os
|
|
|
import sys
|
|
|
|
|
|
-from desktop.lib.conf import Config
|
|
|
+from desktop.lib.conf import Config, coerce_bool
|
|
|
from libsolr import conf as libsolr_conf
|
|
|
from libzookeeper import conf as libzookeeper_conf
|
|
|
|
|
|
@@ -77,14 +77,14 @@ def zkensemble():
|
|
|
ENABLE_NEW_INDEXER = Config(
|
|
|
key="enable_new_indexer",
|
|
|
help=_t("Flag to turn on the new Solr indexer."),
|
|
|
- type=bool,
|
|
|
+ type=coerce_bool,
|
|
|
default=True
|
|
|
)
|
|
|
|
|
|
ENABLE_SCALABLE_INDEXER = Config(
|
|
|
key="enable_scalable_indexer",
|
|
|
help=_t("Flag to turn on the Morphline Solr indexer."),
|
|
|
- type=bool,
|
|
|
+ type=coerce_bool,
|
|
|
default=True
|
|
|
)
|
|
|
|
|
|
@@ -112,42 +112,42 @@ CONFIG_JARS_LIBS_PATH = Config(
|
|
|
ENABLE_SQOOP = Config(
|
|
|
key="enable_sqoop",
|
|
|
help=_t("Flag to turn on Sqoop imports."),
|
|
|
- type=bool,
|
|
|
+ type=coerce_bool,
|
|
|
default=True
|
|
|
)
|
|
|
|
|
|
ENABLE_KAFKA = Config(
|
|
|
key="enable_kafka",
|
|
|
help=_t("Flag to turn on Kafka imports."),
|
|
|
- type=bool,
|
|
|
+ type=coerce_bool,
|
|
|
default=False
|
|
|
)
|
|
|
|
|
|
ENABLE_FIELD_EDITOR = Config(
|
|
|
key="enable_field_editor",
|
|
|
help=_t("Flag to turn on the SQL/Morphline field editor."),
|
|
|
- type=bool,
|
|
|
+ type=coerce_bool,
|
|
|
default=False
|
|
|
)
|
|
|
|
|
|
ENABLE_ENVELOPE = Config(
|
|
|
key="enable_envelope",
|
|
|
help=_t("Flag to turn on Envelope based jobs."),
|
|
|
- type=bool,
|
|
|
+ type=coerce_bool,
|
|
|
default=False
|
|
|
)
|
|
|
|
|
|
ENABLE_ALTUS = Config(
|
|
|
key="enable_altus",
|
|
|
help=_t("Flag to turn on Altus imports."),
|
|
|
- type=bool,
|
|
|
+ type=coerce_bool,
|
|
|
default=False
|
|
|
)
|
|
|
|
|
|
ENABLE_DIRECT_UPLOAD = Config(
|
|
|
key="enable_direct_upload",
|
|
|
help=_t("Flag to turn on the direct upload of a small file."),
|
|
|
- type=bool,
|
|
|
+ type=coerce_bool,
|
|
|
default=True
|
|
|
)
|
|
|
|