pinot分布式搭建

 

通常,在部署Pinot服务时,最好遵循部署各种组件的特定顺序。在可能存在协议或其他重大差异的情况下,建议使用此部署顺序,部署按可预测的顺序进行,可以避免由于这些更改而导致的故障。

顺序如下:

a)    pinot-controller

b)    pinot-broker

c)    pinot-server

d)    pinot-minion

一、节点hadoop01:

启动controller

nohup ./start-controller.sh -clusterName ChrhcPinotCluster -controllerHost mpp01 -controllerPort 9001 -dataDir /tmp/PinotController -zkAddress hadoop01:2181,hadoop02:2181,hadoop03:2181 >./controller.log 2>&1 &

启动broker

nohup ./start-broker.sh -clusterName ChrhcPinotCluster -brokerHost mpp01 -brokerPort 8000 -zkAddress hadoop:2181,hadoop02:2181,hadoop03:2181 >./broker.log 2>&1 &

启动server

nohup ./start-server.sh -clusterName ChrhcPinotCluster -serverHost mpp01 -serverPort 7000 -serverAdminPort 7500 -dataDir /tmp/PinotData/PinotServerData -segmentDir /tmp/PinotData/PinotServerSegment -zkAddress hadoop01:2181,hadoop02:2181,hadoop03:2181 >./server.log 2>&1 &

 

二、节点hadoop02:

启动controller

nohup ./start-controller.sh -clusterName ChrhcPinotCluster -controllerHost hadoop02 -controllerPort 9001 -dataDir /tmp/PinotController -zkAddress hadoop01:2181,hadoop02:2181,hadoop03:2181 >./controller.log 2>&1 &

启动broker

nohup ./start-broker.sh -clusterName ChrhcPinotCluster -brokerHost hadoop02 -brokerPort 8000 -zkAddress hadoop01:2181,hadoop02:2181,hadoop03:2181 >./broker.log 2>&1 &

启动server

nohup ./start-server.sh -clusterName ChrhcPinotCluster -serverHost hadoop02 -serverPort 7000 -serverAdminPort 7500 -dataDir /tmp/PinotData/PinotServerData -segmentDir /tmp/PinotData/PinotServerSegment -zkAddress hadoop01:2181,hadoop02:2181,hadoop03:2181 >./server.log 2>&1 &

 

三、节点hadoop03:

启动controller

nohup ./start-controller.sh -clusterName ChrhcPinotCluster -controllerHost hadoop03 -controllerPort 9001 -dataDir /tmp/PinotController -zkAddress hadoop01:2181,hadoop02:2181,hadoop03:2181 >./controller.log 2>&1 &

启动broker

nohup ./start-broker.sh -clusterName ChrhcPinotCluster -brokerHost hadoop03 -brokerPort 8000 -zkAddress hadoop01:2181,hadoop02:2181,hadoop03:2181 >./broker.log 2>&1 &

启动server

nohup ./start-server.sh -clusterName ChrhcPinotCluster -serverHost hadoop03 -serverPort 7000 -serverAdminPort 7500 -dataDir /tmp/PinotData/PinotServerData -segmentDir /tmp/PinotData/PinotServerSegment -zkAddress hadoop01:2181,hadoop02:2181,hadoop03:2181 >./server.log 2>&1 &

你可能感兴趣的:(pinot)