我想将JMS
来源用于flume
。我已将其配置如下:
...
#Source Definition
a1.sources.r1.type = jms
a1.sources.r1.initialContextFactory =
org.apache.activemq.jndi.ActiveMQInitialContextFactory
a1.sources.r1.providerURL = tcp://<ipAddress>:<port>
a1.sources.r1.destinationName = QA.TEST.NAME
a1.sources.r1.destinationType = QUEUE
...
我已经设置了Cloudera
,所以所有配置都是通过全局多实例UI完成的。
我已将Flume服务环境设置如下:
...
FLUME_CLASSPATH= .../cloudera/parcels/CDH/lib
jms源jar位于何处。 虽然我收到以下错误:
Failed to start agent because dependencies were no found in classpath. Error follows: java.lang.NoClassDefFoundError: javax/jms/JMSException
...
有什么建议吗?