Hi,

I have another question for you, about interpreter,

Sometime, a interpreter are ... slow or  crash ? (i don't know if i can say
crash but anyway),

Does the exist a way for checking the status of each interpreter ?

For example, my psql interpreter crash and i have to restart manually.

I saw in version 0.6.0 some rest api (i love rest) about interpreter, and i
would like to know if there is a way to implement a status for each
interpreter on the response.

Sincerely,



Le ven. 24 juin 2016 à 06:53, moon soo Lee <m...@apache.org> a écrit :

> Glad to hear it works.
> Thanks for sharing the problem and creating an issue!
>
> Best,
> moon
>
>
> On Thu, Jun 23, 2016 at 9:33 PM kevin giroux <giroux.kevin...@gmail.com>
> wrote:
>
>> Don't worry about that, i'm sure you have a lot of work to do,
>>
>> We found the trick, (the format of the data we send was not correct, and
>> the zeppelin throw a Java.Null.Pointer)
>>
>> We have juste change it and now it works.
>>
>> Le ven. 24 juin 2016 à 05:15, moon soo Lee <m...@apache.org> a écrit :
>>
>>> Apologies for late response.
>>> I'm not sure how your paragraphs went into the "PENDING",
>>> but if you're trying to run paragraph, "RUN_PARAGRAPH" message [1] need
>>> to be sent.
>>> And i think some additional fields (principal, ticket, roles) are
>>> required, too [2].
>>>
>>> Thanks,
>>> moon
>>>
>>> [1]
>>> https://github.com/apache/zeppelin/blob/140adb8d3939aef850b646bbecbc7b63e0b99f94/zeppelin-web/src/components/websocketEvents/websocketMsg.service.js#L100
>>> [2]
>>> https://github.com/apache/zeppelin/blob/140adb8d3939aef850b646bbecbc7b63e0b99f94/zeppelin-web/src/components/websocketEvents/websocketEvents.factory.js#L30
>>>
>>>
>>> On Fri, Jun 17, 2016 at 7:32 AM kevin giroux <giroux.kevin...@gmail.com>
>>> wrote:
>>>
>>>> Hi moon soo Lee,
>>>>
>>>> I add the an issues about that on JIRA =>
>>>> https://issues.apache.org/jira/browse/ZEPPELIN-1029
>>>>
>>>> i try to use  websocket also for changing the configuration as you said
>>>> yesterday,
>>>>
>>>> but my call is always in "PENDING"
>>>>
>>>> Here there is my websocket call, on Angular2 with a Angular2-websocket
>>>> Module.
>>>> this.ws.connect(true);
>>>>  this.ws.getDataStream();
>>>>     var config = {
>>>>       colWidth: 12,
>>>>       editorHide: false,
>>>>       editorMode: "ace/mode/sql",
>>>>       enabled: true,
>>>>       graph: {
>>>>         groups: [],
>>>>         height: 300,
>>>>         keys: [0],
>>>>         mode: "lineChart",
>>>>         optionOpen: true,
>>>>         scatter: {
>>>>            xAxis :{
>>>>              aggr: "sum",
>>>>              index: 0,
>>>>              name: "id",
>>>>            },
>>>>            yAxis: {
>>>>              aggr: "sum",
>>>>              index: 1,
>>>>              name: "codesource",
>>>>           }
>>>>         }
>>>>       },
>>>>       values: [],
>>>>       lineNumbers: true,
>>>>       tableHide: false,
>>>>       title: true
>>>>      }
>>>>     this.ws.send(
>>>>       {
>>>>         op: 'COMMIT_PARAGRAPH',
>>>>           data: {
>>>>             id: this.paragraph.id,
>>>>             title : this.paragraph.title,
>>>>             paragraph: this.paragraph.text,
>>>>             config: config
>>>>           }
>>>>         }
>>>>     );
>>>>
>>>>     this.ws.send({
>>>>           op: 'PARAGRAPH',
>>>>           data: {
>>>>             id: this.paragraph.id,
>>>>             title : this.paragraph.title,
>>>>             paragraph: this.paragraph,
>>>>             config: config
>>>>           }
>>>>         }
>>>>       );
>>>>
>>>>
>>>> Can you tell me if there is something missing beforce using websocket ?
>>>> authentification ? permission ?
>>>>
>>>> Sincerely,
>>>>
>>>>
>>>> Le jeu. 16 juin 2016 à 16:54, moon soo Lee <m...@apache.org> a écrit :
>>>>
>>>>> Yes, it's reasonable to have RestAPI for change 'config'.
>>>>> Please feel free to file a issue. Code contribution would be more than
>>>>> welcome.
>>>>>
>>>>> Thanks,
>>>>> moon
>>>>>
>>>>>
>>>>> On Thu, Jun 16, 2016 at 12:31 AM kevin giroux <
>>>>> giroux.kevin...@gmail.com> wrote:
>>>>>
>>>>>> Thank again for you reply.
>>>>>>
>>>>>> Do you know if it is a possible improvement for the Web Side and Rest
>>>>>> API ? I think it will could be usefull to allowed user to create Notebook
>>>>>> and paragraph with this system.
>>>>>>
>>>>>> Sincerely,
>>>>>>
>>>>>>
>>>>>>
>>>>>> Le jeu. 16 juin 2016 à 07:07, moon soo Lee <m...@apache.org> a
>>>>>> écrit :
>>>>>>
>>>>>>> Websocket server in the other hands, take care of 'config', as well
>>>>>>> as text and title.
>>>>>>>
>>>>>>> https://github.com/apache/zeppelin/blob/branch-0.5.6/zeppelin-server/src/main/java/org/apache/zeppelin/socket/NotebookServer.java#L464
>>>>>>>
>>>>>>> If ZeppelinServer is running on port 8080 for example websocket URI
>>>>>>> will be, ws://localhost:8080/ws.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> moon
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Jun 15, 2016 at 10:00 PM kevin giroux <
>>>>>>> giroux.kevin...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Thank about you response,
>>>>>>>>
>>>>>>>> But how does it work for setting the configuration ?
>>>>>>>>
>>>>>>>> I saw on the web page, you are using websocket. What kind of URI
>>>>>>>> this websocket call for changing the paragraph config ?
>>>>>>>>
>>>>>>>> Sincerely,
>>>>>>>>
>>>>>>>> Le mer. 15 juin 2016 à 22:04, moon soo Lee <m...@apache.org> a
>>>>>>>> écrit :
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I think 0.5.6 rest api (and current, too) does not take 'config'.
>>>>>>>>>
>>>>>>>>> Here's how create a paragraph rest api is implemented.
>>>>>>>>>
>>>>>>>>> https://github.com/apache/zeppelin/blob/branch-0.5.6/zeppelin-server/src/main/java/org/apache/zeppelin/rest/NotebookRestApi.java#L248
>>>>>>>>>
>>>>>>>>> And this is the message format for create a paragraph rest api.
>>>>>>>>>
>>>>>>>>> https://github.com/apache/zeppelin/blob/branch-0.5.6/zeppelin-server/src/main/java/org/apache/zeppelin/rest/message/NewParagraphRequest.java
>>>>>>>>>
>>>>>>>>> Hope this helps
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> moon
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wed, Jun 15, 2016 at 7:48 AM kevin giroux <
>>>>>>>>> giroux.kevin...@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Hi Zeppelin Dev
>>>>>>>>>>
>>>>>>>>>> I have a question about all the Rest API you provide in the
>>>>>>>>>> version 0.5.6
>>>>>>>>>>
>>>>>>>>>> I try to create a paragraph with the Rest api (
>>>>>>>>>> http://zeppelin.apache.org/docs/0.5.6-incubating/rest-api/rest-notebook.html
>>>>>>>>>> )
>>>>>>>>>>
>>>>>>>>>> But the issues (or not), is, when i try to insert in my
>>>>>>>>>> paragraph, with the following object.
>>>>>>>>>>
>>>>>>>>>>  {"title":"Hello
>>>>>>>>>> worl","text":"%psql.sql","config":{"graph":{"mode":"pieChart"},"optionOpen":false},"index":0,"id":"20160615-163330_1387735696"}
>>>>>>>>>>
>>>>>>>>>> my config is not saved ...
>>>>>>>>>>
>>>>>>>>>> Can you provide to me the full structure that i need to send to
>>>>>>>>>> set the configuration in my rest API with you rest API.
>>>>>>>>>>
>>>>>>>>>> Sincerely in advance,
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>

Reply via email to