具体的错误为:org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version.
Underlying cause: java.sql.SQLException : Access denied for user 'root'@'xxx' (using password: YES)
SQL Error code: 1045
Use --verbose for detailed stacktrace.

*** schemaTool failed ***

具体的解决方法参考自:https://blog.csdn.net/peterchan88/article/details/78341852

错误原因用户xxxxx权限不足

进入mysql,查询用户:

初始化hive出错,org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version.


修改用户权限:(修改的用户为hive中提示错误的用户XXXX)

初始化hive出错,org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version.


退出数据库,执行初始化,成功。

初始化hive出错,org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version.

相关文章:

  • 2022-12-23
  • 2021-11-05
  • 2021-07-13
  • 2022-12-23
  • 2022-12-23
  • 2022-03-03
  • 2021-10-08
  • 2021-04-06
猜你喜欢
  • 2022-01-15
  • 2022-01-09
  • 2022-12-23
  • 2022-01-22
  • 2021-10-06
  • 2021-11-19
  • 2022-12-23
相关资源
相似解决方案