cloudera manager(CM)修改默认端口号7180

因7180端口号禁止访问,所以需要修改7180端口,不管什么原因吧,反正现在需要修改该端口

修改方法一:后台数据库修改(WEB无法登陆时使用该方法)

        以mysql数据库为例:

1,登录CM安装用户

mysql -uroot -p   

2,使用库CM

use CM;

3,查看默认端口

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 |
+-----------+---------+-----------+-------+------------+---------+---------------------+-------------------------+----------------------+
|         4 |    NULL | http_port | 7180  |       NULL |    NULL |                   2 |                       0 |                 NULL |
+-----------+---------+-----------+-------+------------+---------+---------------------+-------------------------+----------------------+
1 row in set (0.00 sec)

4,把默认端口号修改为8089

update CONFIGS set VALUE='8089' where ATTR='http_port';

5,修改后重启 cloudera-scm-server

 /opt/cm-5.3.2/etc/init.d/cloudera-scm-server restart

修改方法二:web界面修改

    如果WEB界面可以登录,我们可以使用登录管理界面来进行修改

  1,登录web主页    管理->设置


2,修改端口,修改完成后保存

3,修改后重启 cloudera-scm-server

 /opt/cm-5.3.2/etc/init.d/cloudera-scm-server restart


cloudera-scm-server重启报错

博主在重启cloudera-scm-server后遇见一下报错:

cloudera-scm-server dead but pid file exists

查看cloudera-scm-server.log日志,为端口被占用所导致

杀死对应端口并重启cloudera-scm-server

kill -9 $(sudo netstat -tlnp | grep :7180 | awk '{print $7}' | awk -F '/' '{print $1}')
 /opt/cm-5.3.2/etc/init.d/cloudera-scm-server restart
阅读更多

没有更多推荐了,返回首页