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]#
相關文章
- Hive JDBC:Permission denied: user=anonymous, access=EXECUTE, inode=”/tmp”HiveJDBC
- Permission denied:user=xxx,access=WRITE,inode=xxx
- Permission denied: user=root, access=WRITE, inode="/":hadoopuser:supergroup:drwxr-xr-xHadoop
- Sqoop import載入HBase過程中,遇到Permission denied: user=root, access=WRITE, inode="/user":hdfs:supergroup:drwxr-xr-xOOPImport
- Access denied for user 'default'@'%' to database 'shop'報錯Database
- 啟動報錯:Access denied for user 'root'@'localhost' (using password:YES)localhost
- nginx部署(13:Permission denied)報錯Nginx
- Win下Eclipse提交hadoop程式出錯:org.apache.hadoop.security.AccessControlException: Permission denied: user=DEclipseHadoopApacheException
- Spark操作Hive分割槽表SparkHive
- 報錯”ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: NO)”Errorlocalhost
- vue專案中連線MySQL時,報錯ER_ACCESS_DENIED_ERROR: Access denied for user 'root'@'localhost' (using password:YES)VueMySqlErrorlocalhost
- Mysql 5.5 原始碼安裝後建立使用者報錯"ERROR 1045 (28000): Access denied for user"MySql原始碼Error
- User Get 'Access Denied' with Excel Service WebPartExcelWeb
- 分割槽表及分割槽索引建立示例索引
- Oracle 建立分割槽表Oracle
- Nginx報錯:Permission denied,沒有許可權!Nginx
- MySQL 登入資料庫報錯'ERROR 1045 (28000): Access denied for user'..'@'localhost''MySql資料庫Errorlocalhost
- 建立raw device tablespace報Linux Error: 13: Permission denieddevLinuxError
- laravel mysql批量提交報Access denied 錯誤LaravelMySql
- OGG Director連線報錯Access denied
- ubuntu mysql Access denied for user root@localhostUbuntuMySqllocalhost
- Access denied for user 'root'@'localhost' (using password: NO)localhost
- 解決mysql“Access denied for user 'root'@'localhost'”MySqllocalhost
- ERROR 1045 (28000): Access denied for userError
- hive 分割槽表和分桶表區別Hive
- Python 執行報錯 PermissionError: [Errno 13] Permission denied: '***.***'PythonError
- Oracle 分割槽表的建立Oracle
- OceaBase 分割槽表建立技巧
- hive 動態分割槽插入資料表Hive
- 一看便知linux下mysql報錯ERROR 1044: Access denied for user: '@localhost' to database 'mysql'LinuxMySqlErrorlocalhostDatabase
- Python報錯:PermissionError: [Errno 13] Permission denied解決方案PythonError
- hive學習筆記之四:分割槽表Hive筆記
- Hive動態分割槽Hive
- 分割槽表並行建立索引並行索引
- hive中的表、外部表、分割槽和桶的理解Hive
- nginx中報Access denied.Nginx
- Access denied for user ‘root‘@‘localhost‘問題的解決localhost
- ERROR 1045 (28000): Access denied for user 'root'@'localhost'Errorlocalhost