Эх сурвалжийг харах

HUE-282. beeswax hive_conf_dir should be /etc/hive/conf

bc Wong 15 жил өмнө
parent
commit
9676ed752d

+ 1 - 1
apps/beeswax/conf/hue-beeswax.ini

@@ -13,4 +13,4 @@
 
 #
 # Hive configuration directory, where hive-site.xml is located
-## hive_conf_dir=/etc/hue
+## hive_conf_dir=/etc/hive/conf

+ 2 - 3
apps/beeswax/src/beeswax/conf.py

@@ -16,8 +16,7 @@
 # limitations under the License.
 """Configuration options for the Hive UI (Beeswax)."""
 from desktop.lib.conf import Config
-import desktop.lib.paths
-import os
+import os.path
 
 BEESWAX_SERVER_HOST = Config(
   key="beeswax_server_host",
@@ -60,7 +59,7 @@ BEESWAX_SERVER_HEAPSIZE = Config(
 BEESWAX_HIVE_CONF_DIR = Config(
   key='hive_conf_dir',
   help='Hive configuration directory, where hive-site.xml is located',
-  default=desktop.lib.paths.get_desktop_root('conf'))
+  default='/etc/hive/conf')
 
 LOCAL_EXAMPLES_DATA_DIR = Config(
   key='local_examples_data_dir',