按着视频敲的代码,但还是有问题,麻烦老师帮忙看看
来源:2-12 Springboot+JdbcTemplate+druid整合Hive(下)

慕后端8225145
2023-08-08
There was an unexpected error (type=Internal Server Error, status=500).
StatementCallback; bad SQL grammar [select * from user where id = 1]; nested exception is org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: ParseException line 1:14 cannot recognize input near ‘user’ ‘where’ ‘id’ in join source
写回答
1回答
-
小简同学
2023-08-08
同学你好,应该是表名不对,表名好像是 dwd.dim _user ,用户 id 字段是 user _id ,可以对照文档的表结构查看,因为视频录制的时间比较久了,要同步更新没有文档的更新那么方便,SQL 涉及表的可能需要对照下文档,表不是很多,这种错误情况也不是很多,顺便说一下,也提供了已经打包好的,可以运行的 jar 包,032023-08-08
相似问题
hive启动失败
回答 3