RHive连接错误:RHive.connect()
rhive.connect(主机=“172.16.210.130”,端口=10000) 警告: +----------------------------------------------------------+ +/hiveServer2参数未正确提供+ +/RHive将使用默认值:hiveServer2=TRUE+ +----------------------------------------------------------+ 15/11/05 07:54:41信息jdbc.Utils:提供的权限:172.16.210.130:10000 15/11/05 07:54:41信息jdbc.Utils:已解决权限:172.16.210.130:10000 15/11/05 07:54:41信息jdbc.HiveConnection:将尝试使用jdbc Uri打开客户端传输:jdbc:hive2://172.16.210.130:10000/default 错误:org.apache.hive.service.cli.HiveSQLException:编译语句时出错:失败:HiveAccessControlException权限被拒绝:用户[root]在[/r]上没有[CREATE]权限RHive连接错误:RHive.connect(),r,hive,R,Hive,rhive.connect(主机=“172.16.210.130”,端口=10000) 警告: +----------------------------------------------------------+ +/hiveServer2参数未正确提供+ +/RHive将使用默认值:hiveServer2=TRUE+ +----------------------------------------------------------+ 15/11/05 07:54:41信息jdbc.Ut
如何解决此错误?我找到了问题的解决方案: 在hfs目录和子目录上设置权限777 对以下文件的更改: hive-site.xml(在conf和conf.server目录中) 设置:
hive.security.authorization.enabled
假的
更改:
<property>
<name>hive.security.metastore.authorization.manager</name>
<value> org.apache.hadoop.hive.ql.security.authorization.StorageBasedAuthorizationProvider,org.apache.hadoop.hive.ql.security.authorization.MetaStoreAuthzAPIAuthorizerEmbedOnly</value>
hive.security.metastore.authorization.manager
org.apache.hadoop.hive.ql.security.authorization.StorageBasedAuthorizationProvider,org.apache.hadoop.hive.ql.security.authorization.MetaStoreAuthzAPIAuthorizerEmbedOnly
到
hive.security.metastore.authorization.manager
org.apache.hadoop.hive.ql.security.authorization.StorageBasedAuthorizationProvider
hiveserver2-site.xml(在conf和conf.server目录中)
设置:
hive.security.authorization.enabled
假的
hdfs-site.xml
设置:
dfs.permissions.enabled
假的
使用SSH连接到沙箱并以用户身份登录到配置单元:
苏顺德
蜂巢
参考:
以hdfs或配置单元用户身份登录
su hdfs
或
然后在R控制台上尝试您的步骤
<property>
<name>hive.security.metastore.authorization.manager</name>
<value>org.apache.hadoop.hive.ql.security.authorization.StorageBasedAuthorizationProvider</value>
</property>
<property>
<name>hive.security.authorization.enabled</name>
<value>false</value>
</property>
<property>
<name>dfs.permissions.enabled</name>
<value>false</value>
</property>
su hdfs
su hive