2015-10-20 41 views
-1

rhive.connect(host="172.16.210.130",port=10000) Warning: +----------------------------------------------------------+ +/hiveServer2 argument has not been provided correctly. + +/RHive will use a default value: hiveServer2=TRUE. + +----------------------------------------------------------+RHive連接錯誤:rhive.connect()

15/11/05 7時54分41秒INFO jdbc.Utils:提供的部門:172.16.210.130:10000 15/11/05 7時54分41秒INFO jdbc.Utils:已解決權限:172.16.210.130:10000 15/11/05 07:54:41信息jdbc.HiveConnection:將嘗試使用JDBC打開客戶端傳輸Uri:jdbc:hive2://172.16.210.130:10000 /默認 錯誤:org.apache.hive.service.cli.HiveSQLException:錯誤在編譯聲明:失敗:HiveAccessControlException權限被拒絕:用戶[根]沒有[創建]對[/ R]

特權如何解決這個錯誤?

回答

0

我找到問題的解決:777 HFS目錄和子目錄

更改下列文件

設置權限:

蜂房的site.xml(在CONF &的conf。服務器迪爾斯)

集:

<property> 
    <name>hive.security.authorization.enabled</name> 
    <value>false</value> 
<property> 

變化:

<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> 

<property> 
    <name>hive.security.metastore.authorization.manager</name> 
    <value>org.apache.hadoop.hive.ql.security.authorization.StorageBasedAuthorizationProvider</value> 
</property> 

hiveserver2-site.xml中(在CONF & conf.server目錄)

集:

<property> 
    <name>hive.security.authorization.enabled</name> 
    <value>false</value> 
</property> 

HDFS現場。 xml

組:

<property> 
    <name>dfs.permissions.enabled</name> 
    <value>false</value> 
</property> 

SSH到沙箱,並登錄到配置單元與色調用戶:

ス色相

蜂房

參考: http://hortonworks11.rssing.com/browser.php?indx=7980721&item=4941

0

登錄作爲HDFS或配置單元用戶

su hdfs 

su hive 

,然後嘗試[R控制檯上的步驟。