網(wǎng)站首頁(yè) 編程語(yǔ)言 正文
問題
當(dāng)前采用python利用structstreaming寫入hive table時(shí),始終沒有寫入的權(quán)限,報(bào)錯(cuò)如下:
Caused by: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.AccessControlException):Permission denied : user=xxx, access="WRITE", inode="/":hdfs:supergroup:drwxr-xr-x
根據(jù)查詢了解到,structstreaming持久化寫入數(shù)據(jù)時(shí),需要配置checkpointLocation參數(shù),不然會(huì)寫入默認(rèn)路徑:根目錄下面,但是根目錄沒有寫入權(quán)限,所以會(huì)報(bào)錯(cuò);
以下是查詢的結(jié)果:
This scenario is ideal for long-term persistence of output. Unlike memory and console sinks, files and directories are fault-tolerant. As such, this option requires a checkpoint directory, where state is maintained for fault-tolerance.
附上查詢結(jié)果網(wǎng)址如下:https://databricks.com/blog/2017/04/04/real-time-end-to-end-integration-with-apache-kafka-in-apache-sparks-structured-streaming.html
原文鏈接:https://blog.csdn.net/qq_32457341/article/details/125514822
相關(guān)推薦
- 2023-04-06 分布式系統(tǒng)CAP定理中的P原理解析_相關(guān)技巧
- 2022-08-21 GoLang讀取文件的10種方法實(shí)例_Golang
- 2023-05-20 linux?shell輸出換行簡(jiǎn)單實(shí)例_linux shell
- 2022-05-29 C語(yǔ)言?語(yǔ)義陷阱超詳細(xì)梳理總結(jié)_C 語(yǔ)言
- 2022-06-07 使用Docker創(chuàng)建FTP服務(wù)器的過程解析_docker
- 2022-06-02 ASP.NET?Core中的Blazor組件介紹_基礎(chǔ)應(yīng)用
- 2022-02-14 flutter封裝自定義打印信息
- 2023-03-20 C#中的匿名函數(shù)、lambda表達(dá)式解讀_C#教程
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細(xì)win安裝深度學(xué)習(xí)環(huán)境2025年最新版(
- Linux 中運(yùn)行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲(chǔ)小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎(chǔ)操作-- 運(yùn)算符,流程控制 Flo
- 1. Int 和Integer 的區(qū)別,Jav
- spring @retryable不生效的一種
- Spring Security之認(rèn)證信息的處理
- Spring Security之認(rèn)證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權(quán)
- redisson分布式鎖中waittime的設(shè)
- maven:解決release錯(cuò)誤:Artif
- restTemplate使用總結(jié)
- Spring Security之安全異常處理
- MybatisPlus優(yōu)雅實(shí)現(xiàn)加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務(wù)發(fā)現(xiàn)-Nac
- Spring Security之基于HttpR
- Redis 底層數(shù)據(jù)結(jié)構(gòu)-簡(jiǎn)單動(dòng)態(tài)字符串(SD
- arthas操作spring被代理目標(biāo)對(duì)象命令
- Spring中的單例模式應(yīng)用詳解
- 聊聊消息隊(duì)列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠(yuǎn)程分支