Drill in embedded mode won’t use zookeeper coordinator instead it uses local 
coordinator.

Rajkumar Singh
MapR Technologies


> On Jun 23, 2015, at 4:41 PM, Fabian Wilckens <[email protected]> wrote:
> 
> Hi,
> 
> 31010 is the drillbit port and not the Zookeeper port which should be 2181.
> 
> How do you execute sqlline?
> 
> Thanks,
> Fabian
> 
> 
> 
> 
> 
> On Tue, Jun 23, 2015 at 11:11 AM, Dmitry Annenkov <[email protected]> wrote:
> 
>> Hello guys!
>> I have install drill on my local machine in embedded mode. I did it with
>> all default settings. It works ok when I try to query it from sqlline
>> console. but now I try to connect it from java code using connection line
>> "jdbc:drill:zk=localhost:31010" and I get following:
>> 
>> 08:57:26.553 [main-SendThread(localhost:31010)] DEBUG
>> org.apache.zookeeper.ClientCnxn - Session establishment request sent on
>> localhost/127.0.0.1:31010
>> 08:57:26.554 [main-SendThread(localhost:31010)] INFO
>> org.apache.zookeeper.ClientCnxn - Unable to read additional data from
>> server sessionid 0x0, likely server has closed socket, closing socket
>> connection and attempting reconnect
>> 
>> and server log contains following:
>> 
>> 2015-06-23 12:09:13,318 [main] INFO  o.apache.drill.exec.server.Drillbit -
>> Startup completed (3413 ms).
>> 2015-06-23 12:09:20,129 [UserServer-1] ERROR
>> o.a.d.exec.rpc.RpcExceptionHandler - Exception in RPC communication.
>> Connection: /127.0.0.1:31010 <--> /127.0.0.1:61879 (user client).  Closing
>> connection.
>> io.netty.handler.codec.CorruptedFrameException: Received a message of
>> length 0.
>> 
>> Here are same question with more detailed logs:
>> http://stackoverflow.com/questions/30983605/apache-drill-connect-from-code
>> 
>> Is there any settings that I missed?
>> 

Reply via email to