成功解决 spark Error: An error occurred while calling o66.start.AccessControlException: permission deny

在进行Spark实时流式处理时遇到`Error: An error occurred while calling o66.start.AccessControlException: permission deny`的问题。错误表现为文件系统禁止writeStream写入数据。解决方法是在集群模式下,为Spark设置检查点位置,如HDFS或S3,设置后程序运行正常,错误消除。
摘要由CSDN通过智能技术生成

目录

 

问题现象

解决办法


问题现象

在实验spark的实时流式处理发现如下错误,具体错误信息如下。 

# 具体错误信息
py4j.protocol.Py4JJavaError: An error occurred while calling o66.start.
: org.apache.hadoop.security.AccessControlException: permission deny
    at org.apache.hadoop.fs.DFileSystem.nativeStat(Native Method)
    at org.apache.hadoop.fs.DFileSystem.getFileStatus(DFileSystem.java:666)
    at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:666)
    at org.apache.spark.sql.execution.streaming.StreamMetadata$.read(StreamMetadata.scala:666)
    at org.apache.spark.sql.execution.streaming.StreamExecution.<init>(StreamExecution.scala:666)
    at org.apache.spark.sql.execution.streaming.MicroBatchExecution.<in
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

只要开始永远不晚

谢谢打赏~

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值