当前位置:网站首页>[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 !
边栏推荐
猜你喜欢
随机推荐
安装numpy问题总结
小L的试卷
vs2019 使用向导生成一个MFC应用程序
yarn安装与使用
PyCharm中无法调用numpy,报错ModuleNotFoundError: No module named ‘numpy‘
AcWing 179. Factorial decomposition problem solution
When you open the browser, you will also open mango TV, Tiktok and other websites outside the home page
机器学习--人口普查数据分析
QT creator create button
Dotnet replaces asp Net core's underlying communication is the IPC Library of named pipes
[AGC009D]Uninity
L2-006 tree traversal (25 points)
Reading BMP file with C language
Mtcnn face detection
[蓝桥杯2020初赛] 平面切分
打开浏览器的同时会在主页外同时打开芒果TV,抖音等网站
Pytorch基础
Summary of numpy installation problems
nodejs 详解
{one week summary} take you into the ocean of JS knowledge