【发布时间】:2018-12-05 00:03:19
【问题描述】:
请指教:
我已经使用虚拟机的实例在 GCP 中安装了 hadoop 2.6.5 版本的集群。使用 GCP 连接器并由 hdfs 指向使用 gs 存储桶。在coresite.xml 中添加了以下 2 个条目:
google.cloud.auth.service.account.json.keyfile=<Path-to-the-JSON-file>
fs.gs.working.dir=/
当使用 hadoop gs -ls / 时工作正常,但是当我创建一个配置单元表时
CREATE EXTERNAL TABLE test1256(name string,id int) LOCATION 'gs://bucket/';
我收到以下错误:
错误:处理语句时出错:FAILED:执行错误, 从 org.apache.hadoop.hive.ql.exec.DDLTask 返回代码 1。 MetaException(消息:java.security.AccessControlException:权限 拒绝:user=hdpuser1,path="gs://bucket/":hive:hive:drwx------) (状态=08S01,代码=1)
【问题讨论】: