Member since
07-03-2018
20
Posts
0
Kudos Received
0
Solutions
07-19-2018
12:51 PM
@Felix Albani , so I have to create another thread for this or you you will create it? Thank you.
... View more
07-19-2018
12:24 PM
Hi @Felix Albani, thank for your help in this topic. It really helped me. Now I am trying to submit a code from a textarea, I succeded to send a simple code of operations, for example 5+7, 8-7,789/0, 47*7. The problem is when the user wants to submit a huge code with many strings, how can we get that automatically and send it to the apache livy server? In other words, how can I change this line : "data":"{\"code\": \"1 + 1\"}"? This is what I did "data": "{\"code\": \""+code+"\"}", but i works only for operations! Thank you very much!
... View more
07-18-2018
02:46 PM
Hi @Felix Albani, I come back again for your help. I am trying to execute your code step by step, but at the end in the result I get "output": null. Do you know where the problem can come from? And the state: waiting in the result. But in the livy/ui I see the result correctly. Maybe I have to wait until state: available? No? Here is what I get exactly: {id: 0, code: "1 + 1", state: "waiting", output: null, progress: 0}code:"1 + 1"id:0output:nullprogress:0state:"waiting"__proto__:constructor:ƒ Object()hasOwnProperty:ƒ hasOwnProperty()isPrototypeOf:ƒ isPrototypeOf()propertyIsEnumerable:ƒ propertyIsEnumerable()toLocaleString:ƒ toLocaleString()toString:ƒ toString()valueOf:ƒ valueOf()__defineGetter__:ƒ __defineGetter__()__defineSetter__:ƒ __defineSetter__()__lookupGetter__:ƒ __lookupGetter__()__lookupSetter__:ƒ __lookupSetter__()get __proto__:ƒ __proto__()set __proto__:ƒ __proto__() Thank you!
... View more
07-15-2018
01:34 PM
Hi. Thank you very much. That helps me.
... View more
07-14-2018
10:50 PM
Hi @Felix Albani , is this normal that I can not see any of your comments on this topic? That was helping me in resolving my problem. Please, I know I didn't give a return because I was searching in my side how to make proxy reverse. Is that possible to put again your comments here? Thank you very much for your help.
... View more
07-12-2018
10:46 AM
Hi every one, do you think it is possible to enable cors in apache livy? I think my problem is from that. I tried all propositions from forums but no solution can resolve my problem. May be it is possible by modifying the livy.conf or livy-client.conf files to do that. But I don't know how. Thank you
... View more
07-11-2018
09:27 AM
Hi @Felix Albani , can you help please, by telling me where I can put that configuration that he is talking here: https://benjaminhorn.io/code/setting-cors-cross-origin-resource-sharing-on-apache-with-correct-response-headers-allowing-everything-through? I still have the problem and I think that problem is because apache livy doesn't allow CORS. I don't know exactly where I can tell apache livy to accept this. Which kind of server does apache livy use? It uses apache, right? So I tried to modify /etc/apache2/apache2.conf in my Ubuntu system but it doesn't work. I really need a help! Thank you and I hope you understand well my English which must be very bad.
... View more
07-09-2018
09:22 PM
Hi @Felix Albani , thank you again for your help. I think, based on this : https://issues.apache.org/jira/browse/LIVY-444?jql=text%20~%20%22LIVY%3A%20CORS%22, my problem is because Livy REST API does not have routes to handle OPTIONS requests. I have a web application and apache livy which are using different ports, so then different domains. Do you think it is possible to run apache Livy REST API into my existing java web application so that they can have the same port and then the same domain? Do you have any idea? Thank you
... View more
07-08-2018
12:07 AM
Hi @Felix Albani . Thank you for your help. I tried your first code, for starting a session, but I still get the error : OPTIONS http://localhost:8998/sessions 405 (Method Not Allowed). Do you know why this? Thank you again for your efforts.
... View more
07-06-2018
11:39 PM
Good morning everyone, can someone help me to see why this jquery code can note create a session to the apache livy? I got these errors : OPTIONS http://localhost:8998/ 405 (Method Not Allowed) and Failed to load http://localhost:8998/: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8084' is therefore not allowed access. The response had HTTP status code 405. This is the code I used : $.ajax({
type: 'POST',
contentType: "application/json; charset=utf-8",
dataType: 'json',
url: 'http://localhost:8998',
data: {kind: 'spark'},
success: function (resultat) {
document.getElementById(response).innerHTML = resultat;
console.log(resultat);
}
});
Thank you for your help
... View more
Labels:
- Labels:
-
Apache Spark