解决启动flume时,出现问题警告和报错的问题 No configuration directory set

解决启动flume时,出现问题警告和报错的问题 No configuration directory set,第1张

解决启动flume时,出现问题警告和报错的问题 No configuration directory set (一)问题描述

当启动flume时,出现如下图的报错:
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-DdZHQiu0-1639799303522)(]
https://img-blog.csdnimg.cn/cc2d6ff9a4bc438eb1e79e1de693e611.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA56iL5bqP5b2t5LqO5pmP,size_20,color_FFFFFF,t_70,g_se,x_16)

报错内容为`Warning: No configuration directory set! Use --conf

to override.
Info: Including Hadoop libraries found via (/opt/module/hadoop-3.1.3/bin/hadoop) for HDFS access
错误: 找不到或无法加载主类 org.apache.flume.tools.GetJavaProperty
Info: Including Hbase libraries found via (/opt/module/hbase/bin/hbase) for Hbase access
错误: 找不到或无法加载主类 org.apache.flume.tools.GetJavaProperty
Info: Including Hive libraries found via (/opt/module/hive) for Hive access

  • exec /opt/module/jdk1.8.0_212/bin/java -Xmx20m -cp ‘/opt/module/flume-1.9.0/lib/:/opt/module/hadoop-3.1.3/etc/hadoop:/opt/module/hadoop-3.1.3/share/hadoop/common/lib/:/opt/module/hadoop-3.1.3/share/hadoop/common/:/opt/module/hadoop-3.1.3/share/hadoop/hdfs:/opt/module/hadoop-3.1.3/share/hadoop/hdfs/lib/:/opt/module/hadoop-3.1.3/share/hadoop/hdfs/:/opt/module/hadoop-3.1.3/share/hadoop/mapreduce/lib/:/opt/module/hadoop-3.1.3/share/hadoop/mapreduce/:/opt/module/hadoop-3.1.3/share/hadoop/yarn:/opt/module/hadoop-3.1.3/share/hadoop/yarn/lib/:/opt/module/hadoop-3.1.3/share/hadoop/yarn/:/opt/module/hbase/conf:/opt/module/jdk1.8.0_212/lib/tools.jar:/opt/module/hbase:/opt/module/hbase/lib/animal-sniffer-annotations-1.17.jar:/opt/module/hbase/lib/aopalliance-1.0.jar:/opt/module/hbase/lib/aopalliance-repackaged-2.5.0-b32.jar:/opt/module/hbase/lib/audience-annotations-0.5.0.jar:/opt/module/hbase/lib/avro-1.7.7.jar:/opt/module/hbase/lib/checker-qual-2.5.2.jar:/opt/module/hbase/lib/commons-beanutils-1.9.3.jar:/opt/module/hbase/lib/commons-cli-1.2.jar:/opt/module/hbase/lib/commons-codec-1.10.jar:/opt/module/hbase/lib/commons-collections-3.2.2.jar:/opt/module/hbase/lib/commons-compress-1.18.jar:/opt/module/hbase/lib/commons-configuration2-2.1.1.jar:/opt/module/hbase/lib/commons-crypto-1.0.0.jar:/opt/module/hbase/lib/commons-csv-1.0.jar:/opt/module/hbase/lib/commons-daemon-1.0.13.jar:/opt/module/hbase/lib/commons-io-2.5.jar:/opt/module/hbase/lib/commons-lang-2.6.jar:/opt/module/hbase/lib/commons-lang3-3.6.jar:/opt/module/hbase/lib/commons-logging-1.2.jar:/opt/module/hbase/lib/commons-math3-3.6.1.jar:/opt/module/hbase/lib/commons-net-3.6.jar:/opt/module/hbase/lib/curator-client-4.0.0.jar:/opt/module/hbase/lib/curator-framework-4.0.0.jar:/opt/module/hbase/lib/curator-recipes-4.0.0.jar:/opt/module/hbase/lib/disruptor-3.3.6.jar:/opt/module/hbase/lib/dnsjava-2.1.7.jar:/opt/module/hbase/lib/ehcache-3.3.1.jar:/opt/module/hbase/lib/error_prone_annotations-2.2.0.jar:/opt/module/hbase/lib/failureaccess-1.0.jar:/opt/module/hbase/lib/findbugs-annotations-1.3.9-1.jar:/opt/module/hbase/lib/fst-2.50.jar:/opt/module/hbase/lib/geronimo-jcache_1.0_spec-1.0-alpha-1.jar:/opt/module/hbase/lib/gson-2.2.4.jar:/opt/module/hbase/lib/guava-27.0-jre.jar:/opt/module/hbase/lib/guice-4.0.jar:/opt/module/hbase/lib/guice-servlet-4.0.jar:/opt/module/hbase/lib/hadoop-annotations-3.1.3.jar:/opt/module/hbase/lib/hadoop-auth-3.1.3.jar:/opt/module/hbase/lib/hadoop-common-3.1.3.jar:/opt/module/hbase/lib/hadoop-common-3.1.3-tests.jar:/opt/module/hbase/lib/hadoop-distcp-3.1.3.jar:/opt/module/hbase/lib/hadoop-hdfs-3.1.3.jar:/opt/module/hbase/lib/hadoop-hdfs-client-3.1.3.jar:/opt/module/hbase/lib/hadoop-mapreduce-client-app-3.1.3.jar:/opt/module/hbase/lib/hadoop-mapreduce-client-common-3.1.3.jar:/opt/module/hbase/lib/hadoop-mapreduce-client-core-3.1.3.jar:/opt/module/hbase/lib/hadoop-mapreduce-client-hs-3.1.3.jar:/opt/module/hbase/lib/hadoop-mapreduce-client-jobclient-3.1.3.jar:/opt/module/hbase/lib/hadoop-mapreduce-client-shuffle-3.1.3.jar:/opt/module/hbase/lib/hadoop-minicluster-3.1.3.jar:/opt/module/hbase/lib/hadoop-yarn-api-3.1.3.jar:/opt/module/hbase/lib/hadoop-yarn-client-3.1.3.jar:/opt/module/hbase/lib/hadoop-yarn-common-3.1.3.jar:/opt/module/hbase/lib/hadoop-yarn-registry-3.1.3.jar:/opt/module/hbase/lib/hadoop-yarn-server-applicationhistoryservice-3.1.3.jar:/opt/module/hbase/lib/hadoop-yarn-server-common-3.1.3.jar:/opt/module/hbase/lib/hadoop-yarn-server-nodemanager-3.1.3.jar:/opt/module/hbase/lib/hadoop-yarn-server-resourcemanager-3.1.3.jar:/opt/module/hbase/lib/hadoop-yarn-server-tests-3.1.3-tests.jar:/opt/module/hbase/lib/hadoop-yarn-server-timelineservice-3.1.3.jar:/opt/module/hbase/lib/hadoop-yarn-server-web-proxy-3.1.3.jar:/opt/module/hbase/lib/hamcrest-core-1.3.jar:/opt/module/hbase/lib/hbase-annotations-2.0.5.jar:/opt/module/hbase/lib/hbase-annotations-2.0.5-tests.jar:/opt/module/hbase/lib/hbase-client-2.0.5.jar:/opt/module/hbase/lib/hbase-common-2.0.5.jar:/opt/module/hbase/lib/hbase-common-2.0.5-tests.jar:/opt/module/hbase/lib/hbase-endpoint-2.0.5.jar:/opt/module/hbase/lib/hbase-examples-2.0.5.jar:/opt/module/hbase/lib/hbase-external-blockcache-2.0.5.jar:/opt/module/hbase/lib/hbase-hadoop2-compat-2.0.5.jar:/opt/module/hbase/lib/hbase-hadoop2-compat-2.0.5-tests.jar:/opt/module/hbase/lib/hbase-hadoop-compat-2.0.5.jar:/opt/module/hbase/lib/hbase-hadoop-compat-2.0.5-tests.jar:/opt/module/hbase/lib/hbase-http-2.0.5.jar:/opt/module/hbase/lib/hbase-it-2.0.5.jar:/opt/module/hbase/lib/hbase-it-2.0.5-tests.jar:/opt/module/hbase/lib/hbase-mapreduce-2.0.5.jar:/opt/module/hbase/lib/hbase-mapreduce-2.0.5-tests.jar:/opt/module/hbase/lib/hbase-metrics-2.0.5.jar:/opt/module/hbase/lib/hbase-metrics-api-2.0.5.jar:/opt/module/hbase/lib/hbase-procedure-2.0.5.jar:/opt/module/hbase/lib/hbase-protocol-2.0.5.jar:/opt/module/hbase/lib/hbase-protocol-shaded-2.0.5.jar:/opt/module/hbase/lib/hbase-replication-2.0.5.jar:/opt/module/hbase/lib/hbase-resource-bundle-2.0.5.jar:/opt/module/hbase/lib/hbase-rest-2.0.5.jar:/opt/module/hbase/lib/hbase-rsgroup-2.0.5.jar:/opt/module/hbase/lib/hbase-rsgroup-2.0.5-tests.jar:/opt/module/hbase/lib/hbase-server-2.0.5.jar:/opt/module/hbase/lib/hbase-server-2.0.5-tests.jar:/opt/module/hbase/lib/hbase-shaded-miscellaneous-2.1.0.jar:/opt/module/hbase/lib/hbase-shaded-netty-2.1.0.jar:/opt/module/hbase/lib/hbase-shaded-protobuf-2.1.0.jar:/opt/module/hbase/lib/hbase-shell-2.0.5.jar:/opt/module/hbase/lib/hbase-testing-util-2.0.5.jar:/opt/module/hbase/lib/hbase-thrift-2.0.5.jar:/opt/module/hbase/lib/hbase-zookeeper-2.0.5.jar:/opt/module/hbase/lib/hbase-zookeeper-2.0.5-tests.jar:/opt/module/hbase/lib/HikariCP-java7-2.4.12.jar:/opt/module/hbase/lib/hk2-api-2.5.0-b32.jar:/opt/module/hbase/lib/hk2-locator-2.5.0-b32.jar:/opt/module/hbase/lib/hk2-utils-2.5.0-b32.jar:/opt/module/hbase/lib/htrace-core-3.2.0-incubating.jar:/opt/module/hbase/lib/htrace-core4-4.2.0-incubating.jar:/opt/module/hbase/lib/httpclient-4.5.3.jar:/opt/module/hbase/lib/httpcore-4.4.6.jar:/opt/module/hbase/lib/j2objc-annotations-1.1.jar:/opt/module/hbase/lib/jackson-annotations-2.9.0.jar:/opt/module/hbase/lib/jackson-core-2.9.2.jar:/opt/module/hbase/lib/jackson-core-asl-1.9.13.jar:/opt/module/hbase/lib/jackson-databind-2.9.2.jar:/opt/module/hbase/lib/jackson-jaxrs-1.9.2.jar:/opt/module/hbase/lib/jackson-jaxrs-base-2.9.2.jar:/opt/module/hbase/lib/jackson-jaxrs-json-provider-2.9.2.jar:/opt/module/hbase/lib/jackson-mapper-asl-1.9.13.jar:/opt/module/hbase/lib/jackson-module-jaxb-annotations-2.9.2.jar:/opt/module/hbase/lib/jackson-xc-1.9.2.jar:/opt/module/hbase/lib/jamon-runtime-2.4.1.jar:/opt/module/hbase/lib/javassist-3.20.0-GA.jar:/opt/module/hbase/lib/java-util-1.9.0.jar:/opt/module/hbase/lib/javax.annotation-api-1.2.jar:/opt/module/hbase/lib/javax.el-3.0.1-b08.jar:/opt/module/hbase/lib/javax.inject-2.5.0-b32.jar:/opt/module/hbase/lib/javax.servlet-api-3.1.0.jar:/opt/module/hbase/lib/javax.servlet.jsp-2.3.2.jar:/opt/module/hbase/lib/javax.servlet.jsp-api-2.3.1.jar:/opt/module/hbase/lib/javax.servlet.jsp.jstl-1.2.0.v201105211821.jar:/opt/module/hbase/lib/javax.servlet.jsp.jstl-1.2.2.jar:/opt/module/hbase/lib/javax.ws.rs-api-2.0.1.jar:/opt/module/hbase/lib/jaxb-api-2.2.12.jar:/opt/module/hbase/lib/jaxb-impl-2.2.3-1.jar:/opt/module/hbase/lib/jcip-annotations-1.0-1.jar:/opt/module/hbase/lib/jcodings-1.0.18.jar:/opt/module/hbase/lib/jersey-client-2.25.1.jar:/opt/module/hbase/lib/jersey-common-2.25.1.jar:/opt/module/hbase/lib/jersey-container-servlet-core-2.25.1.jar:/opt/module/hbase/lib/jersey-guava-2.25.1.jar:/opt/module/hbase/lib/jersey-media-jaxb-2.25.1.jar:/opt/module/hbase/lib/jersey-server-2.25.1.jar:/opt/module/hbase/lib/jettison-1.3.8.jar:/opt/module/hbase/lib/jetty-http-9.3.19.v20170502.jar:/opt/module/hbase/lib/jetty-io-9.3.19.v20170502.jar:/opt/module/hbase/lib/jetty-jmx-9.3.19.v20170502.jar:/opt/module/hbase/lib/jetty-jsp-9.2.19.v20160908.jar:/opt/module/hbase/lib/jetty-schemas-3.1.M0.jar:/opt/module/hbase/lib/jetty-security-9.3.19.v20170502.jar:/opt/module/hbase/lib/jetty-server-9.3.19.v20170502.jar:/opt/module/hbase/lib/jetty-servlet-9.3.19.v20170502.jar:/opt/module/hbase/lib/jetty-util-9.3.19.v20170502.jar:/opt/module/hbase/lib/jetty-util-ajax-9.3.19.v20170502.jar:/opt/module/hbase/lib/jetty-webapp-9.3.19.v20170502.jar:/opt/module/hbase/lib/jetty-xml-9.3.19.v20170502.jar:/opt/module/hbase/lib/joni-2.1.11.jar:/opt/module/hbase/lib/jsch-0.1.54.jar:/opt/module/hbase/lib/json-io-2.5.1.jar:/opt/module/hbase/lib/jsr311-api-1.1.1.jar:/opt/module/hbase/lib/junit-4.12.jar:/opt/module/hbase/lib/leveldbjni-all-1.8.jar:/opt/module/hbase/lib/libthrift-0.12.0.jar:/opt/module/hbase/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:/opt/module/hbase/lib/log4j-1.2.17.jar:/opt/module/hbase/lib/metrics-core-3.2.1.jar:/opt/module/hbase/lib/mssql-jdbc-6.2.1.jre7.jar:/opt/module/hbase/lib/netty-all-4.0.52.Final.jar:/opt/module/hbase/lib/nimbus-jose-jwt-4.41.1.jar:/opt/module/hbase/lib/objenesis-1.0.jar:/opt/module/hbase/lib/okhttp-2.7.5.jar:/opt/module/hbase/lib/okio-1.6.0.jar:/opt/module/hbase/lib/org.eclipse.jdt.core-3.8.2.v20130121.jar:/opt/module/hbase/lib/osgi-resource-locator-1.0.1.jar:/opt/module/hbase/lib/paranamer-2.3.jar:/opt/module/hbase/lib/phoenix-5.0.0-Hbase-2.0-server.jar:/opt/module/hbase/lib/protobuf-java-2.5.0.jar:/opt/module/hbase/lib/re2j-1.1.jar:/opt/module/hbase/lib/slf4j-api-1.7.25.jar:/opt/module/hbase/lib/slf4j-log4j12-1.7.25.jar:/opt/module/hbase/lib/snappy-java-1.0.5.jar:/opt/module/hbase/lib/spymemcached-2.12.2.jar:/opt/module/hbase/lib/stax2-api-3.1.4.jar:/opt/module/hbase/lib/validation-api-1.1.0.Final.jar:/opt/module/hbase/lib/woodstox-core-5.0.3.jar:/opt/module/hbase/lib/zookeeper-3.4.10.jar:/opt/module/hadoop-3.1.3/etc/hadoop:/opt/module/hadoop-3.1.3/share/hadoop/common/lib/:/opt/module/hadoop-3.1.3/share/hadoop/common/:/opt/module/hadoop-3.1.3/share/hadoop/hdfs:/opt/module/hadoop-3.1.3/share/hadoop/hdfs/lib/:/opt/module/hadoop-3.1.3/share/hadoop/hdfs/:/opt/module/hadoop-3.1.3/share/hadoop/mapreduce/lib/:/opt/module/hadoop-3.1.3/share/hadoop/mapreduce/:/opt/module/hadoop-3.1.3/share/hadoop/yarn:/opt/module/hadoop-3.1.3/share/hadoop/yarn/lib/:/opt/module/hadoop-3.1.3/share/hadoop/yarn/:/opt/module/hbase/conf:/opt/module/hive/lib/’ -Djava.library.path= org.apache.flume.node.Application --name a1 --conf-file conf/file-flume-kafka.conf
    错误: 找不到或无法加载主类 org.apache.flume.node.Application
    `
(二)解决方案:

(1)配置好flume 的系统环境变量


环境变量配置
(2)将flume/conf下的flume-env.sh.template文件修改为flume-env.sh,并配置flume-env.sh文件

$ mv flume-env.sh.template flume-env.sh
$ vi flume-env.sh
export JAVA_HOME=/opt/module/jdk1.8.0_212

(3)修改完毕后,重新启动flume即可

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5678696.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存