待整理

本文记录了解决Ambari遇到的数据库恢复错误及Hive元数据库配置的具体步骤,包括清理rpm数据库、配置Hive用户权限等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

电脑直接重启,没有关闭ambari                                                  
rpmdb: Thread/process 2407/3079034560 failed: Thread died in Berkeley DB library
error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 – (-30974)
error: cannot open Packages database in /var/lib/rpm
/usr/lib/python2.6/site-packages/yum/config.py:884: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
raise Errors.YumBaseError(“Error: ” + e.message)
CRITICAL:yum.main:
Error: rpmdb open failed

 
[root@lichenchao ~]#rm /var/lib/rpm/__db*
rm: remove regular empty file __db.000'? y
rm: remove regular file __db.001′? y
rm: remove regular file __db.002'? y
rm: remove regular file __db.003′? y
rm: remove regular file __db.004'? y

 

/etc/hosts

系统盘》windows》system32》drivers》etc  默认在隐藏文件夹中  工具》文件夹选项》查看》显示所有文件和文件夹

查看端口占用:

netstat -ano

netstat -ano | grep 8080

 

 

hive元数据库配置

这个碰到过很多次了,记录一下

root用户不要设置密码

create database hive;

use mysql

create user 'hive' identified by 'hive';

update user set Password = password('hive') where User='hive';

grant all privileges on *.* to 'hive'@'%' identified by 'hive';

grant all privileges on *.* to hive@"localhost" identified by "hive";

grant all privileges on *.* to hive@"192.168.0.203" identified by "hive";

flush privileges;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值