在执行hive官网的Apache Weblog Data例子的时候,
报错信息如下
原因:Most likely there is a column named user. I believe in HDP 2.3, hive doesn't allow columns named keywords like date or user etc
解决方法:在user字段前面加前缀t
异常2:
原因:正则表达式有误
解决办法:
最后还需要将jar包添加到hive的执行环境中,可以使用如下命令,也可以修改配置文件hive-site.xml。
add jar /home/hive/lib/hive-contrib-1.2.1.jar
异常3:
解决办法:使用如下命令进行时间同步ntpdate time.nist.gov