accumulo init:错误:在类路径上找不到hadoop配置类,请检查配置

vmpqdwk3  于 2021-07-15  发布在  Hadoop
关注(0)|答案(0)|浏览(219)

当我跑的时候 accumulo init 我得到这个错误:

2021-01-14 14:00:12,708 [start.Main] ERROR: Unable to find Hadoop Configuration class on classpath, check configuration.
java.lang.ClassNotFoundException: org.apache.hadoop.conf.Configuration
    at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
    at org.apache.accumulo.start.classloader.AccumuloClassLoader$1.loadClass(AccumuloClassLoader.java:204)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
    at org.apache.accumulo.start.Main.main(Main.java:52)

我根据accumulo文档配置了accumulo。hadoop和zookeeper正在运行。
我跑了 /bin/accumulo classpath 输出:

home/sabi/accumulo-2.0.0/conf:/home/sabi/accumulo-2.0.0/lib/*:/home/sabi/hadoop-2.10.1//share/*:/home/sabi/apache-zookeeper-3.6.2-bin//*:/home/sabi/hadoop-2.10.1//share/hadoop/client/*

我在文件夹中安装了hadoop /home/sabi/hadoop-2.10.1 .
我补充道


## Hadoop installation

export HADOOP_HOME="${HADOOP_HOME:-/hadoop-2.10.1}"

## Hadoop configuration

export HADOOP_CONF_DIR="${HADOOP_CONF_DIR:-${HADOOP_HOME}/share/*}"

到文件 accumulo-2.0.0/conf/accumulo-env.sh .
如何在classpath上找到hadoop配置类?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题