当前位置:网站首页>[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 !
边栏推荐
- Tcp/ip protocol (UDP)
- DICOM: Overview
- Ansible practical series I_ introduction
- 搞笑漫画:程序员的逻辑
- Error reporting solution - io UnsupportedOperation: can‘t do nonzero end-relative seeks
- Rhcsa certification exam exercise (configured on the first host)
- 【presto】presto 参数配置优化
- 保姆级出题教程
- 【CDH】CDH5.16 配置 yarn 任务集中分配设置不生效问题
- In the era of DFI dividends, can TGP become a new benchmark for future DFI?
猜你喜欢
Classes in C #
[download app for free]ineukernel OCR image data recognition and acquisition principle and product application
安装numpy问题总结
【yarn】CDP集群 Yarn配置capacity调度器批量分配
Case analysis of data inconsistency caused by Pt OSC table change
MySQL与c语言连接(vs2019版)
PyCharm中无法调用numpy,报错ModuleNotFoundError: No module named ‘numpy‘
QT creator custom build process
Pytorch基础
【yarn】Yarn container 日志清理
随机推荐
基于apache-jena的知识问答
When you open the browser, you will also open mango TV, Tiktok and other websites outside the home page
Heating data in data lake?
nodejs 详解
Ansible practical series I_ introduction
Install mongdb tutorial and redis tutorial under Windows
Machine learning notes week02 convolutional neural network
[download app for free]ineukernel OCR image data recognition and acquisition principle and product application
[number theory] divisor
Solution to the practice set of ladder race LV1 (all)
[BSidesCF_2020]Had_a_bad_day
天梯赛练习集题解LV1(all)
AcWing 1298.曹冲养猪 题解
Pytorch基础
[Bluebridge cup 2020 preliminary] horizontal segmentation
Django running error: error loading mysqldb module solution
AcWing 242. A simple integer problem (tree array + difference)
L2-006 tree traversal (25 points)
Solve the problem of installing failed building wheel for pilot
Project practice - background employee information management (add, delete, modify, check, login and exit)