Hi,

It is expected to see "Refix not found" when you run %jdbc(drilllocal) show
databases"

%jdbc([NAME]), the NAME here supposed to be a prefix of interpreter setting
property.

For example, if your interpreter setting has

default.url
default.user
default.password
default.driver
drill.url
drill.user
drill.password
drill.driver
mysql.url
mysql.user
mysql.password
mysql.driver

Then you can select configuration
%jdbc, %jdbc(drill) or %jdbc(mysql)

Hope this helps

Thanks,
moon

On Wed, Mar 2, 2016 at 3:12 PM Christopher Matta <[email protected]> wrote:

> Hi Moon, thanks. My build was built a few days ago off the master branch,
> I think this is a bug. It would be helpful if anyone else could validate or
> refute my findings, it doesn't need to be a Drill JDBC, it can be any set
> of JDBC connections.
>
> Chris Matta
> [email protected]
> 215-701-3146
>
> On Wed, Mar 2, 2016 at 2:36 PM, moon soo Lee <[email protected]> wrote:
>
>> Hi Chris Matta,
>>
>> At the moment, Zeppelin allow one 'Interpreter setting' derived from an
>> interpreter in a notebook.
>>
>> Therefore, Zeppelin will always use the first available interpreter
>> (drilllocal) among your 3 interpreter settings derived from jdbc
>> interpreter drilllocal(%jdbc), jdbc(%jdbc), mysql(%jdbc).
>>
>> Fortunately, jdbc interpreter in master branch allows multiple
>> connections in a single 'Interpreter setting'. Please take a look 'Multiple
>> connections' section in
>>
>> http://zeppelin.incubator.apache.org/docs/0.6.0-incubating-SNAPSHOT/interpreter/jdbc.html
>>
>> Thanks,
>> moon
>>
>>
>> On Wed, Mar 2, 2016 at 11:52 AM Christopher Matta <[email protected]>
>> wrote:
>>
>>> If i’m understanding configuring multiple jdbc prefixes correctly I
>>> should be able to create an Apache Drill interpreter called “drilllocal” as
>>> a jdbc interpreter, but I’m not having much success with identifying it
>>> with it’s prefix:
>>>
>>> This is the drilllocal config (meant to connect to my local, embeded
>>> drillbit):
>>> [image: interpreter shot]
>>>
>>> This notebook has 3 jdbc interpreters enabled:
>>> [image: notebook settings]
>>>
>>> The problem is that the %jdbc interpreter is returning connection info
>>> from the drilllocal interpreter, even though it’s configured to connect
>>> to a remote instance:
>>> [image: results]
>>>
>>> And as you can see the %jdbc(drilllocal) prefix isn’t found. Any ideas
>>> why this may be happening?
>>>
>>> Chris Matta
>>>
>>> [email protected]
>>> 215-701-3146
>>> ​
>>>
>>
>

Reply via email to