Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

How To Fix – “Py4JJavaError: An Error Occurred While Calling oxx.showString” in Spark.

avatar
Frequent Visitor

Previous issue was 

Py4JJavaError: An error occurred while calling oxxxx.collectToPython.

 

2 REPLIES 2

avatar
Super Collaborator

Hello @ISC 

 

Thanks for using Cloudera Community. Based on the Post, You are experiencing an Error as shared while using Python with Spark. We shall need full trace of the Error along with which Operation cause the same (Even though the Operation is apparent in the trace shared). Along with the full trace, the Client used (Example: pySpark) & the CDP/CDH/HDP release used. 

 

The above details would help us review your Issue & proceed accordingly.

 

Regards, Smarak

avatar
Frequent Visitor

java version "1.8.0_311"
Java(TM) SE Runtime Environment (build 1.8.0_311-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.311-b11, mixed mode)

Hadoop
Hadoop 3.0.0-cdh6.2.1

 

Version Spark
version 2.7.15 (default, May 1 2018 23:32:55)

 

cdh6.2.1