当前位置:网站首页>【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}'`
修改成功!
边栏推荐
- When using lambda to pass parameters in a loop, the parameters are always the same value
- QT creator shape
- [number theory] divisor
- Codeforces Round #771 (Div. 2)
- Library function -- (continuous update)
- QT creator specifies dependencies
- L2-001 紧急救援 (25 分)
- Remember the interview algorithm of a company: find the number of times a number appears in an ordered array
- 误删Path变量解决
- Error reporting solution - io UnsupportedOperation: can‘t do nonzero end-relative seeks
猜你喜欢
一键提取pdf中的表格
When you open the browser, you will also open mango TV, Tiktok and other websites outside the home page
软件测试与质量学习笔记3--白盒测试
Error connecting to MySQL database: 2059 - authentication plugin 'caching_ sha2_ The solution of 'password'
Vs2019 first MFC Application
AI benchmark V5 ranking
vs2019 第一个MFC应用程序
Windows下安装MongDB教程、Redis教程
Request object and response object analysis
[number theory] divisor
随机推荐
PyCharm中无法调用numpy,报错ModuleNotFoundError: No module named ‘numpy‘
How to configure flymcu (STM32 serial port download software) is shown in super detail
Learn winpwn (3) -- sEH from scratch
About string immutability
Solve the problem of installing failed building wheel for pilot
Test objects involved in safety test
JDBC principle
nodejs 详解
UDS learning notes on fault codes (0x19 and 0x14 services)
Use dapr to shorten software development cycle and improve production efficiency
[Blue Bridge Cup 2017 preliminary] buns make up
{one week summary} take you into the ocean of JS knowledge
[蓝桥杯2017初赛]包子凑数
QT creator create button
Vs2019 desktop app quick start
安全测试涉及的测试对象
Error reporting solution - io UnsupportedOperation: can‘t do nonzero end-relative seeks
Tcp/ip protocol (UDP)
wangeditor富文本引用、表格使用问题
[AGC009D]Uninity