Return-Path: X-Original-To: apmail-bigtop-user-archive@www.apache.org Delivered-To: apmail-bigtop-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 34AAB10C9C for ; Wed, 28 Aug 2013 21:49:51 +0000 (UTC) Received: (qmail 16117 invoked by uid 500); 28 Aug 2013 21:49:51 -0000 Delivered-To: apmail-bigtop-user-archive@bigtop.apache.org Received: (qmail 16074 invoked by uid 500); 28 Aug 2013 21:49:51 -0000 Mailing-List: contact user-help@bigtop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@bigtop.apache.org Delivered-To: mailing list user@bigtop.apache.org Received: (qmail 16066 invoked by uid 99); 28 Aug 2013 21:49:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Aug 2013 21:49:50 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jayunit100@gmail.com designates 209.85.217.175 as permitted sender) Received: from [209.85.217.175] (HELO mail-lb0-f175.google.com) (209.85.217.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Aug 2013 21:49:46 +0000 Received: by mail-lb0-f175.google.com with SMTP id y6so15442lbh.20 for ; Wed, 28 Aug 2013 14:49:25 -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=kVKQe46Y8D5SLSWAT6TYyhP2wODLqePph0jmH1sSTOo=; b=rSWN2RHX8dRzhitYUX5km26cFXBv5Xtq5aQ9PWoN19vfBd/XecjPO/APJ9bmskzrKP Fga+bxXDzgl9oukjqPkRJ0mSJaIKyTpNEc5Cw2FnX7zXbBY10t8KAIZTIyCg+wAsQLXl mK2yBp22c0rdKaWO0/c3CkH6pAGMfSau8gqK3K4nKk+jeJG3rEH63G2WNF4zoXPjQp7T Q8hs/QuSTyO3OtmpaTUGRGUej562TO00ByI8IrEf4dide+mzLa9sD5SlUNLjVjmxK8o6 +sghbYAhczcGBFJxOZEZvKuUJsW6RvVGtLSe1U9aMKVey8cgqqJ4BZzPiljCw8PG44lf 8BgA== MIME-Version: 1.0 X-Received: by 10.152.120.73 with SMTP id la9mr47224lab.3.1377726565312; Wed, 28 Aug 2013 14:49:25 -0700 (PDT) Received: by 10.112.126.231 with HTTP; Wed, 28 Aug 2013 14:49:25 -0700 (PDT) Date: Wed, 28 Aug 2013 17:49:25 -0400 Message-ID: Subject: Translate this to english :) From: Jay Vyas To: user@flume.apache.org, user@bigtop.apache.org Content-Type: multipart/alternative; boundary=089e011766e585efde04e508f664 X-Virus-Checked: Checked by ClamAV on apache.org --089e011766e585efde04e508f664 Content-Type: text/plain; charset=ISO-8859-1 Hi flume (cc'd bigtop also).... I've been playing with the bigtop tests, and this snippet is particularly difficult to understand for a flume novice : private void compressionCommonTest(String id, String decompress, String glob) { String node_config = "node:text(\"events.txt\")|collectorSink(\"${hdfs_sink_dir}\",\"data\");"; sh.exec("export FLUME_CONF_DIR=./${id}", "flume node_nowatch -s -1 -n node -c '${node_config}'"); assertEquals("Flume failed to accept events", 0, sh.ret); sh.exec("hadoop fs -cat ${hdfs_sink_dir}/${glob} | ${decompress} | wc -l"); assertEquals("Wrong # of lines in output found at ${hdfs_sink_dir}", "10000", sh.out[0]); } Can someone explain the logic of it to me? In particular... 1) What is the difference between flume and flume ng - and does "flume_ng" support these options (i.e. node_nowatch) ? 2) What is the "node_config |" syntax accomplishing? The entire Flume bigtop smoke test can be found here: https://github.com/apache/bigtop/tree/master/bigtop-tests/test-artifacts/flume/src/main/groovy/org/apache/bigtop/itest/flumesmoke -- Jay Vyas http://jayunit100.blogspot.com --089e011766e585efde04e508f664 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi flume =A0(cc'd bigtop also)....

= I've been playing with the bigtop tests, and this snippet is particular= ly difficult to=A0
understand for a flume novice :=A0
<= br>
=A0 private void compressionCommonTest(String id, String decompre= ss, String glob) {
=A0 =A0 String node_config =3D "node:text= (\"events.txt\")|collectorSink(\"${hdfs_sink_dir}\",\&q= uot;data\");";

=A0 =A0 sh.exec("export FLUME_CONF_DIR=3D./${id}&q= uot;,
=A0 =A0 =A0 =A0 =A0 =A0 "flume node_nowatch -s -1 -n n= ode -c '${node_config}'");
=A0 =A0 assertEquals(&quo= t;Flume failed to accept events",
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A00, sh.ret);

=A0 =A0 sh.exec("hadoop fs -cat ${hdfs_sink_dir}/${glob} | ${decompr= ess} | wc -l");
=A0 =A0 assertEquals("Wrong # of lines = in output found at ${hdfs_sink_dir}",
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0"10000", sh.out[0]);
=A0 }

Can someone explain the logic of= it to me? In particular...

1) What is= the difference between flume and flume ng - and does "flume_ng" = support these options (i.e. node_nowatch) ?

2) What is the "node_config |" sy= ntax accomplishing?=A0

The entire Flum= e bigtop smoke test can be found here:=A0


--
Jay Vyas
http://jayunit100.blogspot.com
--089e011766e585efde04e508f664--