User xxx does not have privileges for CREATETABLE的解決辦法


經kerbors認證的用戶無法在hive命令行中創建外部表

......

> )
> STORED AS PARQUET
> LOCATION '/cdp/hbase/user'
> TBLPROPERTIES('parquet.compression'='SNAPPY');
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:User cdh_admin does not have privileges for CREATETABLE)

 

解決辦法:參考https://community.cloudera.com/t5/Support-Questions/quot-User-does-not-have-privileges-for-CREATETABLE-quot/td-p/21044

 
  DeenarT
 
Explorer
 

Hi

 

I had the same problem. I found out that the table creation succeeds if one specifies the fully qualified hdfs location.

 

create external table test (a string); // works

 

create external table test_ext (a string) LOCATION '/warehouse/projects/mypath/public'; fails

 

create external table test_ext (a string) LOCATION 'hdfs://nameservice1/warehouse/projects/mypath/public'; works fine

 

Hope this works for you too.

 

Deenar

 

即在路徑之前加上hdfs://nameservice1前綴

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM