【发布时间】:2020-08-31 15:57:52
【问题描述】:
我们正在使用 ambari 开发 HDP 2.6.5 集群
我们想更改 hive 的密码,因为我们认为我们之前输入了错误的密码
我们也从 hive 日志中得到:
Caused by: org.postgresql.util.PSQLException: FATAL: password authentication failed for user "hive"
所以我们试试
# su - postgres
Last login: Mon Aug 31 15:27:30 UTC 2020 on pts/2
-bash-4.2$ psql
psql (9.2.24)
Type "help" for help.
postgres=# CREATE DATABASE hive;
ERROR: database "hive" already exists
postgres=# CREATE USER hive WITH PASSWORD 'something';
ERROR: role "hive" already exists
但正如我们在上面看到的那样,我们得到 - '错误:角色“hive”已经存在”
如何删除当前密码并设置新密码?
参考 - https://community.pivotal.io/s/article/How-to-find-the-Hive-metadata-store-password?language=en_US
【问题讨论】:
-
您使用密码更改角色并设置新密码。
标签: linux postgresql hive ambari hdp