In the embedded mode, Drill does not start a Zookeeper quorum and hence it is not possible to connect to it. However, you can start a local drillbit instance using drillbit.sh provided you have a ZooKeeper service running somewhere.
On Fri, Sep 12, 2014 at 10:19 AM, Jim Scott <[email protected]> wrote: > Sure, just created: https://issues.apache.org/jira/browse/DRILL-1409 > > Is it supposed to be possible to startup a local drill instance with > zk=local from the CLI and then connect another CLI instance to it with > zk=localhost:2181 ? > > I have tried this and it doesn't work. > > On Fri, Sep 12, 2014 at 10:03 AM, Jacques Nadeau <[email protected]> > wrote: > > > You can access Drill via JDBC and run in embedded mode using the entire > set > > of jar files shipped with Drill. If you want an application to start up > an > > internal Drillbit, you'll need to add all of these to the classpath. > > > > You can Drill can also access a remote cluster of Drillbits with the much > > simpler and smaller thing jdbc driver (distributed in the > jars/jdbc-driver > > directory of the tarball). This makes use with third party applications > > simpler/smaller. However, this Drill JDBC driver does not support > running > > an embedded Drillbit. You need to be running a Drillbit somewhere to > use > > this. > > > > We should make the error message clearer. Can you file a JIRA for this? > > > > > > On Fri, Sep 12, 2014 at 7:45 AM, Jim Scott <[email protected]> wrote: > > > > > Just to clarify what you are saying. Currently, the JDBC driver will > only > > > work if I am writing code to use the driver and launch it, and thus I > can > > > put everything necessary on the classpath. > > > > > > On Fri, Sep 12, 2014 at 12:00 AM, Aditya <[email protected]> > > wrote: > > > > > > > Drill embedded mode is currently not supported by the JDBC driver. > > > > > > > > On Thu, Sep 11, 2014 at 9:37 PM, Jim Scott <[email protected]> > > wrote: > > > > > > > > > I have pulled down the new 0.5 build and I have decided to try to > get > > > > > dbvisualizer working with this driver. > > > > > > > > > > > > > > > *(If there is something I have wrong here, please let me know)* > > > > > When I use this jar: > > > jars/jdbc-driver/drill-jdbc-all-0.5.0-incubating.jar > > > > > and this driver: org.apache.drill.jdbc.Driver > > > > > with this URL: jdbc:drill:zk=local > > > > > I get the following while establishing the connection: > > > > > Long Message: > > > > > org/eclipse/jetty/server/Handler > > > > > > > > > > > > > -- > *Jim Scott* > Director, Enterprise Strategy & Architecture > +1 (347) 746-9281 > > <http://www.mapr.com/> > [image: MapR Technologies] <http://www.mapr.com> >
