我用以下命令在hdfs中创建加密区域。
hdfs crypto -createZone -keyName tes3 -path /user/root/zoneEncr
但发射命令,我只是
RemoteException:
在屏幕上。
我检查了日志,发现以下异常
2016-05-06 11:05:07,073 DEBUG PoolingClientConnectionManager - Connection released: [id: 62][route: {}->http://localhost:6083][total kept alive: 0; route allocated: 0 of 5; total allocated: 0 of 10]
2016-05-06 11:05:07,073 ERROR BaseAuditHandler - Error sending message to Solr
org.apache.solr.client.solrj.SolrServerException: No live SolrServers available to handle this request
at org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:570)
at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:131)
at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:76)
at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:62)
at org.apache.ranger.audit.destination.SolrAuditDestination.log(SolrAuditDestination.java:154)
at org.apache.ranger.audit.provider.BaseAuditHandler.logJSON(BaseAuditHandler.java:172)
at org.apache.ranger.audit.queue.AuditFileSpool.sendEvent(AuditFileSpool.java:890)
at org.apache.ranger.audit.queue.AuditFileSpool.runDoAs(AuditFileSpool.java:838)
at org.apache.ranger.audit.queue.AuditFileSpool$2.run(AuditFileSpool.java:759)
at org.apache.ranger.audit.queue.AuditFileSpool$2.run(AuditFileSpool.java:757)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:356)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1637)
at org.apache.ranger.audit.queue.AuditFileSpool.run(AuditFileSpool.java:765)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.solr.client.solrj.SolrServerException: Server refused connection at: http://localhost:6083/solr/ranger_audits
at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:565)
at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:214)
at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:210)
at org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:546)
... 14 more
Caused by: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:6083 refused
我没有安装solr,如何避免这种情况?
提前谢谢。
2条答案
按热度按时间anauzrmj1#
似乎与solr的连接有问题。关闭对solr的审核或检查solr连接。
i5desfxk2#
问题已通过在ranger中添加“nn”用户得到解决。如果nn用户不存在,则在ranger中添加nn用户,并从ranger kms中的keyadmin向nn用户提供“获取密钥”权限。
如果nn用户没有获取密钥的权限,您将无法创建加密区域或列出加密密钥。