赞
踩
nohup: ignoring input Info: Including Hive libraries found via () for Hive access + exec /opt/jdk1.8.0_221/bin/java -Xmx20m -Dflume.root.logger=INFO,console -cp 'conf:/opt/apache-flume-1.9.0-bin/lib/*:/lib/*' -Djava.library.path= org.apache.flume.node.Application -z xx.xx.xx.xx:2181 -p /flumeConfig -name a139888288461393920 Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/zookeeper/KeeperException at org.apache.curator.framework.CuratorFrameworkFactory$Builder.build(CuratorFrameworkFactory.java:122) at org.apache.curator.framework.CuratorFrameworkFactory.newClient(CuratorFrameworkFactory.java:91) at org.apache.curator.framework.CuratorFrameworkFactory.newClient(CuratorFrameworkFactory.java:76) at org.apache.flume.node.AbstractZooKeeperConfigurationProvider.createClient(AbstractZooKeeperConfigurationProvider.java:87) at org.apache.flume.node.PollingZooKeeperConfigurationProvider.<init>(PollingZooKeeperConfigurationProvider.java:56) at org.apache.flume.node.Application.main(Application.java:311) Caused by: java.lang.ClassNotFoundException: org.apache.zookeeper.KeeperException at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 6 more
原因:flume的lib目录缺少
两个jar包
解决方法:
(1)将两个jar包放到flume的lib目录下
(2)配置 FLUME_CLASSPATH=”zookeeper jar 的地址“.例如:FLUME_CLASSPATH="/opt/zookeeper/zookeeper-3.5.8.jar;zookeeper-jute-3.5.8.jar"。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。