瀏覽代碼

HUE-5202 [filebrowser] Fix incorrect path while copying script to hdfs

krish 9 年之前
父節點
當前提交
ebee925

+ 3 - 3
desktop/conf.dist/hue.ini

@@ -622,9 +622,6 @@
   ## Flag to enable the creation of a coordinator for the current SQL query.
   # enable_query_scheduling=false
 
-  ## Flag to enable the extraction of a uploaded archive in HDFS.
-  # enable_extract_uploaded_archive=false
-
   ## Base URL to Remote GitHub Server
   # github_remote_url=https://github.com
 
@@ -1034,6 +1031,9 @@
   # Show Upload Button for HDFS file browser.
   ## show_upload_button=false
 
+  ## Flag to enable the extraction of a uploaded archive in HDFS.
+  # enable_extract_uploaded_archive=false
+
 
 ###########################################################################
 # Settings to configure Pig

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

@@ -626,9 +626,6 @@
   ## Flag to enable the creation of a coordinator for the current SQL query.
   # enable_query_scheduling=false
 
-  ## Flag to enable the extraction of a uploaded archive in HDFS.
-  # enable_extract_uploaded_archive=false
-
   ## Base URL to Remote GitHub Server
   # github_remote_url=https://github.com
 
@@ -1041,6 +1038,9 @@
   # Show Upload Button for HDFS file browser.
   ## show_upload_button=false
 
+  ## Flag to enable the extraction of a uploaded archive in HDFS.
+  # enable_extract_uploaded_archive=false
+
 
 ###########################################################################
 # Settings to configure Pig

+ 1 - 1
desktop/core/src/desktop/lib/tasks/extract_archive/extract_utils.py

@@ -38,6 +38,6 @@ def _upload_extract_archive_script_to_hdfs(fs):
     fs.do_as_user(DEFAULT_USER.get(), fs.chmod, '/user/' + DEFAULT_USER.get() + '/common/', 0755)
 
   if not fs.do_as_user(DEFAULT_USER.get(), fs.exists, '/user/' + DEFAULT_USER.get() + '/common/extract_archive_in_hdfs.sh'):
-    fs.do_as_user(DEFAULT_USER.get(), fs.copyFromLocal, 'desktop/core/src/desktop/lib/extract_archive_in_hdfs.sh',
+    fs.do_as_user(DEFAULT_USER.get(), fs.copyFromLocal, 'desktop/core/src/desktop/lib/tasks/extract_archive/extract_in_hdfs.sh',
                           '/user/' + DEFAULT_USER.get() + '/common/extract_archive_in_hdfs.sh')
     fs.do_as_user(DEFAULT_USER.get(), fs.chmod, '/user/' + DEFAULT_USER.get() + '/common/', 0755)