1.问题出现如下:
FAILED: ParseException line 2:47 character '<EOF>' not supported here
942505519 [a1afb9f9-4c71-454e-a2cc-2506e534bf0f main] ERROR org.apache.hadoop.hive.ql.Driver - FAILED: ParseException line 2:47 character '<EOF>' not supported here
org.apache.hadoop.hive.ql.parse.ParseException: line 2:47 character '<EOF>' not supported here
#错误输入
hive> load data inpath '/weblog/output/' overwrite into table
> ods_weblog_origin partition(datestr='20130918');
2.解决方法
就是这段代码里面可能是有一些字符打错了,建议重新打过一次!(虽然听起来很离谱,但是就是我就是这样解决我的问题了)
#正确输入
hive> load data inpath '/weblog/output/' overwrite into table ods_weblog_origin partition(datestr='20130918');
这样就成功啦!
(如果解决啦点个赞~~~好不好嘛~~)