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 37B3C9255 for ; Thu, 2 Aug 2012 23:22:18 +0000 (UTC) Received: (qmail 70586 invoked by uid 500); 2 Aug 2012 23:22:18 -0000 Delivered-To: apmail-flume-user-archive@flume.apache.org Received: (qmail 70554 invoked by uid 500); 2 Aug 2012 23:22:18 -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 70546 invoked by uid 99); 2 Aug 2012 23:22:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2012 23:22:17 +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 (nike.apache.org: domain of hshreedharan@cloudera.com designates 209.85.161.179 as permitted sender) Received: from [209.85.161.179] (HELO mail-gg0-f179.google.com) (209.85.161.179) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2012 23:22:08 +0000 Received: by ggnk3 with SMTP id k3so103957ggn.38 for ; Thu, 02 Aug 2012 16:21:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type:x-gm-message-state; bh=LOxTs7WhbXHwHNs1lnHZdqCA6gmIYcs/MmL+LzHuVPI=; b=VBb3pDeAhcUq3DbR7DbkBZj7Sz+6pbwGaXho1AyRxyyLHdkReQSNQfLsxhs+2bPGMl tXQHuXvkzVeuy95od8K8W48MVX9SMp+yVqN3LX9NF8/rTNZpV3QsIynhWDU+/Q4DLUB4 yFPNQxYqNEm55KCN95eoFQ1A0O526TcvmYJB39BpRToKrSqYqjsca8BpZiOdrKbV/0YF cr9P4FFj/Y5T0u347UdAclG/AwRABs2fZKpVMkSmq5efRBsnZjGwxmDjz+EQfTE9XUEd AlR0/Z6tW40pwub8+PRbBbALW8KjIsk77z6QTC6yshFwbwo20C0HbfK9p6Y0+Er1f6Us J84A== Received: by 10.50.36.131 with SMTP id q3mr6692479igj.56.1343949707474; Thu, 02 Aug 2012 16:21:47 -0700 (PDT) Received: from [172.22.1.152] ([65.50.196.130]) by mx.google.com with ESMTPS id ua2sm16606082igb.7.2012.08.02.16.21.46 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 02 Aug 2012 16:21:47 -0700 (PDT) Date: Thu, 2 Aug 2012 16:21:45 -0700 From: Hari Shreedharan To: user@flume.apache.org Message-ID: <57C87BF73C504954AAF17A9E6560E14B@cloudera.com> In-Reply-To: References: Subject: Re: unable to write to HDFS with flume 1.2.0 X-Mailer: sparrow 1.6.2 (build 1143.6) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="501b0b89_2a9c34e2_16f28" X-Gm-Message-State: ALoCoQmzX52cvA8EZNwxZWza4pa7qs24vXsMh31FBEJvVT0ml7thnQOAJJ7PhHhWG/ux1SnkBUgv --501b0b89_2a9c34e2_16f28 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline agent.sinks.hdfsSink.channels = memoryChannel <-needs to be "agent.sinks.hdfsSink.channel = memoryChannel" Hari -- Hari Shreedharan On Thursday, August 2, 2012 at 4:19 PM, David Capwell wrote: > I downloaded the latest release (1.2.0) of flume and tried to get it sending data to HDFS; for some reason it isn't adding hdfs as a sink. Here is my properties file: > > > agent.sources = seqGenSrc > agent.channels = memoryChannel > agent.sinks = hdfsSink > > # For each one of the sources, the type is defined > agent.sources.seqGenSrc.type = seq > agent.sources.seqGenSrc.channels = memoryChannel > > # Each sink's type must be defined > agent.sinks.loggerSink.type = logger > agent.sinks.loggerSink.channel = memoryChannel > > # Each channel's type is defined. > agent.channels.memoryChannel.type = memory > agent.channels.memoryChannel.capacity = 100 > > agent.sinks.hdfsSink.type = hdfs > > agent.sinks.hdfsSink.hdfs.path = /flume/events/%y-%m-%d/%H%M/%S > agent.sinks.hdfsSink.hdfs.filePrefix = events-#agent.sinks.hdfsSink.hdfs.round = true > agent.sinks.hdfsSink.hdfs.roundValue = 10#agent.sinks.hdfsSink.hdfs.roundUnit = second > > > > Here is what I see in the logs with debugging enabled: > > 2012-08-02 16:11:31,961 (conf-file-poller-0) [DEBUG - org.apache.flume.conf.FlumeConfiguration$AgentConfiguration.validateSinks(FlumeConfiguration.java:649)] 649 Creating sink: hdfsSink using HDFS > 2012-08-02 16:11:31,963 (conf-file-poller-0) [WARN - org.apache.flume.conf.FlumeConfiguration$AgentConfiguration.validateSinks(FlumeConfiguration.java:668)] 668 Configuration empty for: hdfsSink.Removed. > > > Going over the code I wasn't sure where the ConfigurationException was thrown so I did a test and commented out agent.sinks.hdfsSink.channels (to get linke 655 to fail [sinkConf.configure(sinkContext);] ) but still get the same error. > > > am I missing something? > > Thanks for your time reading this email. --501b0b89_2a9c34e2_16f28 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
agent.sinks.hdfsSink.channels =3D memoryChannel  = ; <-needs to be =22agent.sinks.hdfsSink.channel =3D memoryChannel=22

