Drillbit failed to start with error "Connection timed out for connection string (localhost:2181)"

Document created by prasoon Employee on Feb 8, 2016
Version 1Show Document
  • View in full screen mode

Author: Prasoon Keloth

 

Original Publication Date: April 3, 2015

Env:

Drill on MapR cluster

Issue:

Drillbit failed to start with error "Connection timed out for connection string (localhost:2181)"

[main] ERROR org.apache.curator.ConnectionState - Connection timed out for connection string (localhost:2181) and timeout (5000) / elapsed (11153) 
org.apache.curator.CuratorConnectionLossException: KeeperErrorCode = ConnectionLoss
at org.apache.curator.ConnectionState.checkTimeouts(ConnectionState.java:198) [curator-client-2.5.0.jar:na]
at org.apache.curator.ConnectionState.getZooKeeper(ConnectionState.java:88) [curator-client-2.5.0.jar:na]
at org.apache.curator.CuratorZookeeperClient.getZooKeeper(CuratorZookeeperClient.java:115) [curator-client-2.5.0.jar:na]

Solution:

MapR use port 5181 for Zookeeper, in the error message its trying to connect to Apache default Zookeeper port 2181. This need to be corrected in /opt/mapr/drill/drill-<version>/conf/drill-override.conf

eg.

drill.exec: { 
     cluster-id: "MyCluster-drillbits",  
     zk.connect: "node1:5181,node2:5181,node3:5181"
}

Attachments

    Outcomes