05-05-2018 08:36 PM - last edited on 05-06-2018 06:48 AM by cjervis
Error: Error while compiling statement: FAILED: SemanticException Failed to get a spark session: org.apache.hadoop.hive.ql.metadata.HiveException: Failed to create spark client. (state=42000,code=40000)
Some of my hive jobs submitted through oozie fail with this error. Hive editor is used throughout the day and we mostly have our jobs scheduled through oozie the entire time of the day. We cannot afford for any of our jobs to fail.
What can I do to avoid this error?
Here's my cluster configuration:
What can I do to accept any number of connections to spark? I cannot afford any of my jobs failing
Yarn containers are allowed a memory of 6GB and it has worked fine with Map Reduce.
Spark Executor Cores : 4
Spark Executor Maximum Java Heap Size: 2 GB
Spark Driver Memory Overhead:26 MiB
Spark Executor Memory Overhead: 26 MiB
My node configurations:
1 Master node with spark server on it: 16vCPU, 64GB memory
3 worker nodes with HDFS and YARN on it: 16vCPU, 64GB memory
What should be the values for above-mentioned parameters?
I am guessing it to be 6 executors and 25GB heap size with 7GB executor memory overhead
Correct me if I am wrong, please
||6.6s ago||504.1 GiB / 2 TiB||11.9 GiB / 62.5 GiB|
||6.71s ago||494 GiB / 2 TiB||10.5 GiB / 62.5 GiB|
||7.41s ago||1.1 TiB / 1.4 TiB||10.7 GiB / 31 GiB|
||6.53s ago||1 TiB / 2.4 TiB||52.9 GiB / 62.5 GiB|
||14.07s ago||2.8 GiB / 2 TiB||998.7 MiB / 62.5 GiB|
YARN Node manager
|3.66s ago||927.5 GiB / 1000 GiB||6.7 GiB / 31 GiB|