Hi,

When I launch pyspark CLI on my M1 Macbook (standalone mode), I
intermittently get the following error and the Spark session doesn't get
initialized. 7~8 times out of 10, it doesn't have the issue, but it
intermittently fails. And, this occurs only when I specify
`spark.jars.packages` option.
May I get some help on this?

PySpark: 3.3.0 (installed with PIP)
Python: 3.8.10
Java: corretto-1.8.0_332

"""
 % pyspark --conf spark.jars.packages=org.apache.hadoop:hadoop-aws:3.3.2
...

23/06/27 17:51:38 ERROR SparkContext: Error initializing SparkContext.
java.lang.IllegalArgumentException: Too large frame: 5785721462337832960
at
org.sparkproject.guava.base.Preconditions.checkArgument(Preconditions.java:119)
at
org.apache.spark.network.util.TransportFrameDecoder.decodeNext(TransportFrameDecoder.java:148)
at
org.apache.spark.network.util.TransportFrameDecoder.channelRead(TransportFrameDecoder.java:98)
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at
io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at
io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
at
io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
at
io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722)
at
io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:658)
at
io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:584)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)
at
io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:750)
...
23/06/27 17:51:38 ERROR TransportRequestHandler: Error sending result
StreamResponse[streamId=/jars/com.amazonaws_aws-java-sdk-bundle-1.11.1026.jar,byteCount=226379782,body=FileSegmentManagedBuffer[file=.../.ivy2/jars/com.amazonaws_aws-java-sdk-bundle-1.11.1026.jar,offset=0,length=226379782]]
to /192.168.1.19:65116; closing connection
...
"""

Reply via email to