我们正在使用ambari 开发HDP 2.6.5集群
我们想更改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
但是正如我们在上面看到的,我们得到-"错误:角色";蜂箱";已经存在";
如何删除当前密码并设置新密码?
参考-https://community.pivotal.io/s/article/How-to-find-the-Hive-metadata-store-password?language=en_US
您不需要删除旧密码,也没有真正的方法删除它。只需使用alter role命令即可。
Alter role test with password ‘something’;