Support Questions
Find answers, ask questions, and share your expertise

[Zeppelin]: pyspark is not responding!



@Khouloud Landari The error message is very generic. To be able to further help you finding the solution please provide:

1. Check /var/log/zeppelin/zeppelin-interpreter-spark2-spark-zeppelin-*.log - And copy the important pieces you consider worth sharing

2. From zeppelin UI > Interpreter > Take screenshot of spark2 interpreter configuration and share - Also try restarting the interpreter and check if that helps or not.

3. Run the following command from zeppelin host:

SPARK_MAJOR_VERSION=2 pyspark --master yarn --verbose

and copy the output you get in the console to this post

With this information we should be able to draw further conclusions as to what could be causing the issue.

Note: If you add a comment to this post please make sure you tag my name using @ and my name. This way I will be able to know you have updated with more information.

Thank you, @Felix Albani! Actually, besides that error message, anything I try on zeppelin with pyspark, keeps pending and never run.
So, I've tried everything you mentioned:
1. Some of the info I got:

INFO [2018-05-05 05:59:31,823] ({pool-1-thread-1}[interrupt]:421) - Sending SIGINT signal to PID : 7627
 WARN [2018-05-05 06:39:08,446] ({ResponseProcessor for block BP-32082187-}[run]:958) - DFSOutputStream ResponseProcessor exception  for block BP-
32082187-                                                Premature EOF: no length prefix available                                                                                                                                                    
        at org.apache.hadoop.hdfs.protocolPB.PBHelper.vintPrefixed(                                                                                                                             
        at org.apache.hadoop.hdfs.protocol.datatransfer.PipelineAck.readFields(                                                                                                               
        at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer$

2. I've tried restarting it but it doesn't work!



3. The output is:



@Khouloud Landari Do you see it stuck after those WARN Service SparkUI could not bind to port 4041? If that is the case I think the problem maybe is not able to start an application on yarn. What happens is spark2 pyspark launches a yarn application on your cluster and I think this is what is probably failing.

Try this command and let me know if this works:

SPARK_MAJOR_VERSION=2 pyspark --master local --verbose

Also I would advise you to check the Resource Manager logs. RM logs can be found on RM host under /var/log/hadoop-yarn

This will probably show what the problem is with yarn and why your zeppelin user is not able to start applications on the hadoop cluster.