CREATE EXTERNAL TABLE student(Stud_name String,dept String,year String)
> ROW FORMAT serde 'org.apache.hadoop.hive.serde2.OpenCSVSerde'
> with serdeproperties (
> "separatorChar" = ","
> )
> STORED AS TEXTFILE
> LOCATION '/home/codewarrior/Desktop/csv';
但它给出了这个错误:
它退出Hive我该怎么解决?
1条答案
按热度按时间7qhs6swi1#
你可以试试下面的代码: