纵有疾风起
人生不言弃

待整理

 

电脑直接重启,没有关闭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;

文章转载于:https://www.cnblogs.com/kxdblog/p/4464159.html

原著是一个有趣的人,若有侵权,请通知删除

未经允许不得转载:起风网 » 待整理
分享到: 生成海报

评论 抢沙发

评论前必须登录!

立即登录