日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網站首頁 編程語言 正文

sparkstreaming寫入hive表報錯問題解決

作者:qq_32457341 更新時間: 2022-08-13 編程語言

問題

當前采用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

欄目分類
最近更新