hive 之only supports newline ' ' right now. Error encountered near token ''报错

only supports newline ' ' right now. Error encountered near token '' 
意思是:仅支持‘ ’ 分隔符
 
我写的分隔符方式
row format delimited
fields terminated by '01'
collection items terminated by '02'
map keys terminated by '03'
lines terminated by ''
NULL defined as ''

  

 
正确写法:
row format delimited
fields terminated by '01'
collection items terminated by '02'
map keys terminated by '03'
lines terminated by '
'
NULL defined as ''

ASCII码中的序号为1,所以可以用'01'表示

原文地址:https://www.cnblogs.com/dw-date/p/13641205.html