FAILED: ParseException line 2:0 character ' ' not supported here line 2:1 character ' ' not supporte

FAILED: ParseException line 2:0 character ’ ’ not supported here

在运行hive语句时会出现下面的错误
FAILED: ParseException line 2:0 character ' ' not supported here line 2:1 character ' ' not supporte
主要原因是格式不对,将执行的语句放在notepad++中
使用ANSI编码
FAILED: ParseException line 2:0 character ' ' not supported here line 2:1 character ' ' not supporte
使用ctrl +F 全部替换就OK了