spark错误合集

来源:互联网 发布:淘宝如何防止图片被盗 编辑:程序博客网 时间:2024/06/05 08:26

spark错误合集

问题一:

sparksql问题: java.lang.OutOfMemoryError: Unable to acquire 68 bytes of memory, got 0The problem for me was indeed coalesce(). What I did was exporting the file not using coalesce() but parquet instead using df.write.parquet("testP"). Then read back the file and export that with coalesce(1).

问题二

 Exit code: 52Stack trace: ExitCodeException exitCode=52:     at org.apache.hadoop.util.Shell.runCommand(Shell.java:561)    at org.apache.hadoop.util.Shell.run(Shell.java:478)    at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:738)    at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:211)    at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:302)    at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:82)    at java.util.concurrent.FutureTask.run(FutureTask.java:262)    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)    at java.lang.Thread.run(Thread.java:745)Container exited with a non-zero exit code 52

解决方案:
driver-memory executor-memory分配过小导致

原创粉丝点击