Error Message "java.lang.StackOverflowError" Is Displayed When the Spark Engine Is Used to Execute Complex Hive SQL Tasks
Symptom
In MRS 3.6.0-LTS and later versions, Spark fails to run complex Hive SQL tasks and the following error information is displayed in the HiveServer run log:
... Caused by: org.apache.spark.SparkException: java.lang.StackOverflowError at java.io.ObjectStreamClass$WeakClassKey.<init>(ObjectStreamClass.java:2600) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:382) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1209) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1637) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1598) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1521) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1253) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:409) at scala.collection.immutable.List$SerializationProxy.writeObject(List.scala:516) at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498)
Procedure
- Increase the value of -Xss in the following commands on the Hive client:
set spark.executor.extraJavaOptions=-Xss10M;
set spark.driver.extraJavaOptions=-Xss10M;
set spark.yarn.cluster.driver.extraJavaOptions=-Xss10M;
- Run the Hive SQL task again.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot