create external table test(
a string,
b…)
row formate serde
‘org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe’
with serdeproperties(“field.elim”=’|’,“serialization.encoding”=‘GBK’)
Location ‘hdfs://nameservice1/warehouse…’
stored as textfile
tblproperties(“skip.header.line.count”=“1”);
上传本地数据文件创建Hive表
最新推荐文章于 2024-04-24 09:51:49 发布