Are you running Drill in embedded or distributed mode?

If you are using embedded mode, you don’t specify a port number simply start 
drill by using sqlline
sqlline -u jdbc:drill:zk=local -n admin -p admin

If using distributed mode, you connect to drill by using the zookeeper port 
number of the cluster
(2181 for Apache ZK or 5181 for the Sanbox and MapR Hadoop Distros)

See
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=44994063#Starting/StoppingDrill-invokeSQLLine



—Andries



On Jan 19, 2015, at 6:35 AM, Ralph Schlosser <[email protected]> 
wrote:

> Hi,
> 
> I was trying to follow the Apache Drill tutorial but encountered the 
> following error in drillbit.out when starting drillbit:
> 
> 11:14:52.901 [main] ERROR org.apache.curator.ConnectionState - Connection 
> timed out for connection string (127.0.0.1:2181) and timeout (5000) / elapsed 
> (10197)
> org.apache.curator.CuratorConnectionLossException: KeeperErrorCode = 
> ConnectionLoss
>        at 
> org.apache.curator.ConnectionState.checkTimeouts(ConnectionState.java:198) 
> [curator-client-2.5.0.jar:na]
> 
> Also, this is my environment:
> 
> [vagrant@rhelbox log]$ java -version
> java version "1.7.0_71"
> Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
> Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
> [vagrant@rhelbox log]$ cat /etc/redhat-release
> Red Hat Enterprise Linux Server release 6.6 (Santiago)
> [vagrant@rhelbox log]$
> 
> Note that SELinux is turned off (that was my first thought).
> 
> Interestingly, this problem doesn't occur when starting drillbit on Ubuntu 
> 14.04 and netstat -an confirms the port is open.
> 
> Any suggestions as to how to troubleshoot this further?
> 
> 
> Regards,
> Ralph

Reply via email to