在linux中启动clickhouse后,namenode不能启动,查资料发现是端口被占用,于是就找到以下解决办法:
-
netstat -a -t --numeric-ports -p 列举所有端口号及在使用的进程 发现9000端口被clickhouse占用
tcp6 0 0 [::]:9000 [::]:* LISTEN 1618/clickhouse-ser
- 修改clickhouse的配置文件 clickhouse-server/config.xml 文件
-
<!--display_name>production</display_name--> <!-- It is the name that will be shown in the client -->
-
<http_port>8123</http_port>
-
<tcp_port>9000</tcp_port>
-
<mysql_port>9004</mysql_port>
-
<!-- For HTTPS and SSL over native protocol. -->
将<tcp_port>9000</tcp_port>改为<tcp_port>其它端口号</tcp_port>
- 修改metrika.xml 将端口改为<po