hive建立分割槽表報錯AccessControlException Permission denied: user=NONE, access=WRITE, inode
錯誤提示資訊
[2020-09-23 18:07:58] )
sql> create table order_partition
(
order_no string,
order_time string
)
PARTITIONED BY (event_time string)
row format delimited fields terminated by '\t'
[2020-09-23 18:10:34] [08S01][1] Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Got exception: org.apache.hadoop.security
.AccessControlException Permission denied: user=NONE, access=WRITE, inode="/user/hive/warehouse/order_partition":root:supergroup:drwxr-xr-x
錯誤場景
hive建立分割槽表
錯誤原因猜測
可能是我hive賬號是 NONE, 沒有這個許可權,
解決辦法
新增hdfs-site.xml 裡面配置
/root/soft/hadoop-2.7.2/etc/hadoop/hdfs-site.xml
<property>
<name>dfs.permissions</name>
<value>false</value>
</property>
重啟Hadoop
去hadoop-2.7.2/sbin目錄下面
重啟NameNode和 DataNode
[root@zjj101 sbin]# hadoop-daemon.sh stop namenode
stopping namenode
[root@zjj101 sbin]# hadoop-daemon.sh start namenode
starting namenode, logging to /root/soft/hadoop-2.7.2/logs/hadoop-root-namenode-zjj101.out
[root@zjj101 sbin]# hadoop-daemon.sh stop datanode
stopping datanode
[root@zjj101 sbin]# hadoop-daemon.sh start datanode
starting datanode, logging to /root/soft/hadoop-2.7.2/logs/hadoop-root-datanode-zjj101.out
[root@zjj101 sbin]#
相關文章
- Permission denied:user=xxx,access=WRITE,inode=xxx
- Access denied for user 'default'@'%' to database 'shop'報錯Database
- 報錯”ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: NO)”Errorlocalhost
- 啟動報錯:Access denied for user 'root'@'localhost' (using password:YES)localhost
- nginx部署(13:Permission denied)報錯Nginx
- vue專案中連線MySQL時,報錯ER_ACCESS_DENIED_ERROR: Access denied for user 'root'@'localhost' (using password:YES)VueMySqlErrorlocalhost
- Spark操作Hive分割槽表SparkHive
- ubuntu mysql Access denied for user root@localhostUbuntuMySqllocalhost
- OGG Director連線報錯Access denied
- Linux錯誤 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)LinuxErrorlocalhost
- mysql 1045, "Access denied for user 'root'@'localhost' (using password: NO)"MySqllocalhost
- Nginx報錯:Permission denied,沒有許可權!Nginx
- Python 執行報錯 PermissionError: [Errno 13] Permission denied: '***.***'PythonError
- laravel mysql批量提交報Access denied 錯誤LaravelMySql
- hive 分割槽表和分桶表區別Hive
- OceaBase 分割槽表建立技巧
- hive 動態分割槽插入資料表Hive
- Access denied for user ‘root‘@‘localhost‘問題的解決localhost
- frepplectl解決報錯:bash: /usr/bin/frepplectl: Permission denied
- Python報錯:PermissionError: [Errno 13] Permission denied解決方案PythonError
- Android10 建立檔案 Permission deniedAndroid
- 【趙渝強老師】Hive的分割槽表Hive
- hive學習筆記之四:分割槽表Hive筆記
- hive分割槽分桶Hive
- Hive動態分割槽Hive
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password:YES)Errorlocalhost
- HIVE基本語法以及HIVE分割槽Hive
- MySQL系列:Docker安裝 MySQL提示錯誤:Access denied for user'root'@'localhost' (using password:yes)MySqlDockerlocalhost
- Hive的靜態分割槽與動態分割槽Hive
- 教程:如何使用DataLakeAnalytics建立分割槽表
- nginx中報Access denied.Nginx
- Ubuntu18.04:mysql:ERROR 1698 (28000): Access denied for user ‘root‘@‘localhost‘UbuntuMySqlErrorlocalhost
- java.sql.SQLException: Access denied for user ‘root‘@‘localhost‘ (using password: YES)JavaSQLExceptionlocalhost
- 易優CMS後臺上傳圖片報錯mkdir(): Permission denied 報錯-eyoucms
- Hive的分割槽和排序Hive排序
- Hive和Spark分割槽策略HiveSpark
- [Hive]hive分割槽設定注意事項Hive
- Windows分割槽報錯解決Windows