Hari
-- 
Hari Shreedharan

=20

On Thursday, August 2,= 2012 at 4:19 PM, David Capwell wrote:

I downloaded the latest release (1.2.0) of flum= e and tried to get it sending data to HD=46S; for some reason it isn't ad= ding hdfs as a sink.  Here is my properties file:


agent.sources =3D seqGenSrc
agent.channels =3D memoryChannel
agent.sinks =3D hdfsSink<= /div>

=23 =46or each one of the sources, the type is d= efined
agent.sources.seqGenSrc.type =3D seq
agent.sou= rces.seqGenSrc.channels =3D memoryChannel

=23 Each sink's type must be defined
agent.= sinks.loggerSink.type =3D logger
agent.sinks.loggerSink.channel= =3D memoryChannel

=23 Each channel's type is de= fined.
agent.channels.memoryChannel.type =3D memory
agent.channel= s.memoryChannel.capacity =3D 100

agent.sinks.hdf= sSink.type =3D hdfs

agent.sinks.hdfsSink.hdfs.path =3D /flume/events/%y-%m-%d/%H%M/%S
agent.sinks.hdfsSink.hdfs.filePrefix =3D events-=23agent.sinks.hd= fsSink.hdfs.round =3D true
agent.sinks.hdfsSink.hdfs.roundValue= =3D 10=23agent.sinks.hdfsSink.hdfs.roundUnit =3D second


Here is what I see in the logs w= ith debugging enabled:

2012-08-02 16:11:31,= 961 (conf-file-poller-0) =5BDEBUG - org.apache.flume.conf.=46lumeConfigur= ation=24AgentConfiguration.validateSinks(=46lumeConfiguration.java:649)=5D= 649 Creating sink: hdfsSink using HD=46S
2012-08-02 16:11:31,963 (conf-file-poller-0) =5BWARN - org.apache.fl= ume.conf.=46lumeConfiguration=24AgentConfiguration.validateSinks(=46lumeC= onfiguration.java:668)=5D 668 Configuration empty for: hdfsSink.Removed.<= /div>

Going over the code I wasn't sure where the Configura= tionException was thrown so I did a test and commented out agent.sinks.hd= fsSink.channels (to get linke 655 to fail =5BsinkConf.configure(sinkConte= xt);=5D ) but still get the same error.


am I missing something=3F  
=

Thanks for your time reading this email.
=20 =20 =20 =20
=20

--501b0b89_2a9c34e2_16f28--