【问题标题】:postgres + how to delete the password for hive metastore and set new passwordpostgres + 如何删除配置单元元存储的密码并设置新密码
【发布时间】: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


【解决方案1】:

您不需要删除旧密码,也没有办法删除它。只需使用 alter role 命令即可。

Alter role test with password ‘something’;

【讨论】:

  • 你的意思是真的输入 - “使用密码‘某物’更改角色测试;” ??
  • 用你的名字替换角色名,用你想要的替换密码。
猜你喜欢
  • 2019-08-11
  • 2021-03-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-10-13
  • 1970-01-01
  • 2021-08-09
相关资源
最近更新 更多