如下表:
常用端口的记录
HDFS
HDFS DataNode 50010
dfs.datanode.address datanode服务端口,用于数据传输50075
dfs.datanode.http.address http服务的端口50475
dfs.datanode.https.address https服务的端口50020
dfs.datanode.ipc.address ipc服务的端口NameNode 50070
dfs.namenode.http-address http服务的端口50470
dfs.namenode.https-address https服务的端口8020
dfs.defaultFS 接收Client连接的RPC端口,用于获取文件系统metadata信息。journalnode 8485
dfs.journalnode.rpc-address RPC服务8480
dfs.journalnode.http-address HTTP服务ZKFC 8019
dfs.ha.zkfc.port ZooKeeper FailoverController,用于NN HA
YARN
YARN ResourceManager 8032
yarn.resourcemanager.address RM的applications manager(ASM)端口8030
yarn.resourcemanager.scheduler.address scheduler组件的IPC端口8031
yarn.resourcemanager.resource-tracker.address IPC 8033
yarn.resourcemanager.admin.address IPC 8088
yarn.resourcemanager.webapp.address http服务端口 NodeManager 8040
yarn.nodemanager.localizer.address localizer IPC 8042
yarn.nodemanager.webapp.address http服务端口 8041
yarn.nodemanager.address NM中container manager的端口
JobHistory Server 10020
mapreduce.jobhistory.address IPC 19888
mapreduce.jobhistory.webapp.address http服务端口
HBase
HBase Master 60000 /16000
hbase.master.port IPC 60010
hbase.master.info.port http服务端口
RegionServer 60020
hbase.regionserver.port IPC 60030
hbase.regionserver.info.port http服务端口
ZK
ZooKeeper Server 2181 /etc/zookeeper/conf/zoo.cfg中clientPort=<port> 对客户端提供服务的端口
2888 /etc/zookeeper/conf/zoo.cfg中server.x=[hostname]:nnnnn[:nnnnn], follower用来连接到leader,只在leader上监听该端口。
3888 /etc/zookeeper/conf/zoo.cfg中server.x=[hostname]:nnnnn[:nnnnn], 用于leader选举的。只在electionAlg是1,2或3(默认)时需要。
Hive
Hive Metastore 9083 /etc/default/hive-metastore中export PORT=<port>来更新默认端口
HiveServer 10000 /etc/hive/conf/hive-env.sh中export HIVE_SERVER2_THRIFT_PORT=<port>来更新默认端口