Cloudera Manager 5.15.1忘记密码怎么破?

                                      作者:尹正杰

版权声明:原创作品,谢绝转载!否则将追究法律责任。

一.登陆CM修改默认密码

1>.使用默认密码登陆CM界面

2>.登陆数据库,查看CM默认的密码

[root@node101.yinzhengjie.org.cn ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 13
Server version: 5.7.25-log MySQL Community Server (GPL) Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>
mysql> use cdh
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A Database changed
mysql>
mysql> SELECT * FROM USERS where USER_NAME='admin'\G
*************************** 1. row ***************************
USER_ID: 1
USER_NAME: admin
PASSWORD_HASH: 28050371a6c695ae410da08db8c26607ae2473fefa874016eab0cb72ca730fe4        #我们需要记住该字符串,因为我们在下面还得用到它哟~
PASSWORD_SALT: -4247944151022041411                                   #它我们也需要记住一下!
PASSWORD_LOGIN: 1
OPTIMISTIC_LOCK_VERSION: 1
1 row in set (0.00 sec) mysql>

3>.点击修改密码

4>.自定义CM的登陆密码

5>.使用之前默认的密码登陆,发现无法正常登陆啦

二.观察修改后数据库存储的字符串变化

1>.使用修改后的密码进行登陆

2>.观察此时数据库存储的用户名密码变化

[root@node101.yinzhengjie.org.cn ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 13
Server version: 5.7.25-log MySQL Community Server (GPL) Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>
mysql> use cdh
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A Database changed
mysql>
mysql> SELECT * FROM USERS where USER_NAME='admin'\G
*************************** 1. row ***************************
USER_ID: 1
USER_NAME: admin
PASSWORD_HASH: 28050371a6c695ae410da08db8c26607ae2473fefa874016eab0cb72ca730fe4
PASSWORD_SALT: -4247944151022041411
PASSWORD_LOGIN: 1
OPTIMISTIC_LOCK_VERSION: 1
1 row in set (0.00 sec) mysql>
mysql>
mysql>
mysql> SELECT * FROM USERS where USER_NAME='admin'\G
*************************** 1. row ***************************
USER_ID: 1
USER_NAME: admin
PASSWORD_HASH: 250041eb472c23cf8c676c241439d8a7b99c2a3ea9df3cc37fb3eefd5ab43029        #发现没有?它发生变化啦!
PASSWORD_SALT: -6043720566682334983                                   #该值也发生变化啦~
PASSWORD_LOGIN: 1
OPTIMISTIC_LOCK_VERSION: 2
1 row in set (0.00 sec) mysql>

三.还原CM默认密码

1>.还原CM默认登陆密码

[root@node101.yinzhengjie.org.cn ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 13
Server version: 5.7.25-log MySQL Community Server (GPL) Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>
mysql> use cdh
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A Database changed
mysql>
mysql> SELECT * FROM USERS where USER_NAME='admin'\G
*************************** 1. row ***************************
USER_ID: 1
USER_NAME: admin
PASSWORD_HASH: 250041eb472c23cf8c676c241439d8a7b99c2a3ea9df3cc37fb3eefd5ab43029
PASSWORD_SALT: -6043720566682334983
PASSWORD_LOGIN: 1
OPTIMISTIC_LOCK_VERSION: 2
1 row in set (0.00 sec) mysql>
mysql> update USERS set PASSWORD_HASH='28050371a6c695ae410da08db8c26607ae2473fefa874016eab0cb72ca730fe4',PASSWORD_SALT='-4247944151022041411' WHERE USER_NAME='admin';
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0 mysql>
mysql> SELECT * FROM USERS where USER_NAME='admin'\G
*************************** 1. row ***************************
USER_ID: 1
USER_NAME: admin
PASSWORD_HASH: 28050371a6c695ae410da08db8c26607ae2473fefa874016eab0cb72ca730fe4
PASSWORD_SALT: -4247944151022041411
PASSWORD_LOGIN: 1
OPTIMISTIC_LOCK_VERSION: 2
1 row in set (0.00 sec) mysql>

2>.使用默认密码进行登陆

3>.登陆成功

Cloudera Manager 5.15.1忘记密码怎么破?的更多相关文章

  1. 关于phpcms 万一忘记密码怎么破?

    莫慌~海洋小生教你~我也是偷偷学来的,呀哈哈哈! first:............................你就认命吧!哈哈哈... 开玩笑开玩笑! LOOK HERE ↓: 1.在没有安装 ...

  2. 通过Cloudera Manager部署CDH5.15.1的webUI界面详解

    通过Cloudera Manager部署CDH5.15.1的webUI界面详解 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 本篇博客CDH的部署完全通过Cloudera Mana ...

  3. Cloudera Manager Server CDH 5.15部署

    安装前准备 主机和系统 Host OS Memory IP bigdata001-dev Cent OS 7.4 x64 32G 192.168.1.1 bigdata002-dev Cent OS ...

  4. Ubuntu安装Cloudera Manager以及CDH5.15.2

    一.机子分配 注意,本安装教程是在真机上进行,而非虚拟机.另,此次搭建主要的目的是搭建测试环境,让Hadoop各组件能够运作起来即可,完成搭建后,将用小数据量进行相关数据的计算与测试.线上环境将会使用 ...

  5. Cloudera Manager 5.9 和 CDH 5.9 离线安装指南及个人采坑填坑记

    公司的CDH早就装好了,一直想自己装一个玩玩,最近组了台电脑,笔记本就淘汰下来了,加上之前的,一共3台,就在X宝上买了CPU和内存升级了下笔记本,就自己组了个集群. 话说,好想去捡垃圾,捡台8核16线 ...

  6. 1.Cloudera Manager安装

    安装环境采用2台虚拟机进行,一台master, 一台slave1 先安装好centos 6.5 两台,并设置静态ip 怎么安装可以参考地址:https://jingyan.baidu.com/arti ...

  7. 离线安装Cloudera Manager 5和CDH5(最新版5.1.3) 完全教程

    关于CDH和Cloudera Manager CDH (Cloudera's Distribution, including Apache Hadoop),是Hadoop众多分支中的一种,由Cloud ...

  8. Cloudera Manager安装_搭建CDH集群

    2017年2月22日, 星期三 Cloudera Manager安装_搭建CDH集群 cpu   内存16G 内存12G 内存8G 默认单核单线 CDH1_node9 Server  || Agent ...

  9. Cloudera Manager及CDH最新版本安装全程记录

    大家都知道,Apache Hadoop的配置很繁琐,而且很零散,为此Cloudera公司提供了Clouder Manager工具,而且还封装了Apache Hadoop,flume,spark,hiv ...

随机推荐

  1. Docker使用 - 镜像

    获取镜像 命令:docker  pull  [选项]  镜像名 可通过 ”docker  pull  --help“  命令来查看有哪些选项 docker pull training/webapp # ...

  2. linux 资源

    linux 资源查看 cpu 信息 通过/proc/cpuinfo 查看  # 总核数 = 物理CPU个数 X 每颗物理CPU的核数  # 总逻辑CPU数 = 物理CPU个数 X 每颗物理CPU的核数 ...

  3. Oracle 实现表中id字段自增长

    Oracle 实现表中id字段自增长 最近正在学习Oracle的时候发现Oracle表中的字段不能像mysql中那样可以用auto increment修饰字段从而让id这种主键字段实现自增长. 那Or ...

  4. Hadoop window win10 基础环境搭建(2.8.1)(转)

    下面运行步骤除了配置文件有部分改动,其他都是参照hadoop下载解压的share/doc/index.html. hadoop下载:http://apache.opencas.org/hadoop/c ...

  5. 容器服务如何在企业客户落地?Rancher 解决之道分享

    Docker 的优势和趋势我想不必再赘述,那么对于非互联网公司的传统企业客户,以及我们大量的围绕企业客户做集成.交付解决方案的服务提供商,需要考虑的一个问题就是怎么样把容器技术以高质量.低成本.易维护 ...

  6. Python学习之路:关于列表(List)复制的那点事

    要谈列表的复制,我们就要谈到Python的赋值规则 首先我们创建列表a: a = [1,2,3] 通常我们复制一个元素的方法是这样的: b = a #复制元素的一般方法 print(a) print( ...

  7. 【Python爬虫案例学习】下载某图片网站的所有图集

    前言 其实很简短就是利用爬虫的第三方库Requests与BeautifulSoup. 其实就几行代码,但希望没有开发基础的人也能一下子看明白,所以大神请绕行. 基本环境配置 python 版本:2.7 ...

  8. Spring整合Hibernate的两种方式

    在使用spring注解整合hibernate时出现"org.hibernate.MappingException: Unknown entity: com.ssh.entry.Product ...

  9. uwsgi重启shell脚本

    一.概述 工作中使用uwsgi时,每次需要进入到工作目录,去执行uwsgi相关命令,比较繁琐.这里整理了一个uwsgi重启脚本! 根据参考链接,修改了部分内容(定义了变量,修复了一些bug,增加了颜色 ...

  10. C#使用CSS选择器抓取页面内容

    最近在查wpf绘图资料时,偶然看到Python使用CSS选择器抓取网页的功能.觉得很强,这里用C#也实现一下. 先介绍一下CSS选择器 在 CSS 中,选择器是一种模式,用于选择需要添加样式的元素. ...