简体   繁体   中英

External hive table with partition - permission error when i add partition with the data having read access

i am getting the below error : 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:

when I try to external create a hive table with data in the hdfs.

I just have the read access and not write access, is that a problem?

Yes, you need write access to create external table in hive. then if you are using dynamic partition then you have to unable dynamic partition true. for that use below code.

set hive.exec.dynamic.partition.mode=nonstrict;
set hive.exec.dynamic.partition=true;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM