Advertisement
josephxsxn

Spark Shuffle Tuning Stuff

Jul 26th, 2017
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. https://issues.apache.org/jira/browse/SPARK-6235
  2. https://issues.apache.org/jira/browse/SPARK-19908
  3. https://issues.apache.org/jira/browse/SPARK-13510
  4. https://www.slideshare.net/ilganeli/how-to-actually-tune-your-spark-jobs-so-they-work
  5.  
  6.  
  7. • Can you confirm this was compiled with the correct versions of all jars that are only HWX issued jars?
  8. • Whats the AccuRev Location of this code? Please Add gray and myself CDSID
  9.  
  10. • Increase your Driver memory to 4g please
  11. • Add this to your spark.executor.extraJavaOptions: ‘-Dio.netty.noUnsafe=true’ and ‘-XX:MaxDirectMemorySize=512m’ and ‘-XX:+PrintGCDetails -XX:+PrintGCTimeStamps’
  12. o This one is important to get a run done with so we can get the real error if its netty related…
  13. • Is all input data in ORC?
  14. • Are you using the KyroSerilizer ? if so please Set spark.kryoserializer.buffer.max=512m
  15. • What volumes was this tested on in the past that it worked?
  16. • Set to – 16gb executor memory, and executors to 200.
  17. • How many shuffle partitions were used in this one?
  18.  
  19.  
  20. spark.shuffle.memoryFraction 0.2
  21. spark.storage.memoryFraction 0.6
  22.  
  23.  
  24. 2017-07-26 02:49:35,171 ERROR [shuffle-client-0] shuffle.RetryingBlockFetcher: Failed to fetch block shuffle_4_156_193, and will not retry (0 retries)
  25. java.lang.OutOfMemoryError: Direct buffer memory
  26. at java.nio.Bits.reserveMemory(Bits.java:658)
  27. at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:123)
  28. at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311)
  29. at io.netty.buffer.PoolArena$DirectArena.newChunk(PoolArena.java:645)
  30. at io.netty.buffer.PoolArena.allocateNormal(PoolArena.java:228)
  31. at io.netty.buffer.PoolArena.allocate(PoolArena.java:212)
  32. at io.netty.buffer.PoolArena.allocate(PoolArena.java:132)
  33. at io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:271)
  34. at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:155)
  35. at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:146)
  36. at io.netty.buffer.AbstractByteBufAllocator.ioBuffer(AbstractByteBufAllocator.java:107)
  37. at io.netty.channel.AdaptiveRecvByteBufAllocator$HandleImpl.allocate(AdaptiveRecvByteBufAllocator.java:104)
  38. at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:117)
  39. at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
  40. at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
  41. at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
  42. at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
  43. at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111)
  44. at java.lang.Thread.run(Thread.java:745)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement