Guide To Install Apache Eagle 0.4.0-incubating On Hortonworks sandbox.
For older versions: Apache Eagle 0.3.0-incubating Quick Start
Eagle requires a streaming environment to run various applications. For more details, please check Setup Environment
Download latest Eagle source released From Apache [Tar], [MD5].
Build manually with Apache Maven:
$ tar -zxvf apache-eagle-0.4.0-incubating-src.tar.gz $ cd apache-eagle-0.4.0-incubating-src $ curl -O https://patch-diff.githubusercontent.com/raw/apache/eagle/pull/268.patch $ git apply 268.patch $ mvn clean package -DskipTests
After building successfully, you will get a tarball under eagle-assembly/target/
named apache-eagle-0.4.0-incubating-bin.tar.gz
$ scp -P 2222 eagle-assembly/target/apache-eagle-0.4.0-incubating-bin.tar.gz root@127.0.0.1:/root/ $ ssh root@127.0.0.1 -p 2222 (password is hadoop) $ tar -zxvf apache-eagle-0.4.0-incubating-bin.tar.gz $ mv apache-eagle-0.4.0-incubating eagle $ mv eagle /usr/hdp/current/ $ cd /usr/hdp/current/eagle $ examples/eagle-sandbox-starter.sh
After executing examples/eagle-sandbox-starter.sh
, you have a sample application (topology) running on the Apache Storm (check with storm ui), and a sample policy of Hive activity monitoring defined.
Next you can trigger an alert by running a Hive query.
$ su hive $ hive $ set hive.execution.engine=mr; $ use xademo; $ select a.phone_number from customer_details a, call_detail_records b where a.phone_number=b.phone_number;
[^HADOOP]:Apache Hadoop. [^HIVE]:All mentions of “hive” on this page represent Apache Hive.