当前位置:网站首页>【CDH】CDH/CDP 环境修改 cloudera manager默认端口7180
【CDH】CDH/CDP 环境修改 cloudera manager默认端口7180
2022-07-06 09:15:00 【kiraraLou】
前言
最近在配合下游搭建 CDP 环境的集群,由于测试方为云环境,并且要求外网 web 端口只能使用 10000 以上,所以 cloudera-manger 默认的 7180需要修改,由于 CM web 界面无法打开,所以只能通过修改元数据库,这里我使用的元数据库是MySql。
修改方法
1. 登录mysql数据库
mysql -h 15.5.4.51 -uroot -p
2. 切换数据库(CM的元数据库)
mysql> use scm;
注意:每个人这个库名,命名不一致,使用自己的即可。
3. 查看 configs_containers 表数据
select * from configs_containers;
结果如下:
+---------------------+-------------------------+-------------+-------------------+
| CONFIG_CONTAINER_ID | OPTIMISTIC_LOCK_VERSION | CONFIG_TYPE | CONFIG_GENERATION |
+---------------------+-------------------------+-------------+-------------------+
| 1 | 1 | ALL_HOSTS | 0 |
| 2 | 18 | SCM | 3 |
+---------------------+-------------------------+-------------+-------------------+
记录
CONFIG_TYPE = SCM 的 CONFIG_CONTAINER_ID值,我这里为2.
4. 对config 表新增http_port 配置
注意:在CDP 环境中, http_port 的默认值 7180, 在
config表中并没有该记录。所以需要我们直接新增,另外一个就是注意CONFIG_CONTAINER_ID要与configs_containers表对应上。否则会报外键冲突。
新增http_port
INSERT INTO `CONFIGS` (`CONFIG_ID`, `ATTR`, `VALUE`, `CONFIG_CONTAINER_ID`) VALUES (635, 'http_port', '17180', 2);
查看是否新增成功
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. 修改后重启 cloudera-scm-server
systemctl restart cloudera-scm-server
6. 查看端口是否修改成功
netstat -tunlp|grep `ps -ef|grep cloudera-scm-server |grep -v grep |awk '{print $2}'`
修改成功!
边栏推荐
- One click extraction of tables in PDF
- [Bluebridge cup 2020 preliminary] horizontal segmentation
- L2-006 tree traversal (25 points)
- ES6 Promise 对象
- Introduction and use of automatic machine learning framework (flaml, H2O)
- 解决安装Failed building wheel for pillow
- Solution of deleting path variable by mistake
- [number theory] divisor
- QT creator specify editor settings
- [蓝桥杯2017初赛]方格分割
猜你喜欢

Unable to call numpy in pycharm, with an error modulenotfounderror: no module named 'numpy‘
![[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

error C4996: ‘strcpy‘: This function or variable may be unsafe. Consider using strcpy_s instead

基于apache-jena的知识问答

In the era of DFI dividends, can TGP become a new benchmark for future DFI?

One click extraction of tables in PDF

保姆级出题教程

快来走进JVM吧

UDS learning notes on fault codes (0x19 and 0x14 services)

Use dapr to shorten software development cycle and improve production efficiency
随机推荐
MySQL and C language connection (vs2019 version)
Error connecting to MySQL database: 2059 - authentication plugin 'caching_ sha2_ The solution of 'password'
天梯赛练习集题解LV1(all)
AcWing 242. A simple integer problem (tree array + difference)
机器学习笔记-Week02-卷积神经网络
数据库高级学习笔记--SQL语句
C语言读取BMP文件
图片上色项目 —— Deoldify
Base de données Advanced Learning Notes - - SQL statements
[number theory] divisor
MTCNN人脸检测
QT creator shape
PyCharm中无法调用numpy,报错ModuleNotFoundError: No module named ‘numpy‘
Aborted connection 1055898 to db:
[蓝桥杯2017初赛]方格分割
AI benchmark V5 ranking
yarn安装与使用
JDBC principle
L2-001 emergency rescue (25 points)
ES6 promise object