Procházet zdrojové kódy

HUE-5993 [metastore Manual CSV create table error is unclear

Romain Rigaux před 8 roky
rodič
revize
543850a

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

@@ -1223,6 +1223,9 @@
   # Flag to turn on the morphline based Solr indexer.
   # Flag to turn on the morphline based Solr indexer.
   ## enable_new_indexer=false
   ## enable_new_indexer=false
 
 
+  # Oozie workspace template for indexing.
+  ## config_indexer_libs_path=/tmp/smart_indexer_lib
+
   # Flag to turn on the new metadata importer.
   # Flag to turn on the new metadata importer.
   ## enable_new_importer=false
   ## enable_new_importer=false
 
 

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

@@ -1225,6 +1225,9 @@
   # Flag to turn on the morphline based Solr indexer.
   # Flag to turn on the morphline based Solr indexer.
   ## enable_new_indexer=false
   ## enable_new_indexer=false
 
 
+  # Oozie workspace template for indexing.
+  ## config_indexer_libs_path=/tmp/smart_indexer_lib
+
   # Flag to turn on the new metadata importer.
   # Flag to turn on the new metadata importer.
   ## enable_new_importer=false
   ## enable_new_importer=false
 
 

+ 4 - 0
desktop/libs/indexer/src/indexer/api3.py

@@ -248,6 +248,10 @@ def _create_table_from_a_file(request, source, destination):
 
 
   if source['inputFormat'] == 'manual':
   if source['inputFormat'] == 'manual':
     load_data = False
     load_data = False
+    source['format'] = {
+      'quoteChar': '"',
+      'fieldSeparator': ','
+    }
 
 
   if table_format == 'json':
   if table_format == 'json':
     row_format = 'serde'
     row_format = 'serde'

+ 7 - 7
desktop/libs/indexer/src/indexer/conf.py

@@ -73,6 +73,13 @@ ENABLE_NEW_INDEXER = Config(
   default=False
   default=False
 )
 )
 
 
+CONFIG_INDEXER_LIBS_PATH = Config(
+  key="config_indexer_libs_path",
+  help=_t("oozie workspace template for indexing:"),
+  type=str,
+  default='/tmp/smart_indexer_lib'
+  )
+
 
 
 # Unused
 # Unused
 BATCH_INDEXER_PATH = Config(
 BATCH_INDEXER_PATH = Config(
@@ -100,13 +107,6 @@ CONFIG_INDEXING_TEMPLATES_PATH = Config(
   default=os.path.join(os.path.dirname(__file__), '..', 'data', 'oozie_workspace')
   default=os.path.join(os.path.dirname(__file__), '..', 'data', 'oozie_workspace')
   )
   )
 
 
-CONFIG_INDEXER_LIBS_PATH = Config(
-  key="config_indexer_libs_path",
-  help=_t("oozie workspace template for indexing:"),
-  type=str,
-  default='/tmp/smart_indexer_lib'
-  )
-
 SOLRCTL_PATH = Config(
 SOLRCTL_PATH = Config(
   key="solrctl_path",
   key="solrctl_path",
   help=_t("Location of the solrctl binary."),
   help=_t("Location of the solrctl binary."),