Perfect. Thank you very much ☺

From: DuyHai Doan [mailto:doanduy...@gmail.com]
Sent: Wednesday, July 29, 2015 2:34 PM
To: users@zeppelin.incubator.apache.org
Subject: Re: Multiple instances of the same Interpreter, each with different 
configuration

So below are steps with screenshots:

1. Create new instance of your interpreter and give it a name

https://s3.amazonaws.com/uploads.hipchat.com/6528/1159542/WBIst6M7b2FdhgM/upload.png

2. Create a new notebook and click on the gear icon on the top right corner to 
open the interpreter bindings panel. There choose the instance you just created 
(in my case, "my_own_instance"). Then validate with "Save"

https://s3.amazonaws.com/uploads.hipchat.com/6528/1159542/mJjQdIpNiDgf47W/settings2.png



3. In the notebook, just use the usual %interpreter syntax but this time it 
will bind to the new instance (in my example %cassandra will bind to 
"my_own_instance")



On Wed, Jul 29, 2015 at 10:56 PM, Vadla, Karthik 
<karthik.va...@intel.com<mailto:karthik.va...@intel.com>> wrote:
Hi DuyHai,

3. In the paragraph, the notation %instance2.cassandra does not work, neither 
%instance2 nor %cassandra.instance2,  only %cassandra works and it indeed 
refers to the second instance because I chose it at the notebook config level

How to tell the notebook to choose interpreter which I created. Can you please 
explain where exactly I need to make changes (do you mean in need to edit 
zeppelin-env.sh ??).

I just tried to create new interpreter with name hiveonspark which is instance 
of hive .  I tried to access with %hiveonspark but it does not work.

Thanks
Karthik

From: DuyHai Doan [mailto:doanduy...@gmail.com<mailto:doanduy...@gmail.com>]
Sent: Wednesday, July 29, 2015 1:49 PM
To: 
users@zeppelin.incubator.apache.org<mailto:users@zeppelin.incubator.apache.org>
Subject: Re: Multiple instances of the same Interpreter, each with different 
configuration

So I tried this trick with my Cassandra interpreter:

1. Create a new interpreter named "instance2" (the group name is "cassandra")

2. Create a new notebook and choose "instance2" instead of the original 
"cassandra" as interpreter for this notebook"

3. In the paragraph, the notation %instance2.cassandra does not work, neither 
%instance2 nor %cassandra.instance2,  only %cassandra works and it indeed 
refers to the second instance because I chose it at the notebook config level


On Wed, Jul 29, 2015 at 5:33 AM, Corneau Damien 
<cornead...@gmail.com<mailto:cornead...@gmail.com>> wrote:
Hi,
This should be pretty much how it works (Creating + binding to notebook)
But I think the syntax when using group in your paragraph might be 
%GROUP_NEW.NAME<http://GROUP_NEW.NAME>

Tell me if this works

On Tue, Jul 28, 2015 at 8:34 PM, Christian Tzolov 
<ctzo...@pivotal.io<mailto:ctzo...@pivotal.io>> wrote:
Hi,

Is it possible to instantiate multiple instances of the same Interpreter type, 
where each instance is configured differently?

Assuming there is a working instance: GROUP:NAME. From the 'Interpreter' 
section i can create a new Interpreter instance from particular Interpreter 
type: GROUP_NEW:NAME. Then I can bind the new instance (GROUP_NEW:NAME) through 
the Notebook's configuration but if i try to use it i get:

%GROUP_NEW:NAME
.....
"XXXX interpreter not found"

Am i missing something?

Apologies if this question has been asked already (couldn't found related infor 
in the archive).

Thanks,
Christian

--
Christian Tzolov<http://www.linkedin.com/in/tzolov> | Solution Architect, EMEA 
Practice Team | Pivotal<http://pivotal.io/>
ctzo...@pivotal.io<mailto:ctzo...@pivotal.io>|+31610285517<tel:%2B31610285517>



Reply via email to