I am trying to create an external table with tblproperties in Hive. A table is created but does not display rows. Any ideas? Please find the scripts I use below:
Thanks for your time and suggestions in advance.
The data is in the recursive folder: /user/test/test1/test2/samplefile.csv
use dw_raw; drop table if exists temp_external_tab1; create external table if not exists temp_external_tab1 ( col1 int, col2 string, col3 string, col4 string ) row format delimited fields terminated by ',' lines terminated by '\n' stored as textfile location '/user/test/test1/' tblproperties ("hive.input.dir.recursive" = "TRUE", "hive.mapred.supports.subdirectories" = "TRUE", "hive.supports.subdirectories" = "TRUE", "mapred.input.dir.recursive" = "TRUE");
source share