Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A1706200C82 for ; Fri, 21 Apr 2017 20:11:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A0286160B86; Fri, 21 Apr 2017 18:11:46 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D7211160BAF for ; Fri, 21 Apr 2017 20:11:45 +0200 (CEST) Received: (qmail 39874 invoked by uid 500); 21 Apr 2017 18:11:44 -0000 Mailing-List: contact commits-help@beam.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.apache.org Delivered-To: mailing list commits@beam.apache.org Received: (qmail 39728 invoked by uid 99); 21 Apr 2017 18:11:44 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Apr 2017 18:11:44 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id B2329F49F1; Fri, 21 Apr 2017 18:11:44 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: davor@apache.org To: commits@beam.apache.org Date: Fri, 21 Apr 2017 18:11:46 -0000 Message-Id: <0455112f9c724f429acd3e0d00488334@git.apache.org> In-Reply-To: <68f0c26733c04e55915a256488bcdeb0@git.apache.org> References: <68f0c26733c04e55915a256488bcdeb0@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [3/4] beam-site git commit: Regenerate website archived-at: Fri, 21 Apr 2017 18:11:46 -0000 Regenerate website Project: http://git-wip-us.apache.org/repos/asf/beam-site/repo Commit: http://git-wip-us.apache.org/repos/asf/beam-site/commit/876a895b Tree: http://git-wip-us.apache.org/repos/asf/beam-site/tree/876a895b Diff: http://git-wip-us.apache.org/repos/asf/beam-site/diff/876a895b Branch: refs/heads/asf-site Commit: 876a895b9d4a49afbfdfe47d459bf164c8156deb Parents: 0da810c Author: Davor Bonaci Authored: Fri Apr 21 11:11:22 2017 -0700 Committer: Davor Bonaci Committed: Fri Apr 21 11:11:22 2017 -0700 ---------------------------------------------------------------------- content/documentation/runners/apex/index.html | 58 +++++++++++++++++++++- 1 file changed, 57 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/beam-site/blob/876a895b/content/documentation/runners/apex/index.html ---------------------------------------------------------------------- diff --git a/content/documentation/runners/apex/index.html b/content/documentation/runners/apex/index.html index 875f3e0..c91f8d6 100644 --- a/content/documentation/runners/apex/index.html +++ b/content/documentation/runners/apex/index.html @@ -153,7 +153,63 @@

Using the Apache Apex Runner

-

This page is under construction (BEAM-825).

+

The Apex Runner executes Apache Beam pipelines using Apache Apex as an underlying engine. The runner has broad support for the Beam model and supports streaming and batch pipelines.

+ +

Apache Apex is a stream processing platform and framework for low-latency, high-throughput and fault-tolerant analytics applications on Apache Hadoop. Apex has a unified streaming architecture and can be used for real-time and batch processing.

+ +

Apex Runner prerequisites

+ +

You may set up your own Hadoop cluster. Beam does not require anything extra to launch the pipelines on YARN. +An optional Apex installation may be useful for monitoring and troubleshooting. +The Apex CLI can be built or +obtained as binary build. +For more download options see distribution information on the Apache Apex website.

+ +

Running wordcount using Apex Runner

+ +

Put data for processing into HDFS:

+
hdfs dfs -mkdir -p /tmp/input/
+hdfs dfs -put pom.xml /tmp/input/
+
+
+ +

The output directory should not exist on HDFS:

+
hdfs dfs -rm -r -f /tmp/output/
+
+
+ +

Run the wordcount example (example project needs to be modified to include HDFS file provider)

+
mvn compile exec:java -Dexec.mainClass=org.apache.beam.examples.WordCount -Dexec.args="--inputFile=/tmp/input/pom.xml --output=/tmp/output/ --runner=ApexRunner --embeddedExecution=false --configFile=beam-runners-apex.properties" -Papex-runner
+
+
+ +

The application will run asynchronously. Check status with yarn application -list -appStates ALL

+ +

The configuration file is optional, it can be used to influence how Apex operators are deployed into YARN containers. +The following example will reduce the number of required containers by collocating the operators into the same container +and lower the heap memory per operator - suitable for execution in a single node Hadoop sandbox.

+ +
dt.application.*.operator.*.attr.MEMORY_MB=64
+dt.stream.*.prop.locality=CONTAINER_LOCAL
+dt.application.*.operator.*.attr.TIMEOUT_WINDOW_COUNT=1200
+
+
+ +

Checking output

+ +

Check the output of the pipeline in the HDFS location.

+
hdfs dfs -ls /tmp/output/
+
+
+ +

Montoring progress of your job

+ +

Depending on your installation, you may be able to monitor the progress of your job on the Hadoop cluster. Alternatively, you have following options:

+ +