apache / druid

Apache Druid: a high performance real-time analytics database.
https://druid.apache.org/
Apache License 2.0
13.46k stars 3.7k forks source link

connection between overlord and middlemanager #7821

Closed AzamAhmadloo closed 4 years ago

AzamAhmadloo commented 5 years ago

Hi.

I installed druid 0.14.1 cluster and now I have an error on my Data server for historical process:

Now I don't know how to change this localIp (127.0.0.1) to my coordinator server Ip.

w3z4y4 commented 5 years ago

@AzamAhmadloo You can add hosts in your cluster. 104.xxx.xxx.xx1 overlord 104.xxx.xxx.xx2 coordinator

w3z4y4 commented 5 years ago

@AzamAhmadloo overlord and coordinator log file

AzamAhmadloo commented 5 years ago

@w3z4y4

Where are log files? The previous log was log for run command. Do you need this log?

w3z4y4 commented 5 years ago

@AzamAhmadloo You can use these command to start Druid~

java `cat conf/druid/coordinator/jvm.config | xargs` -cp conf/druid/_common:conf/druid/coordinator:lib/* org.apache.druid.cli.Main server coordinator > coordinator.log  2>&1 &
java `cat conf/druid/overlord/jvm.config | xargs` -cp conf/druid/_common:conf/druid/overlord:lib/* org.apache.druid.cli.Main server overlord >overlord.log  2>&1 &
AzamAhmadloo commented 5 years ago

coordinator.log overlord.log

@w3z4y4 These are log files

AzamAhmadloo commented 5 years ago

My error on master server fixed. Now my master server see middlemanager server correctly. I added druid.worker.ip=192.168.0.0 to conf/druid/middlemanager/runtime.properties

The error remains on historical server:

WARN [main] org.apache.druid.discovery.DruidLeaderClient - Request[http://localhost:8081/druid/coordinator/v1/lookups/config/__default?detailed=true] failed. org.jboss.netty.channel.ChannelException: Faulty channel in resource pool java.net.ConnectException: Connection refused: localhost/127.0.0.1:8081

How to connect to coordinator server from historical server?

Suroor-Ahmmad commented 5 years ago

How did you fix this issue?

AzamAhmadloo commented 5 years ago

How did you fix this issue?

That was my first view of druid. You should know zookeeper is incredibly important in your cluster and all your nodes should configure correctly about this. This is the tip.

stale[bot] commented 4 years ago

This issue has been marked as stale due to 280 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@druid.apache.org list. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.