Accumulo on Cloudera CDH4-启动组件时拒绝访问



我有一个小集群,使用Cloudera CDH4 Hadoop和Map Reduce v1运行。名称节点/次要名称节点/作业跟踪器都在不同的机器上。我的三台服务器也充当Zookeeper服务器。

我正在尝试在这个集群的顶部安装Accumulo 1.4.4。我在Accumulo 1.5.0中得到了相同的行为。我能够bin/accumulo init并初始化Accumulo,但启动单个组件失败。我正在尝试使我的Namenode成为Accumulo主机。

bin/start-server.sh localhost monitor吐出了一个非常鼓舞人心的Starting monitor on localhost,但什么都没有开始。如果我检查日志/monitor_localhost.err,我会发现一个堆栈:

-bash-4.1$ cat logs/monitor_localhost.err
Thread "monitor" died null
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at org.apache.accumulo.start.Main$1.run(Main.java:91)
at java.lang.Thread.run(Thread.java:701)
Caused by: java.lang.ExceptionInInitializerError
at org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:2464)
at org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:2456)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2323)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:351)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:163)
at org.apache.accumulo.core.file.FileUtil.getFileSystem(FileUtil.java:554)
at org.apache.accumulo.core.client.ZooKeeperInstance.getInstanceIDFromHdfs(ZooKeeperInstance.java:258)
at org.apache.accumulo.server.conf.ZooConfiguration.getInstance(ZooConfiguration.java:65)
at org.apache.accumulo.server.conf.ServerConfiguration.getZooConfiguration(ServerConfiguration.java:49)
at org.apache.accumulo.server.conf.ServerConfiguration.getSystemConfiguration(ServerConfiguration.java:58)
at org.apache.accumulo.server.monitor.Monitor.run(Monitor.java:440)
at org.apache.accumulo.server.monitor.Monitor.main(Monitor.java:433)
... 6 more
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:399)
at java.security.AccessController.checkPermission(AccessController.java:557)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.Class.checkMemberAccess(Class.java:2237)
at java.lang.Class.getDeclaredFields(Class.java:1805)
at org.apache.hadoop.util.ReflectionUtils.getDeclaredFieldsIncludingInherited(ReflectionUtils.java:315)
at org.apache.hadoop.metrics2.lib.MetricsSourceBuilder.initRegistry(MetricsSourceBuilder.java:92)
at org.apache.hadoop.metrics2.lib.MetricsSourceBuilder.<init>(MetricsSourceBuilder.java:56)
at org.apache.hadoop.metrics2.lib.MetricsAnnotations.newSourceBuilder(MetricsAnnotations.java:42)
at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.register(MetricsSystemImpl.java:212)
at org.apache.hadoop.metrics2.MetricsSystem.register(MetricsSystem.java:54)
at org.apache.hadoop.security.UserGroupInformation$UgiMetrics.create(UserGroupInformation.java:97)
at org.apache.hadoop.security.UserGroupInformation.<clinit>(UserGroupInformation.java:190)
... 18 more

AccessControlException:拒绝访问在我看来是一条重要的线路,但我无法想象什么访问受到限制。我以hdfs用户的身份运行所有内容,它拥有accumulo未标记的整个/opt/accumulo-1.4.4/目录。HDFS中的/accumulo目录也归HDFS用户所有。SELinux是允许的。事实证明,网上搜索毫无结果,以前有人处理过这个错误吗?

非常感谢。

我开始浏览Apache accumulo用户邮件列表归档,并发现了该解决方案。

http://mail-archives.apache.org/mod_mbox/accumulo-user/201312.mbox/%3CB9CB2B2BF27F0F46B8ECF781831E00E710970A9F%400015-its-esmb10.us.saic.com%3E

我正在将accumulo.policy.example复制到accumulo.policy,因为我认为我的配置中需要它。一旦我删除了accumulo.policy文件,我的问题就消失了,我已经能够支持accumulo(至少1.5.0,1.4.4对我来说仍然有一些问题)

相关内容

  • 没有找到相关文章

最新更新