Hue 4.1 - Spark Submit Python - can not run file - run button always inactive

78 views
Skip to first unread message

Theyaa Matti

unread,
Nov 30, 2017, 9:28:01 AM11/30/17
to Hue-Users
I am trying to run a pyspark file using Livy but the run button always stays inactive and clicking does nothing. Livy is configured properly and I do not see any errors in Hue and Livy when trying to run the pyspark file. Would you please let me know if I am missing something?

Below is the content of the Livy.conf

livy.environment production

livy.impersonation.enabled true

livy.repl.enableHiveContext true

livy.server.csrf_protection.enabled false

livy.server.port 8999

livy.server.recovery.mode recovery

livy.server.recovery.state-store filesystem

livy.server.recovery.state-store.url /livy2-recovery

livy.server.session.timeout 3600000

livy.spark.master yarn


Thanks

Theyaa Matti

unread,
Nov 30, 2017, 2:39:02 PM11/30/17
to Hue-Users
Any update on this one please? I cant get Hue to run my python file.

Theyaa Matti

unread,
Dec 5, 2017, 2:42:08 PM12/5/17
to Hue-Users
This is happening on with Spark Submit Python. It is not happening with Spark Submit Jar.

I get the following javascript error when trying to access this interpreter:
Uncaught TypeError: Unable to process binding "sortable: function (){return {
          template:'snippeteditor',data:snippets,isEnabled:true,options:{'handle':'.move-widget','axis':'y','opacity':0.8,'placeholder':'snippet-move-placeholder','greedy':true,'stop':function(event,ui){
              var $element = $(event.target);
              $element.find('.snippet-body').slideDown('fast',function(){ $(MAIN_SCROLLABLE).scrollTop(lastWindowScrollPosition);});},'helper':function(event){
              lastWindowScrollPosition = $(MAIN_SCROLLABLE).scrollTop();
              var $element = $(event.target);
              $element.find('.snippet-body').slideUp('fast',function(){
                $('.sortable-snippets').sortable('refreshPositions')});
              var _par = $('<div>')
                .css('overflow','hidden')
                .addClass('card-widget snippet-move-helper')
                .width($element.parents('.snippet').width());
              $('<h2>')
                .addClass('card-heading')
                .html($element.parents('h2').html())
                .appendTo(_par)
                .find('.hover-actions, .snippet-actions')
                .removeClass('hover-actions')
                .removeClass('snippet-actions');
              $('<pre>')
                .addClass('dragging-pre muted')
                .html(ko.dataFor($element.parents('.card-widget')[0]).statement())
                .appendTo(_par);
              _par.css('height','100px');
              return _par;}},dragged:function(widget){
            $('.snippet-body').slideDown('fast',function(){ $(MAIN_SCROLLABLE).scrollTop(lastWindowScrollPosition);});}} }"
Message: Unable to process binding "template: function (){return { if:$root.editorMode() && ! $root.isResultFullScreenMode() &&['jar','java','spark2','distcp','shell','mapreduce'].indexOf(type()) == -1,name:'snippet-code-resizereditor'} }"
Message: Unable to process binding "aceResizer: function (){return { ace:ace,target:'.ace-container-resizable',onStart:hideFixedHeaders,onStop:redrawFixedHeaders} }"
Message: Cannot read property 'on' of null
    at init (ko.hue-bindings.js:2071)
    at hue-bundle.js:52
    at Object.ignore (hue-bundle.js:51)
    at hue-bundle.js:52
    at Object.arrayForEach (hue-bundle.js:51)
    at p (hue-bundle.js:52)
    at l (hue-bundle.js:52)
    at y.applyBindings (hue-bundle.js:52)
    at Object.a.applyBindings (knockout.validation.min.js:10)
    at hue-bundle.js:53


I would appreciate any help here:
Reply all
Reply to author
Forward
0 new messages