網站首頁 編程語言 正文
問題
當前采用python利用structstreaming寫入hive table時,始終沒有寫入的權限,報錯如下:
Caused by: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.AccessControlException):Permission denied : user=xxx, access="WRITE", inode="/":hdfs:supergroup:drwxr-xr-x
根據查詢了解到,structstreaming持久化寫入數據時,需要配置checkpointLocation參數,不然會寫入默認路徑:根目錄下面,但是根目錄沒有寫入權限,所以會報錯;
以下是查詢的結果:
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.
附上查詢結果網址如下: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
- 上一篇:二分查找思路及模板
- 下一篇:采用python開發sparkstreming全流程
相關推薦
- 2022-04-18 numpy中np.nanmax和np.max的區別及坑_python
- 2022-04-15 python實現選取或刪除指定列包含指定內容的行_python
- 2022-07-22 服務器配置uWSGI+Nginx+Django
- 2023-01-31 iOS?底層alloc?init?new?源碼流程示例分析_IOS
- 2023-01-19 使用python檢查值是否已經存在于字典列表中_python
- 2022-04-09 數據庫連接池Driud使用JbbcUtils工具包
- 2022-10-11 詳解pandas?df.iloc[]的典型用法_python
- 2022-07-17 一起詳細聊聊C#中的Visitor模式_C#教程
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支