When running in clustered mode you ZK running and point to it appropriately.

It seems you don't have ZK running in your environment.

You can however connect multiple session to Drill in embedded mode.
Simply point directly to the drillbit as apposed to using ZK.

I.e. Start Drill with drill-embedded this will open a sqlline session. From 
anther terminal window you can then run ./sqlline -u 
jdbc:drill:drillbit=localhost if its is on the same machine, or just point to 
the hostname from another machine. If you use ODBC or JDBC the drillbit is on 
port 31010 for client connections by default.

--Andries


> On Feb 22, 2016, at 8:33 AM, Ted Schwartz <[email protected]> wrote:
> 
> I'm new to drill and trying to get up and running. My goal is to access 
> drill from a JDBC client. I'm a bit confused when starting drill. If I use 
> drill-embedded, it appears it only allows one connection and that 
> connection is started along with drill.  So if instead I try to run in 
> distributed mode, I have modified drill-override.conf like this:
> 
> drill.exec: {
>  cluster-id: "drillbits1",
>  zk.connect: "myhost:2181"
> }
> 
> and start drillbit(?)  with this:
> 
> drillbit.sh start
> 
> I get a "starting drillbit..." message, but cannot connect in any way to 
> it.
> 
> If I try to connect using sqlline, it fails with "Connection timed out":
> 
> sqlline -u jdbc:drill:zk=myhost:2181
> 
> Same problems if I try to connect using the drill-conf utility (which 
> appears to be nothing other than an invocation of sqlline)
> 
> No matter how I start drill, it doesn't appear any ports are opened for 
> the process. For example, `netstat -a | grep 2181` doesn't yield any 
> results, and the http port 8047 that works when I start in embedded mode 
> doesn't work in distributed mode.
> 
> I feel like I am missing something fundamental to all of this, although 
> I'm trying to follow the Getting Started documentation.  I've seen 
> references to "making sure you start Zookeeper". How do I do that? I find 
> lots of details about starting drillbit, but nothing about starting 
> Zookeeper.
> 
> Thanks in advance for any clue that can help me move forward.

Reply via email to