Return-Path: X-Original-To: apmail-incubator-flume-user-archive@minotaur.apache.org Delivered-To: apmail-incubator-flume-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A15CAC50F for ; Tue, 3 Jul 2012 17:50:23 +0000 (UTC) Received: (qmail 7907 invoked by uid 500); 3 Jul 2012 17:50:23 -0000 Delivered-To: apmail-incubator-flume-user-archive@incubator.apache.org Received: (qmail 7866 invoked by uid 500); 3 Jul 2012 17:50:23 -0000 Mailing-List: contact flume-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flume-user@incubator.apache.org Delivered-To: mailing list flume-user@incubator.apache.org Received: (qmail 7858 invoked by uid 99); 3 Jul 2012 17:50:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2012 17:50:23 +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 ankul.rastogi@gmail.com designates 209.85.220.175 as permitted sender) Received: from [209.85.220.175] (HELO mail-vc0-f175.google.com) (209.85.220.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2012 17:50:17 +0000 Received: by vcbfl15 with SMTP id fl15so4388912vcb.6 for ; Tue, 03 Jul 2012 10:49:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=VYR+hgV0yKHkiro8Nozqhgq0MturJYJwuaQIx9NQOjo=; b=Yvh9X66gAJ057dwKFSgjDpIp13D1T3uy5V2XNqeRvVe+hppV9xoKBkKep0KgqYXwFN C31tsYX8EifFatnLf990slwygKMpDDf9ol0FDL/bekuiaqjqVrcHidzyaqj+yR6e20zQ Yo5RZREQGTvvfN0KsL8dHTHBMr9apfaieF7cMzVlRdOqCK7Wj+knUkeLCUS0d9miVp2/ 72LbYAzkoPsPihBl8q/hV2R15fhnkLeG/4BMjiLxRyDq/gvQWqG5yhRh+946/KYtpW5T CZKjjEgpqYoEli26sh8jSRb4hqD9POtn65ecJqLlM0y6QsbLQMO/v673CavBTSiJ+s25 /6lg== MIME-Version: 1.0 Received: by 10.52.69.83 with SMTP id c19mr7138560vdu.79.1341337796249; Tue, 03 Jul 2012 10:49:56 -0700 (PDT) Received: by 10.220.140.146 with HTTP; Tue, 3 Jul 2012 10:49:56 -0700 (PDT) In-Reply-To: References: <09887E962F0C459CB262E02206865AFD@cloudera.com> <369264018DE245BD9558970441133E4B@cloudera.com> <1142A67B2FD34FE9835368D6815CD69B@cloudera.com> <045663933B2A446B8C59EA10130445C4@cloudera.com> Date: Tue, 3 Jul 2012 23:19:56 +0530 Message-ID: Subject: Re: Flume agent failure From: ankul rastogi To: flume-user@incubator.apache.org Content-Type: multipart/alternative; boundary=20cf3071c874de86cf04c3f08a75 --20cf3071c874de86cf04c3f08a75 Content-Type: text/plain; charset=ISO-8859-1 Hi, I had the same problem. The quick solution that worked for me was to copy the *hadoop-core-1.0.3.jar * to /lib folder*. *You can find this jar in your hadoop installation directory. On Tue, Jul 3, 2012 at 10:14 PM, Mike Percy wrote: > On Mon, Jul 2, 2012 at 12:11 AM, vijay k wrote: > >> >> >> root@md-trngpoc1:/usr/local/flume_dir/flume/flume-1.2.0-incubating-SNAPSHOT# >> bin/flume-ng agent -n agent1 -c conf -f conf/agent1.conf >> Info: Sourcing environment configuration script >> /usr/local/flume_dir/flume/flume-1.2.0-incubating-SNAPSHOT/conf/flume-env.sh >> Info: Including Hadoop libraries found via (/usr/local/hadoop/bin/hadoop) >> for HDFS access >> + exec /usr/lib/jvm/java-6-sun-1.6.0.26/jre/bin/java -Xms100m -Xmx200m >> -cp >> '/usr/local/flume_dir/flume/flume-1.2.0-incubating-SNAPSHOT/conf:/usr/local/flume_dir/flume/flume-1.2.0-incubating-SNAPSHOT/lib/*:/usr/local/flume_dir/flume/flume-1.2.0-incubating-SNAPSHOT/conf' >> -Djava.library.path=:/usr/local/hadoop/bin/../lib/native/Linux-i386-32 >> org.apache.flume.node.Application -n agent1 -f conf/agent1.conf >> > > This is really strange. Your java.library.path is set to > /usr/local/hadoop/lib/native/Linux-i386-32 but for some reason the output > of "hadoop classpath" has not made it into your classpath. I've never seen > that combination before - usually both are there or both are missing. > That's because the same hadoop binary is used for both cases. Are you on a > 32-bit OS? I don't know if anyone has ever tested Flume on a 32-bit OS. > > If you can post the output of the following 6 commands, it might give us > more to go on: > > which hadoop > echo $HADOOP_HOME > hadoop classpath > which java > echo $JAVA_HOME > java -version > > If you are fluent in shell scripting, you can also trace the bin/flume-ng > script and see where it's going wrong. Or just invoke it as: > > bash -x bin/flume-ng agent -n agent1 -c conf -f conf/agent1.conf > > And post the output of that as well (it will be quite long). > > Regards, > Mike > > --20cf3071c874de86cf04c3f08a75 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

I had the same problem.=A0
The quick solut= ion that worked for me was to copy the hadoop-core-1.0.3.jar =A0to &= lt;flume-installation>/lib folder. You can find this jar in your = hadoop installation directory.

On Tue, Jul 3, 2012 at 10:14 PM, Mike Percy = <mpercy@cloudera.com> wrote:
On Mon, Jul 2, 2012 at 12:11 AM, vijay k <k.vijay52@gm= ail.com> wrote:
=A0
root@md-trngpoc1:/usr/local= /flume_dir/flume/flume-1.2.0-incubating-SNAPSHOT#=A0 bin/flume-ng agent= -n agent1 -c conf -f conf/agent1.conf
Info: Sourcing environment configuration script /usr/local/flume_dir/flume/= flume-1.2.0-incubating-SNAPSHOT/conf/flume-env.sh
Info: Including = Hadoop libraries found via (/usr/local/hadoop/bin/hadoop) for HDFS access + exec /usr/lib/jvm/java-6-sun-1.6.0.26/jre/bin/java -Xms100m -Xmx200m -cp = '/usr/local/flume_dir/flume/flume-1.2.0-incubating-SNAPSHOT/conf:/usr/l= ocal/flume_dir/flume/flume-1.2.0-incubating-SNAPSHOT/lib/*:/usr/local/flume= _dir/flume/flume-1.2.0-incubating-SNAPSHOT/conf' -Djava.library.path=3D= :/usr/local/hadoop/bin/../lib/native/Linux-i386-32 org.apache.flume.node.Ap= plication -n agent1 -f conf/agent1.conf

This is really strange. Your java.library.path = is set to /usr/local/hadoop/lib/native/Linux-i386-32 but for some reason th= e output of "hadoop classpath" has not made it into your classpat= h. I've never seen that combination before - usually both are there or = both are missing. That's because the same hadoop binary is used for bot= h cases. Are you on a 32-bit OS? I don't know if anyone has ever tested= Flume on a 32-bit OS.

If you can post the output of the following 6 commands, it might give u= s more to go on:

which hadoop
echo $HADOOP_HOME
hadoop classpa= th
which java
echo $JAVA_HOME
java -version

If you are flue= nt in shell scripting, you can also trace the bin/flume-ng script and see w= here it's going wrong. Or just invoke it as:

=A0 bash -x bin/flume-ng agent -n agent1 -c conf -f conf/agent1.conf
And post the output of that as well (it will be quite long).

Re= gards,
Mike


--20cf3071c874de86cf04c3f08a75--