Return-Path: X-Original-To: apmail-flume-user-archive@www.apache.org Delivered-To: apmail-flume-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2F6E3D12C for ; Fri, 27 Jul 2012 05:49:08 +0000 (UTC) Received: (qmail 96158 invoked by uid 500); 27 Jul 2012 05:49:07 -0000 Delivered-To: apmail-flume-user-archive@flume.apache.org Received: (qmail 95869 invoked by uid 500); 27 Jul 2012 05:49:07 -0000 Mailing-List: contact user-help@flume.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@flume.apache.org Delivered-To: mailing list user@flume.apache.org Received: (qmail 95850 invoked by uid 99); 27 Jul 2012 05:49:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jul 2012 05:49:06 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of khadarskb@gmail.com designates 209.85.213.179 as permitted sender) Received: from [209.85.213.179] (HELO mail-yx0-f179.google.com) (209.85.213.179) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jul 2012 05:49:00 +0000 Received: by yenr13 with SMTP id r13so2651215yen.38 for ; Thu, 26 Jul 2012 22:48:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ehxDhDzW9PA22DTnYbpKSzr3oTkPseMSpgctuZzskwU=; b=J3Lp2ybf12Vjz/t0b6OUhEiv3y4psaxv/KoVNa2Tt47J/wtAiIyGxmbzCGsKallspc DMt2GgtD3tYZGhzuYmncNLwY0ojGah10G7v4CO+fTeja+/jNOZ03tCNtms7IALE76MtU tnBw/z3D1+zabfTe3Jl61TjhkmLha0765u237D64iEx1gLCl6BteUSJY2EKPfgX/rW/u JU7V8C6y6wQUgEBgJBr6QqRdCiL+uIUnXT9xlujTeAVcad8LzdL5gB/ttQU0CSjiis0o jhz7wtdCLZAnPqEJiY14IgIDu4jPN6HCM+2d28s676+1U2T0yTzHz/yq9hs+r54yHEEz lssw== MIME-Version: 1.0 Received: by 10.50.170.68 with SMTP id ak4mr3592030igc.74.1343368119562; Thu, 26 Jul 2012 22:48:39 -0700 (PDT) Received: by 10.50.216.228 with HTTP; Thu, 26 Jul 2012 22:48:39 -0700 (PDT) Date: Fri, 27 Jul 2012 11:18:39 +0530 Message-ID: Subject: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/flume/node/Application From: khadar basha To: user@flume.apache.org Content-Type: multipart/alternative; boundary=e89a8f2351c391b0b504c5c943f1 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f2351c391b0b504c5c943f1 Content-Type: text/plain; charset=ISO-8859-1 Hi, I am using flume1.2 version. Having the following configuration. agent1Test1.sources = seqGenSrc agent1Test1.channels = memoryChannel agent1Test1.sinks = loggerSink # For each one of the sources, the type is defined agent1Test1.sources.seqGenSrc.type = exec agent1Test1.sources.seqGenSrc.command= tail -f /tomcat/logs/catalina.out agent1Test1.sources.seqGenSrc.interceptors = hostInterceptor agent1Test1.sources.seqGenSrc.interceptors.hostInterceptor.type = org.apache.flume.interceptor.HostInterceptor$Builder agent1Test1.sources.seqGenSrc.interceptors.hostInterceptor.hostHeader = myhostname # The channel can be defined as follows. agent1Test1.sources.seqGenSrc.channels = memoryChannel # Each sink's type must be defined agent1Test1.sinks.loggerSink.type = hdfs agent1Test1.sinks.loggerSink.hdfs.path = hdfs://host:8020/data/%{host}/Logs agent1Test1.sinks.loggerSink.hdfs.fileType = DataStream #Specify the channel the sink should use agent1Test1.sinks.loggerSink.channel = memoryChannel # Each channel's type is defined. agent1Test1.channels.memoryChannel.type = memory # Other config values specific to each type of channel(sink or source) # can be defined as well # In this case, it specifies the capacity of the memory channel agent1Test1.channels.memoryChannel.capacity = 1000 Gettting the following exception: *Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/flume/node/Application* *Caused by: java.lang.ClassNotFoundException: org.apache.flume.node.Application* * at java.net.URLClassLoader$1.run(URLClassLoader.java:202)* * at java.security.AccessController.doPrivileged(Native Method)* * at java.net.URLClassLoader.findClass(URLClassLoader.java:190)* * at java.lang.ClassLoader.loadClass(ClassLoader.java:306)* * at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)* * at java.lang.ClassLoader.loadClass(ClassLoader.java:247)* *Could not find the main class: org.apache.flume.node.Application. Program will exit.* -- Thanks, Khadar --e89a8f2351c391b0b504c5c943f1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

I am using flume1.2 ver= sion. =A0Having the following configuration.


<= /div>

agent1Test1.sources =3D seqGenSrc
a= gent1Test1.channels =3D memoryChannel
agent1Test1.sinks =3D loggerSink

# For each o= ne of the sources, the type is defined
agent1Test1.sources.seqGen= Src.type =3D exec
agent1Test1.sources.seqGenSrc.command=3D tail -= f /tomcat/logs/catalina.out
agent1Test1.sources.seqGenSrc.interceptors =3D hostInterceptor
agent1Test1.sources.seqGenSrc.interceptors.hostInterceptor.type =3D org.= apache.flume.interceptor.HostInterceptor$Builder
agent1Test1.sour= ces.seqGenSrc.interceptors.hostInterceptor.hostHeader =3D myhostname

# The channel can be defined as follows.
agen= t1Test1.sources.seqGenSrc.channels =3D memoryChannel

# Each sink's type must be defined
agent1Test1.sinks.logge= rSink.type =3D hdfs
agent1Test1.sinks.loggerSink.hdfs.path =3D hdfs://host:8020/data/%{hos= t}/Logs

agent1Test1.sinks.loggerSink.hdfs.fileType= =3D DataStream

#Specify the channel the sink shou= ld use
agent1Test1.sinks.loggerSink.channel =3D memoryChannel

<= /div>
# Each channel's type is defined.
agent1Test1.chann= els.memoryChannel.type =3D memory

# Other config v= alues specific to each type of channel(sink or source)
# can be defined as well
# In this case, it specifies the ca= pacity of the memory channel
agent1Test1.channels.memoryChannel.c= apacity =3D 1000


Gettting the= following exception:


Exceptio= n in thread "main" java.lang.NoClassDefFoundError: org/apache/flu= me/node/Application
Caused = by: java.lang.ClassNotFoundException: org.apache.flume.node.Application=
=A0 =A0 =A0 =A0 at java.net.URLClassLoader$= 1.run(URLClassLoader.java:202)
=A0 =A0 =A0 =A0 at java.security.AccessController.doPrivileged(Native M= ethod)
=A0 =A0 =A0 =A0 at java.net.URLClassLoader.= findClass(URLClassLoader.java:190)
=A0 =A0 =A0 =A0 at java.lang.ClassLoader.loadClass(ClassLoader.java= :306)
=A0 =A0 =A0 =A0 at sun.misc.Launcher$AppCla= ssLoader.loadClass(Launcher.java:301)
=A0 =A0 =A0 =A0 at java.lang.ClassLoader.loadClass(ClassLoader.j= ava:247)
Could not find the main class: org.apache.f= lume.node.Application. =A0Program will exit.
--
T= hanks,
Khadar

--e89a8f2351c391b0b504c5c943f1--