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-04-2018
02:29 PM
@Felix Albani I don't see exactly how to create that livy session with javascript or jquery. Can you help me please? Is there any documentation about that? Using the livy client package will not be easy for me also because I must use nodejs to get the package and me I created my webapp using java ee with maven. I am weak in javascript programming. Please, help me. Thank you. This is how, normally I send posts to the server using ajax: $.ajax({
type: 'POST',
url: 'TraitementsServletPartialAgre',
data: {drag: drag},
success: function (resultat) {
var myTrees = resultat.split("|");
for (var myTree in myTrees) {
var myTree = JSON.parse(myTrees[myTree]);
new Treant(myTree);
}
}
});
And this is what I tried with apache livy:
$.ajax({
type: 'POST',
dataType:'json',
url: 'http://localhost:8998/',
data: {kind: 'spark',
code: CodeMirrorString},
success: function (resultat) {
document.getElementById(response).innerHTML = resultat;
}
});
... View more