You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by Aurélien Hébert <au...@cityzendata.com> on 2016/09/19 09:31:01 UTC

Custom interpreter in 0.6.1

Hello,

I developed an interpreter for the Zeppelin version 0.6.0. I am now
updating it to work on the 0.6.1 release. But unfortunately I am
experimenting an issue.

When clicking on the create button, I found a list of interpreter with
mine, I add it and save it. Then no interpreter is created.
When checking on the network requests made I have the following result:
{"status":"CREATED","message":"","body":{"id":"2BYP7ANTF","name":"test","group":"myInterpreter","properties":{"prop1":"default"},"interpreterGroup":[],"dependencies":[],"option":{"remote":true,"perNoteSession":false,"perNoteProcess":false,"isExistingProcess":false}}}

The field interpreterGroup corresponds here to an empty field, what should
I modify/look for to fill it with the good values ?

I put my jar with the dependencies in interpreter/myInterpreter, and chande
zeppelin-site.xml.
The interpreter is defined using the interpreter-setting.json.

Thanks

---
Aurélien Hébert
Developer at Cityzen Data

Re: Custom interpreter in 0.6.1

Posted by Aurélien Hébert <au...@cityzendata.com>.
Hi Mina,
Thanks for the reply.

I finally found the source of the error, it was due to an error in the
build configuration (the interpreter was not linked to the right class
name) when using the new method to register the interpreter.
Thanks for trying to reproduce it.

I will consider sharing our interpreter (at least in the future) as for now
it is only available on our Github repository, I would like to know more
about the requirement to share it ?
It doesn't have to be an interpreter pushed in zeppelin repository but
possible to install it as a third party interpreter once zeppelin is
deployed.

However, now our interpreter is used to requests data (located in a store)
using a custom language (WarpScript). In order to use it easily, I am
currently using an ace-editor js file. To deploy my zeppelin server, I am
adding this mode-js file in the bower_components folder then I change the
paragraph controller as describe in the documentation. And to conclude I
rebuild the zeppelin-web war and deploy it on my server. As it not really
quit the best fit for production, I would like to know if there is a proper
way to complete that process ?

Regards,
Aurelien

---
Aurélien Hébert
Developer at Cityzen Data

On Wed, Sep 21, 2016 at 1:48 PM, Mina Lee <mi...@apache.org> wrote:

> Hi Aurélien,
>
> If you have used interpeter-setting.json for 0.6.0, I believe there is not
> much of changes you need to make for 0.6.1.
>
> interpreterGroup information is read either from interpreter-setting.json
> under interpreter/{customInterpreterGroupName}
> or interpreter-setting.json included in your jar package.
> interpreterGroup is list of className and name of your interpreter
> which corresponds to those fields in interpreter-setting.json.
> So if you put className and name correctly in interpreter-setting.json, it
> should have non empty interpreterGroup in response.
>
> I tried different things to reproduce the error but I couldn't...
> I would be happy to help you if you can share more detail to reproduce this
> problem. Or feel free to contact me private if you want to share your
> custom interpreter.
>
> Regards,
> Mina
>
> On Mon, Sep 19, 2016 at 11:31 AM Aurélien Hébert <
> aurelien.hebert@cityzendata.com> wrote:
>
> > Hello,
> >
> > I developed an interpreter for the Zeppelin version 0.6.0. I am now
> > updating it to work on the 0.6.1 release. But unfortunately I am
> > experimenting an issue.
> >
> > When clicking on the create button, I found a list of interpreter with
> > mine, I add it and save it. Then no interpreter is created.
> > When checking on the network requests made I have the following result:
> >
> > {"status":"CREATED","message":"","body":{"id":"2BYP7ANTF","
> name":"test","group":"myInterpreter","properties":{"prop1":"default"},"
> interpreterGroup":[],"dependencies":[],"option":{"
> remote":true,"perNoteSession":false,"perNoteProcess":false,"
> isExistingProcess":false}}}
> >
> > The field interpreterGroup corresponds here to an empty field, what
> should
> > I modify/look for to fill it with the good values ?
> >
> > I put my jar with the dependencies in interpreter/myInterpreter, and
> chande
> > zeppelin-site.xml.
> > The interpreter is defined using the interpreter-setting.json.
> >
> > Thanks
> >
> > ---
> > Aurélien Hébert
> > Developer at Cityzen Data
> >
>

Re: Custom interpreter in 0.6.1

Posted by Mina Lee <mi...@apache.org>.
Hi Aurélien,

If you have used interpeter-setting.json for 0.6.0, I believe there is not
much of changes you need to make for 0.6.1.

interpreterGroup information is read either from interpreter-setting.json
under interpreter/{customInterpreterGroupName}
or interpreter-setting.json included in your jar package.
interpreterGroup is list of className and name of your interpreter
which corresponds to those fields in interpreter-setting.json.
So if you put className and name correctly in interpreter-setting.json, it
should have non empty interpreterGroup in response.

I tried different things to reproduce the error but I couldn't...
I would be happy to help you if you can share more detail to reproduce this
problem. Or feel free to contact me private if you want to share your
custom interpreter.

Regards,
Mina

On Mon, Sep 19, 2016 at 11:31 AM Aurélien Hébert <
aurelien.hebert@cityzendata.com> wrote:

> Hello,
>
> I developed an interpreter for the Zeppelin version 0.6.0. I am now
> updating it to work on the 0.6.1 release. But unfortunately I am
> experimenting an issue.
>
> When clicking on the create button, I found a list of interpreter with
> mine, I add it and save it. Then no interpreter is created.
> When checking on the network requests made I have the following result:
>
> {"status":"CREATED","message":"","body":{"id":"2BYP7ANTF","name":"test","group":"myInterpreter","properties":{"prop1":"default"},"interpreterGroup":[],"dependencies":[],"option":{"remote":true,"perNoteSession":false,"perNoteProcess":false,"isExistingProcess":false}}}
>
> The field interpreterGroup corresponds here to an empty field, what should
> I modify/look for to fill it with the good values ?
>
> I put my jar with the dependencies in interpreter/myInterpreter, and chande
> zeppelin-site.xml.
> The interpreter is defined using the interpreter-setting.json.
>
> Thanks
>
> ---
> Aurélien Hébert
> Developer at Cityzen Data
>