livy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Zhang <zjf...@gmail.com>
Subject Re: Apache livy and ajax
Date Wed, 25 Jul 2018 14:41:47 GMT
It doesn't matter whether you send multiple lines, zeppelin also support
multiple lines of code. You can refer the code here.

https://github.com/apache/zeppelin/blob/master/livy/src/main/java/org/apache/zeppelin/livy/BaseLivyInterpreter.java

Melchicédec NDUWAYO <ndumelchipaul2000@gmail.com>于2018年7月25日周三 下午7:53写道:

> Hi everyone. I don't want to use zeppelin or jupyter. I have a web app and
> I want to allow users to write a spark code(scala) in a textarea and then
> submit that code to apache livy REST API and get result executions by ajax
> in jquery. Now I can send only small operations. But when it is a code with
> two lines or with quotes, I get an error.
> Thank you
>
> Le mer. 25 juil. 2018 à 10:51, Jeff Zhang <zjffdu@gmail.com> a écrit :
>
>>
>> Check this for how to use livy in zeppelin
>>
>> https://zeppelin.apache.org/docs/0.8.0/interpreter/livy.html
>>
>>
>> Harsch, Tim <Tim.Harsch@teradata.com>于2018年7月25日周三 上午8:30写道:
>>
>>> Indeed.  Both Jupyter notebooks can interface with Livy using spark
>>> magic https://github.com/jupyter-incubator/sparkmagic.   Zeppelin can
>>> as well, but I am less versed in how to configure it.
>>>
>>>
>>>
>>> --
>>>
>>>
>>> *Tim Harsch *Principal Software Engineer, Research & Development
>>>
>>> Teradata <http://www.teradata.com/>
>>> 2055 Laurelwood Road, Santa Clara, CA 95054
>>> <https://maps.google.com/?q=2055+Laurelwood+Road,+Santa+Clara,+CA+95054&entry=gmail&source=g>
>>> +1-925-960-3843 <(925)%20960-3843>
>>> tim.harsch@teradata.com <your.name@teradata.com>
>>> Teradata.com <http://www.teradata.com/>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *From: *Melchicédec NDUWAYO <ndumelchipaul2000@gmail.com>
>>> *Reply-To: *"user@livy.incubator.apache.org" <
>>> user@livy.incubator.apache.org>
>>> *Date: *Tuesday, July 24, 2018 at 4:01 AM
>>> *To: *"user@livy.incubator.apache.org" <user@livy.incubator.apache.org>
>>> *Subject: *Apache livy and ajax
>>>
>>>
>>>
>>> Good morning everyone,
>>>
>>> is there someone who can tell me how I can send spark code from a
>>> textarea to the apache livy server by using ajax?
>>>
>>> Is that possible? Thank you very much.
>>>
>>>
>>>
>>> --
>>>
>>> Cordialement
>>>
>>> NDUWAYO Melchicédec
>>>
>>> Université Clermont Auvergne(UCA)
>>>
>>> [image: Image removed by sender.]
>>>
>>>
>>>
>>

Mime
View raw message