当前位置:网站首页>[CDH] modify the default port 7180 of cloudera manager in cdh/cdp environment
[CDH] modify the default port 7180 of cloudera manager in cdh/cdp environment
2022-07-06 11:31:00 【kiraraLou】
Preface
Recently, it has been built in cooperation with the downstream CDP Cluster of environment , Because the testing party is the cloud environment , And require the Internet web Port can only be used 10000 above , therefore cloudera-manger default 7180 Need modification , because CM web The interface cannot be opened , So you can only modify the metabase , The metabase I use here is MySql.
Modification method
1. Sign in mysql database
mysql -h 15.5.4.51 -uroot -p
2. Switch database (CM Metabase of )
mysql> use scm;
Be careful : Everyone's name , The names are inconsistent , Just use your own .
3. see configs_containers Table data
select * from configs_containers;
give the result as follows :
+---------------------+-------------------------+-------------+-------------------+
| CONFIG_CONTAINER_ID | OPTIMISTIC_LOCK_VERSION | CONFIG_TYPE | CONFIG_GENERATION |
+---------------------+-------------------------+-------------+-------------------+
| 1 | 1 | ALL_HOSTS | 0 |
| 2 | 18 | SCM | 3 |
+---------------------+-------------------------+-------------+-------------------+
Record
CONFIG_TYPE = SCM Of CONFIG_CONTAINER_IDvalue , I'm here for2.
4. Yes config Table new http_port To configure
Be careful : stay CDP Environment , http_port The default value of 7180, stay
configThere is no such record in the table . So we need to directly add , Another is to pay attentionCONFIG_CONTAINER_IDTo work withconfigs_containersTable corresponding upper . Otherwise, foreign key conflicts will be reported .
newly added http_port
INSERT INTO `CONFIGS` (`CONFIG_ID`, `ATTR`, `VALUE`, `CONFIG_CONTAINER_ID`) VALUES (635, 'http_port', '17180', 2);
Check whether the addition is successful
mysql> select * from CONFIGS where ATTR='http_port';
+-----------+---------+-----------+-------+------------+---------+---------------------+-------------------------+----------------------+
| CONFIG_ID | ROLE_ID | ATTR | VALUE | SERVICE_ID | HOST_ID | CONFIG_CONTAINER_ID | OPTIMISTIC_LOCK_VERSION | ROLE_CONFIG_GROUP_ID |
+-----------+---------+-----------+-------+------------+---------+---------------------+-------------------------+----------------------+
| 635 | NULL | http_port | 17180 | NULL | NULL | 2 | 0 | NULL |
+-----------+---------+-----------+-------+------------+---------+---------------------+-------------------------+----------------------+
1 row in set (0.00 sec)
5. Restart after modification cloudera-scm-server
systemctl restart cloudera-scm-server
6. Check whether the port has been modified successfully
netstat -tunlp|grep `ps -ef|grep cloudera-scm-server |grep -v grep |awk '{print $2}'`
Modification successful !
边栏推荐
猜你喜欢

AcWing 1298.曹冲养猪 题解

PyCharm中无法调用numpy,报错ModuleNotFoundError: No module named ‘numpy‘

vs2019 第一个MFC应用程序

Software I2C based on Hal Library

UDS learning notes on fault codes (0x19 and 0x14 services)
![[download app for free]ineukernel OCR image data recognition and acquisition principle and product application](/img/1b/ed39a8b9181660809a081798eb8a24.jpg)
[download app for free]ineukernel OCR image data recognition and acquisition principle and product application

Pytorch基础
![[number theory] divisor](/img/ec/036d7e76cc566c08d336444f2898e1.jpg)
[number theory] divisor

Why can't I use the @test annotation after introducing JUnit

02 staff information management after the actual project
随机推荐
wangeditor富文本组件-复制可用
L2-004 is this a binary search tree? (25 points)
ES6 let and const commands
Ansible practical series I_ introduction
AcWing 179. Factorial decomposition problem solution
[蓝桥杯2020初赛] 平面切分
MySQL and C language connection (vs2019 version)
vs2019 桌面程序快速入门
Software testing - interview question sharing
Aborted connection 1055898 to db:
[Blue Bridge Cup 2017 preliminary] grid division
數據庫高級學習筆記--SQL語句
使用lambda在循环中传参时,参数总为同一个值
Cookie setting three-day secret free login (run tutorial)
Integration test practice (1) theoretical basis
MySQL与c语言连接(vs2019版)
[NPUCTF2020]ReadlezPHP
Case analysis of data inconsistency caused by Pt OSC table change
误删Path变量解决
【yarn】Yarn container 日志清理