I am using Spark SQL. Spark version 2.2.2.
The SQL likes
select a.*, b.* from a inner join b on a.id=b.id
Table a and b is huge. This works and I can get the answer.
Secondly, I want to save the SQL results to hive table. The SQL likes:
create table xxx stored as orc as select ...
This would fail with error code 143. The error message is:
ExecutorLostFailure (executor 268 exited caused by one of the running tasks) Reason: Container marked as failed: container_e37_1554167308087_15187_01_000269 on host: xxx. Exit status: 143. Diagnostics: Container killed on request. Exit code is 143 +details ExecutorLostFailure (executor 268 exited caused by one of the running tasks) Reason: Container marked as failed: container_e37_1554167308087_15187_01_000269 on host: xxxx. Exit status: 143. Diagnostics: Container killed on request. Exit code is 143 Container exited with a non-zero exit code 143 Killed by external signal
I tried to use pyspark to use df.saveAsTable(). This works at some scenarios but not all times.
Can anybody help?
Thanks.
--driver-memory? - MaFFdf.saveAsTable()fails randomly because of uneven partitionning. try repartitioning before savingdf.repartition(n).saveAsTable()- MaFF--executor-memory, reduce number of cores by executor (they share the RAM of an executor), don't forget to increase the memory overhead to match the specifications - MaFF