当前位置:网站首页>[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_ID
value , 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
config
There is no such record in the table . So we need to directly add , Another is to pay attentionCONFIG_CONTAINER_ID
To work withconfigs_containers
Table 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 !
边栏推荐
- neo4j安装教程
- [蓝桥杯2021初赛] 砝码称重
- 小L的试卷
- QT creator specifies dependencies
- Cookie setting three-day secret free login (run tutorial)
- Error reporting solution - io UnsupportedOperation: can‘t do nonzero end-relative seeks
- QT creator custom build process
- Error connecting to MySQL database: 2059 - authentication plugin 'caching_ sha2_ The solution of 'password'
- L2-001 紧急救援 (25 分)
- 软件测试与质量学习笔记3--白盒测试
猜你喜欢
Pytorch基础
人脸识别 face_recognition
[number theory] divisor
Introduction and use of automatic machine learning framework (flaml, H2O)
Windows下安装MongDB教程、Redis教程
QT creator design user interface
PHP - whether the setting error displays -php xxx When PHP executes, there is no code exception prompt
Vs2019 use wizard to generate an MFC Application
Classes in C #
Vs2019 first MFC Application
随机推荐
What does usart1 mean
Pytorch基础
Unable to call numpy in pycharm, with an error modulenotfounderror: no module named 'numpy‘
Solve the problem of installing failed building wheel for pilot
【kerberos】深入理解kerberos票据生命周期
Vs2019 desktop app quick start
ES6 promise object
小L的试卷
[蓝桥杯2020初赛] 平面切分
[number theory] divisor
MySQL and C language connection (vs2019 version)
[Bluebridge cup 2021 preliminary] weight weighing
L2-001 紧急救援 (25 分)
[AGC009D]Uninity
Codeforces Round #753 (Div. 3)
ES6 let 和 const 命令
Dotnet replaces asp Net core's underlying communication is the IPC Library of named pipes
Cookie setting three-day secret free login (run tutorial)
[MRCTF2020]套娃
Windows下安装MongDB教程、Redis教程