eagle-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yonzhang2...@apache.org
Subject incubator-eagle git commit: https://issues.apache.org/jira/browse/EAGLE-430 Author: Yong Zhang Reviewer: Hao Chen
Date Wed, 10 Aug 2016 21:21:00 GMT
Repository: incubator-eagle
Updated Branches:
  refs/heads/develop 9b10f2222 -> 17bd3b897


https://issues.apache.org/jira/browse/EAGLE-430
Author: Yong Zhang
Reviewer: Hao Chen


Project: http://git-wip-us.apache.org/repos/asf/incubator-eagle/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-eagle/commit/17bd3b89
Tree: http://git-wip-us.apache.org/repos/asf/incubator-eagle/tree/17bd3b89
Diff: http://git-wip-us.apache.org/repos/asf/incubator-eagle/diff/17bd3b89

Branch: refs/heads/develop
Commit: 17bd3b89746433f0493ddc37541de06cb70027d5
Parents: 9b10f22
Author: yonzhang <yonzhang2012@gmail.com>
Authored: Wed Aug 10 14:24:43 2016 -0700
Committer: yonzhang <yonzhang2012@gmail.com>
Committed: Wed Aug 10 14:24:43 2016 -0700

----------------------------------------------------------------------
 .gitignore                                      |  3 +
 .../eagle-alert/alert-common/pom.xml            | 22 ++---
 .../impl/ApplicationProviderSPILoader.java      | 17 ++--
 ...org.apache.eagle.app.spi.ApplicationProvider |  1 -
 .../src/main/resources/META-INF/metadata.xml    |  2 +-
 ...org.apache.eagle.app.spi.ApplicationProvider | 19 ----
 eagle-server-assembly/pom.xml                   | 86 +++++++++++++++++
 .../src/assembly/eagle-bin.xml                  | 94 +++++++++++++++++++
 eagle-server-assembly/src/main/README.md        | 99 ++++++++++++++++++++
 .../src/main/conf/application.conf              | 58 ++++++++++++
 .../src/main/conf/configuration.yml             | 21 +++++
 eagle-server/pom.xml                            |  4 -
 .../src/main/resources/application.conf         |  2 +-
 eagle-topology-assembly/pom.xml                 | 70 +-------------
 .../src/assembly/eagle-topology-assembly.xml    | 14 ++-
 ...org.apache.eagle.app.spi.ApplicationProvider | 18 ++++
 ....eagle.policy.PolicyEvaluatorServiceProvider | 16 ----
 pom.xml                                         | 12 +--
 18 files changed, 414 insertions(+), 144 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/17bd3b89/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index b9640d9..287626e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -28,6 +28,9 @@
 *.war
 *.ear
 
+# pid file
+*.pid
+
 .cache-main
 
 # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml

http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/17bd3b89/eagle-core/eagle-alert-parent/eagle-alert/alert-common/pom.xml
----------------------------------------------------------------------
diff --git a/eagle-core/eagle-alert-parent/eagle-alert/alert-common/pom.xml b/eagle-core/eagle-alert-parent/eagle-alert/alert-common/pom.xml
index fdb3a1e..8666014 100644
--- a/eagle-core/eagle-alert-parent/eagle-alert/alert-common/pom.xml
+++ b/eagle-core/eagle-alert-parent/eagle-alert/alert-common/pom.xml
@@ -1,14 +1,14 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- ~ Licensed to the Apache Software Foundation (ASF) under one or more 
-	~ contributor license agreements. See the NOTICE file distributed with ~ 
-	this work for additional information regarding copyright ownership. ~ The 
-	ASF licenses this file to You under the Apache License, Version 2.0 ~ (the 
-	"License"); you may not use this file except in compliance with ~ the License. 
-	You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 
-	~ ~ Unless required by applicable law or agreed to in writing, software ~ 
-	distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT 
-	WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the 
-	License for the specific language governing permissions and ~ limitations 
+<!-- ~ Licensed to the Apache Software Foundation (ASF) under one or more
+	~ contributor license agreements. See the NOTICE file distributed with ~
+	this work for additional information regarding copyright ownership. ~ The
+	ASF licenses this file to You under the Apache License, Version 2.0 ~ (the
+	"License"); you may not use this file except in compliance with ~ the License.
+	You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0
+	~ ~ Unless required by applicable law or agreed to in writing, software ~
+	distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT
+	WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the
+	License for the specific language governing permissions and ~ limitations
 	under the License. -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
@@ -77,7 +77,7 @@
 			<groupId>com.fasterxml.jackson.core</groupId>
 			<artifactId>jackson-databind</artifactId>
 		</dependency>
-		
+
 		<dependency>
 			<groupId>org.codehaus.jackson</groupId>
 			<artifactId>jackson-jaxrs</artifactId>

http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/17bd3b89/eagle-core/eagle-app/eagle-app-base/src/main/java/org/apache/eagle/app/service/impl/ApplicationProviderSPILoader.java
----------------------------------------------------------------------
diff --git a/eagle-core/eagle-app/eagle-app-base/src/main/java/org/apache/eagle/app/service/impl/ApplicationProviderSPILoader.java
b/eagle-core/eagle-app/eagle-app-base/src/main/java/org/apache/eagle/app/service/impl/ApplicationProviderSPILoader.java
index 977b017..1e1dd28 100644
--- a/eagle-core/eagle-app/eagle-app-base/src/main/java/org/apache/eagle/app/service/impl/ApplicationProviderSPILoader.java
+++ b/eagle-core/eagle-app/eagle-app-base/src/main/java/org/apache/eagle/app/service/impl/ApplicationProviderSPILoader.java
@@ -43,13 +43,13 @@ public class ApplicationProviderSPILoader extends ApplicationProviderLoader{
             this.appProviderExtDir = null;
         }
 
-        LOG.info("Using {}: {}",APPLICATIONS_DIR_PROPS_KEY,this.appProviderExtDir);
+        LOG.warn("Using {}: {}",APPLICATIONS_DIR_PROPS_KEY,this.appProviderExtDir);
     }
 
     @Override
     public void load() {
         if(appProviderExtDir != null) {
-            LOG.info("Loading application providers from class loader of jars in {}", appProviderExtDir);
+            LOG.warn("Loading application providers from class loader of jars in {}", appProviderExtDir);
             File loc = new File(appProviderExtDir);
             File[] jarFiles = loc.listFiles(file -> file.getPath().toLowerCase().endsWith(".jar"));
             if (jarFiles != null) {
@@ -65,24 +65,25 @@ public class ApplicationProviderSPILoader extends ApplicationProviderLoader{
                 }
             }
         } else {
-            LOG.info("Loading application providers from context class loader");
+            LOG.warn("Loading application providers from context class loader");
             ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
             loadProviderFromClassLoader(classLoader,(applicationProvider) -> DynamicJarPathFinder.findPath(applicationProvider.getClass()));
         }
     }
 
     private void loadProviderFromClassLoader(ClassLoader jarFileClassLoader, Function<ApplicationProvider,String>
jarFileSupplier){
-        ServiceLoader<ApplicationProvider> serviceLoader = ServiceLoader.load(ApplicationProvider.class,
jarFileClassLoader);
-        for (ApplicationProvider applicationProvider : serviceLoader) {
-            try {
+        ServiceLoader<ApplicationProvider> serviceLoader = ServiceLoader.load(ApplicationProvider.class);
+        try {
+            for (ApplicationProvider applicationProvider : serviceLoader) {
                 ApplicationProviderConfig providerConfig = new ApplicationProviderConfig();
                 providerConfig.setClassName(applicationProvider.getClass().getCanonicalName());
                 providerConfig.setJarPath(jarFileSupplier.apply(applicationProvider));
                 applicationProvider.prepare(providerConfig, getConfig());
                 registerProvider(applicationProvider);
-            }catch (Throwable ex){
-                LOG.warn("Failed to register application provider {}",applicationProvider,ex);
             }
+        }catch (Throwable ex){
+            LOG.warn("Failed to register application provider",ex);
+            throw new IllegalStateException(ex);
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/17bd3b89/eagle-examples/eagle-app-example/src/main/resources/META-INF/services/org.apache.eagle.app.spi.ApplicationProvider
----------------------------------------------------------------------
diff --git a/eagle-examples/eagle-app-example/src/main/resources/META-INF/services/org.apache.eagle.app.spi.ApplicationProvider
b/eagle-examples/eagle-app-example/src/main/resources/META-INF/services/org.apache.eagle.app.spi.ApplicationProvider
index f42e30f..30594a0 100644
--- a/eagle-examples/eagle-app-example/src/main/resources/META-INF/services/org.apache.eagle.app.spi.ApplicationProvider
+++ b/eagle-examples/eagle-app-example/src/main/resources/META-INF/services/org.apache.eagle.app.spi.ApplicationProvider
@@ -14,4 +14,3 @@
 # limitations under the License.
 
 org.apache.eagle.app.example.ExampleApplicationProvider
-##org.apache.eagle.app.example.ExampleApplicationProvider2

http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/17bd3b89/eagle-security/eagle-security-hbase-auditlog/src/main/resources/META-INF/metadata.xml
----------------------------------------------------------------------
diff --git a/eagle-security/eagle-security-hbase-auditlog/src/main/resources/META-INF/metadata.xml
b/eagle-security/eagle-security-hbase-auditlog/src/main/resources/META-INF/metadata.xml
index 692e3f9..4c2d670 100644
--- a/eagle-security/eagle-security-hbase-auditlog/src/main/resources/META-INF/metadata.xml
+++ b/eagle-security/eagle-security-hbase-auditlog/src/main/resources/META-INF/metadata.xml
@@ -146,7 +146,7 @@
             <description>eagle service username</description>
         </property>
         <property>
-            <name>eagleProps.eagleService.port</name>
+            <name>eagleProps.eagleService.password</name>
             <displayName>eagleProps.eagleService.password</displayName>
             <value>secret</value>
             <description>eagle service password</description>

http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/17bd3b89/eagle-security/eagle-security-hbase-auditlog/src/main/resources/META-INF/services/org.apache.eagle.app.spi.ApplicationProvider
----------------------------------------------------------------------
diff --git a/eagle-security/eagle-security-hbase-auditlog/src/main/resources/META-INF/services/org.apache.eagle.app.spi.ApplicationProvider
b/eagle-security/eagle-security-hbase-auditlog/src/main/resources/META-INF/services/org.apache.eagle.app.spi.ApplicationProvider
index e96f225..85a2f6d 100644
--- a/eagle-security/eagle-security-hbase-auditlog/src/main/resources/META-INF/services/org.apache.eagle.app.spi.ApplicationProvider
+++ b/eagle-security/eagle-security-hbase-auditlog/src/main/resources/META-INF/services/org.apache.eagle.app.spi.ApplicationProvider
@@ -1,22 +1,3 @@
-#
-# /*
-#  * Licensed to the Apache Software Foundation (ASF) under one or more
-#  * contributor license agreements.  See the NOTICE file distributed with
-#  * this work for additional information regarding copyright ownership.
-#  * The ASF licenses this file to You under the Apache License, Version 2.0
-#  * (the "License"); you may not use this file except in compliance with
-#  * the License.  You may obtain a copy of the License at
-#  * <p/>
-#  * http://www.apache.org/licenses/LICENSE-2.0
-#  * <p/>
-#  * Unless required by applicable law or agreed to in writing, software
-#  * distributed under the License is distributed on an "AS IS" BASIS,
-#  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#  * See the License for the specific language governing permissions and
-#  * limitations under the License.
-#  */
-#
-
 # Licensed to the Apache Software Foundation (ASF) under one or more
 # contributor license agreements.  See the NOTICE file distributed with
 # this work for additional information regarding copyright ownership.

http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/17bd3b89/eagle-server-assembly/pom.xml
----------------------------------------------------------------------
diff --git a/eagle-server-assembly/pom.xml b/eagle-server-assembly/pom.xml
new file mode 100644
index 0000000..42d2b04
--- /dev/null
+++ b/eagle-server-assembly/pom.xml
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.apache.eagle</groupId>
+    <artifactId>eagle-parent</artifactId>
+    <version>0.5.0-incubating-SNAPSHOT</version>
+  </parent>
+  <groupId>eagle</groupId>
+  <artifactId>eagle-server-assembly</artifactId>
+  <name>eagle-server-assembly</name>
+  <url>http://maven.apache.org</url>
+  <dependencies>
+    <!--<dependency>-->
+      <!--<groupId>org.slf4j</groupId>-->
+      <!--<artifactId>slf4j-api</artifactId>-->
+    <!--</dependency>-->
+    <dependency>
+      <groupId>org.apache.eagle</groupId>
+      <artifactId>eagle-server</artifactId>
+      <version>${project.version}</version>
+    </dependency>
+    <!--<dependency>-->
+      <!--<groupId>org.apache.eagle</groupId>-->
+      <!--<artifactId>eagle-topology-assembly</artifactId>-->
+      <!--<version>${project.version}</version>-->
+    <!--</dependency>-->
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-dependency-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>package</phase>
+            <goals>
+              <goal>copy-dependencies</goal>
+            </goals>
+            <configuration>
+              <outputDirectory>${project.build.directory}/lib</outputDirectory>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+
+      <plugin>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <configuration>
+          <descriptor>src/assembly/eagle-bin.xml</descriptor>
+          <finalName>eagle-${project.version}</finalName>
+        </configuration>
+        <executions>
+          <execution>
+            <phase>package</phase>
+            <goals>
+              <goal>single</goal>
+            </goals>
+            <configuration>
+              <tarLongFileMode>posix</tarLongFileMode>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+
+    </plugins>
+  </build>
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/17bd3b89/eagle-server-assembly/src/assembly/eagle-bin.xml
----------------------------------------------------------------------
diff --git a/eagle-server-assembly/src/assembly/eagle-bin.xml b/eagle-server-assembly/src/assembly/eagle-bin.xml
new file mode 100644
index 0000000..39b1692
--- /dev/null
+++ b/eagle-server-assembly/src/assembly/eagle-bin.xml
@@ -0,0 +1,94 @@
+<!--
+  ~ /*
+  ~  * Licensed to the Apache Software Foundation (ASF) under one or more
+  ~  * contributor license agreements.  See the NOTICE file distributed with
+  ~  * this work for additional information regarding copyright ownership.
+  ~  * The ASF licenses this file to You under the Apache License, Version 2.0
+  ~  * (the "License"); you may not use this file except in compliance with
+  ~  * the License.  You may obtain a copy of the License at
+  ~  * <p/>
+  ~  * http://www.apache.org/licenses/LICENSE-2.0
+  ~  * <p/>
+  ~  * Unless required by applicable law or agreed to in writing, software
+  ~  * distributed under the License is distributed on an "AS IS" BASIS,
+  ~  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~  * See the License for the specific language governing permissions and
+  ~  * limitations under the License.
+  ~  */
+  -->
+
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+          xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0
http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+    <id>bin</id>
+    <formats>
+        <format>dir</format>
+        <format>tar.gz</format>
+    </formats>
+    <includeBaseDirectory>true</includeBaseDirectory>
+    <fileSets>
+        <fileSet>
+            <directory>${project.basedir}/src/main/bin</directory>
+            <outputDirectory>bin/</outputDirectory>
+            <includes>
+                <include>*.sh</include>
+            </includes>
+            <fileMode>0755</fileMode>
+            <directoryMode>0755</directoryMode>
+            <lineEnding>unix</lineEnding>
+        </fileSet>
+        <fileSet>
+            <directory>${project.basedir}/src/main/bin</directory>
+            <outputDirectory>bin/</outputDirectory>
+            <includes>
+                <include>*</include>
+            </includes>
+            <lineEnding>unix</lineEnding>
+        </fileSet>
+        <fileSet>
+            <directory>${project.basedir}/src/main/conf</directory>
+            <outputDirectory>conf/</outputDirectory>
+            <includes>
+                <include>*</include>
+            </includes>
+            <lineEnding>unix</lineEnding>
+        </fileSet>
+        <fileSet>
+            <directory>${project.basedir}/src/main</directory>
+            <outputDirectory>.</outputDirectory>
+            <includes>
+                <include>README.md</include>
+            </includes>
+            <lineEnding>unix</lineEnding>
+        </fileSet>
+        <fileSet>
+            <directory>${project.basedir}/src/main/lib</directory>
+            <outputDirectory>lib</outputDirectory>
+            <includes>
+                <include>*.sh</include>
+            </includes>
+            <fileMode>0755</fileMode>
+            <lineEnding>unix</lineEnding>
+        </fileSet>
+
+        <fileSet>
+            <directory>${project.basedir}/../eagle-topology-assembly/target</directory>
+            <outputDirectory>lib/</outputDirectory>
+            <includes>
+                <include>eagle-topology-*-assembly.jar</include>
+            </includes>
+        </fileSet>
+
+        <!-- copy dependent jars into /lib -->
+        <fileSet>
+            <directory>${project.build.directory}/lib</directory>
+            <outputDirectory>lib</outputDirectory>
+            <includes>
+                <include>dropwizard-*.jar</include>
+                <include>storm-core-*.jar</include>
+                <include>slf4j-api-*.jar</include>
+                <include>jersey-*.jar</include>
+            </includes>
+        </fileSet>
+    </fileSets>
+</assembly>

http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/17bd3b89/eagle-server-assembly/src/main/README.md
----------------------------------------------------------------------
diff --git a/eagle-server-assembly/src/main/README.md b/eagle-server-assembly/src/main/README.md
new file mode 100644
index 0000000..d9ee25f
--- /dev/null
+++ b/eagle-server-assembly/src/main/README.md
@@ -0,0 +1,99 @@
+<!--
+{% comment %}
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+{% endcomment %}
+-->
+
+Eagle User Guide
+========================
+
+Prerequisites
+-------------
+* Hadoop
+* HBase
+* Storm
+* Spark
+* Kafka
+
+Eagle requires you to have access on Hadoop CLI, where you have full permissions to HDFS,
Storm, HBase and Kafka. To make things easier, we strongly recommend you to start Eagle on
a hadoop sandbox such as http://hortonworks.com/products/hortonworks-sandbox/
+
+
+Build
+-----
+
+* Download the latest version of Eagle source code.
+
+		git clone git@github.xyz.com:eagle/eagle.git
+
+
+* Build the source code, and a tar.gz package will be generated under eagle-assembly/target.
+
+		mvn clean compile install -DskipTests
+
+Installation
+-----------
+* Copy this package onto the sandbox.
+
+		scp -P 2222 eagle/eagle-assembly/target/eagle-0.1.0-bin.tar.gz root@127.0.0.1:/usr/hdp/current/.
+
+* Run Eagle patch installation at the first time, and restart HDFS namenode.
+
+		bin/eagle-patch-install.sh
+
+
+* Start Storm, HBase, and Kafka via Ambari Web UI. Make sure the user has the privilege to
run Storm, HBase, and Kafka cmd in shell, and with full permissions to access HBase, such
as creating tables. Check the installation & running status of the required services.
+
+		bin/eagle-check-env.sh
+
+
+* Create necessary HBase tables for Eagle.
+
+		bin/eagle-service-init.sh
+
+
+* Start Eagle service.
+
+		bin/eagle-service.sh start
+		
+
+* Create Kafka topics and topology metadata for Eagle.
+
+		bin/eagle-topology-init.sh
+
+
+* Start Eagle topology, which will submit the topology to Storm via the Storm CLI tools.
You can check it with storm UI.
+
+		bin/eagle-topology.sh [--jar <jarName>] [--main <mainClass>] [--topology <topologyName>]
start
+
+
+Now you can let Eagle to monitor by creating your own policy!
+
+
+Sandbox Starter
+---------------
+
+* startup Eagle service & topology
+
+		examples/eagle-sandbox-starter.sh
+		
+* check eagle UI <http://127.0.0.1:9099/eagle-service>
+
+  * If you get a 404 Error when trying to access the UI, add port 9099 to "Settings->Network->Advanced->Port
Forwarding" in VirtualBox. (See step 4 in "Setup Hadoop Environment" section in <https://eagle.incubator.apache.org/docs/quick-start.html>)
+
+* Take the following actions which will violate and obey the sample policy.
+     * Violation Action: hdfs dfs -ls unknown
+     * Violation Action: hdfs dfs -touchz /tmp/private
+     * Obey Action: hdfs dfs -cat /tmp/private

http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/17bd3b89/eagle-server-assembly/src/main/conf/application.conf
----------------------------------------------------------------------
diff --git a/eagle-server-assembly/src/main/conf/application.conf b/eagle-server-assembly/src/main/conf/application.conf
new file mode 100644
index 0000000..ff2d331
--- /dev/null
+++ b/eagle-server-assembly/src/main/conf/application.conf
@@ -0,0 +1,58 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+{
+	"coordinator" : {
+		"policiesPerBolt" : 5,
+		"boltParallelism" : 5,
+		"policyDefaultParallelism" : 5,
+		"boltLoadUpbound": 0.8,
+		"topologyLoadUpbound" : 0.8,
+		"numOfAlertBoltsPerTopology" : 5,
+		"zkConfig" : {
+			"zkQuorum" : "server.eagle.apache.org:2181",
+			"zkRoot" : "/alert",
+			"zkSessionTimeoutMs" : 10000,
+			"connectionTimeoutMs" : 10000,
+			"zkRetryTimes" : 3,
+			"zkRetryInterval" : 3000
+		},
+		"metadataService" : {
+			"host" : "localhost",
+			"port" : 9090,
+			"context" : "/rest"
+		},
+		"metadataDynamicCheck" : {
+			"initDelayMillis" : 1000,
+			"delayMillis" : 30000
+		}
+	},
+	"metadata":{
+		"store": "org.apache.eagle.metadata.service.memory.MemoryMetadataStore"
+	},
+	"connection":"jdbc:mysql://server.eagle.apache.org:3306/eagle",
+	"application":{
+		"sink":{
+			"type": "org.apache.eagle.app.sink.KafkaStreamSink"
+		},
+		"storm": {
+			"nimbusHost": "localhost"
+			"nimbusThriftPort": 6627
+		},
+		"provider" : {
+//			"dir" : "/tmp/eagle"
+		}
+	}
+}

http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/17bd3b89/eagle-server-assembly/src/main/conf/configuration.yml
----------------------------------------------------------------------
diff --git a/eagle-server-assembly/src/main/conf/configuration.yml b/eagle-server-assembly/src/main/conf/configuration.yml
new file mode 100644
index 0000000..c671ade
--- /dev/null
+++ b/eagle-server-assembly/src/main/conf/configuration.yml
@@ -0,0 +1,21 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+server:
+  applicationConnectors:
+    - type: http
+      port: 9090
+  adminConnectors:
+    - type: http
+      port: 9091

http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/17bd3b89/eagle-server/pom.xml
----------------------------------------------------------------------
diff --git a/eagle-server/pom.xml b/eagle-server/pom.xml
index f065b53..20819ff 100644
--- a/eagle-server/pom.xml
+++ b/eagle-server/pom.xml
@@ -126,10 +126,6 @@
             <version>${project.version}</version>
         </dependency>
         <dependency>
-            <groupId>org.apache.hbase</groupId>
-            <artifactId>hbase-client</artifactId>
-        </dependency>
-        <dependency>
             <groupId>org.apache.eagle</groupId>
             <artifactId>eagle-app-example</artifactId>
             <version>${project.version}</version>

http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/17bd3b89/eagle-server/src/main/resources/application.conf
----------------------------------------------------------------------
diff --git a/eagle-server/src/main/resources/application.conf b/eagle-server/src/main/resources/application.conf
index ca5ffe6..ff2d331 100644
--- a/eagle-server/src/main/resources/application.conf
+++ b/eagle-server/src/main/resources/application.conf
@@ -31,7 +31,7 @@
 		},
 		"metadataService" : {
 			"host" : "localhost",
-			"port" : 8080,
+			"port" : 9090,
 			"context" : "/rest"
 		},
 		"metadataDynamicCheck" : {

http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/17bd3b89/eagle-topology-assembly/pom.xml
----------------------------------------------------------------------
diff --git a/eagle-topology-assembly/pom.xml b/eagle-topology-assembly/pom.xml
index 7e1cb46..975af11 100644
--- a/eagle-topology-assembly/pom.xml
+++ b/eagle-topology-assembly/pom.xml
@@ -28,77 +28,9 @@
     <url>http://maven.apache.org</url>
     <packaging>jar</packaging>
     <dependencies>
-        <!--<dependency>
-            <groupId>org.apache.eagle</groupId>
-            <artifactId>eagle-hadoop-queue</artifactId>
-            <version>${project.version}</version>
-        </dependency>-->
-        <dependency>
-            <groupId>org.apache.eagle</groupId>
-            <artifactId>eagle-security-hdfs-auditlog</artifactId>
-            <version>${project.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.eagle</groupId>
-            <artifactId>eagle-security-hdfs-authlog</artifactId>
-            <version>${project.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.eagle</groupId>
-            <artifactId>eagle-security-hive</artifactId>
-            <version>${project.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.eagle</groupId>
-            <artifactId>eagle-security-oozie-auditlog</artifactId>
-            <version>${project.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.eagle</groupId>
-            <artifactId>eagle-security-hbase-auditlog</artifactId>
-            <version>${project.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.eagle</groupId>
-            <artifactId>eagle-metric-collection</artifactId>
-            <version>${project.version}</version>
-            <exclusions>
-                <exclusion>
-                    <groupId>org.ow2.asm</groupId>
-                    <artifactId>asm-all</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>org.ow2.asm</groupId>
-                    <artifactId>asm</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>asm</groupId>
-                    <artifactId>asm</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>asm</groupId>
-                    <artifactId>asm-all</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.eagle</groupId>
-            <artifactId>eagle-stream-pipeline</artifactId>
-            <version>${project.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.eagle</groupId>
-            <artifactId>eagle-hadoop-metric</artifactId>
-            <version>${project.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.eagle</groupId>
-            <artifactId>eagle-gc</artifactId>
-            <version>${project.version}</version>
-        </dependency>
         <dependency>
             <groupId>org.apache.eagle</groupId>
-            <artifactId>eagle-alert-notification-plugin</artifactId>
+            <artifactId>eagle-server</artifactId>
             <version>${project.version}</version>
         </dependency>
     </dependencies>

http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/17bd3b89/eagle-topology-assembly/src/assembly/eagle-topology-assembly.xml
----------------------------------------------------------------------
diff --git a/eagle-topology-assembly/src/assembly/eagle-topology-assembly.xml b/eagle-topology-assembly/src/assembly/eagle-topology-assembly.xml
index 97e36b8..76cd5b1 100644
--- a/eagle-topology-assembly/src/assembly/eagle-topology-assembly.xml
+++ b/eagle-topology-assembly/src/assembly/eagle-topology-assembly.xml
@@ -5,7 +5,7 @@
    The ASF licenses this file to You under the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License.  You may obtain a copy of the License at
- 
+
       http://www.apache.org/licenses/LICENSE-2.0
 
    Unless required by applicable law or agreed to in writing, software
@@ -36,17 +36,15 @@
                     <exclude>**/*storm.yaml</exclude>
                     <exclude>**/*storm.yaml.1</exclude>
                     <exclude>**/log4j.properties</exclude>
+                    <exclude>**/org.apache.eagle.app.spi.ApplicationProvider</exclude>
                 </excludes>
             </unpackOptions>
             <excludes>
-                <exclude>org.apache.storm:storm-core</exclude>
                 <exclude>org.slf4j:slf4j-api</exclude>
-                <exclude>org.slf4j:log4j-over-slf4j</exclude>
-                <exclude>org.slf4j:slf4j-log4j12</exclude>
-                <exclude>log4j:log4j</exclude>
-                <exclude>asm:asm</exclude>
-                <exclude>org.apache.log4j.wso2:log4j</exclude>
-                <exclude>log4j:apache-log4j-extras</exclude>
+                <exclude>io.dropwizard:**</exclude>
+                <exclude>com.sun.jersey:**</exclude>
+                <exclude>com.sun.jersey.contribs:**</exclude>
+                <exclude>org.apache.storm:storm-core</exclude>
             </excludes>
         </dependencySet>
     </dependencySets>

http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/17bd3b89/eagle-topology-assembly/src/resources/META-INF/services/org.apache.eagle.app.spi.ApplicationProvider
----------------------------------------------------------------------
diff --git a/eagle-topology-assembly/src/resources/META-INF/services/org.apache.eagle.app.spi.ApplicationProvider
b/eagle-topology-assembly/src/resources/META-INF/services/org.apache.eagle.app.spi.ApplicationProvider
new file mode 100644
index 0000000..0448556
--- /dev/null
+++ b/eagle-topology-assembly/src/resources/META-INF/services/org.apache.eagle.app.spi.ApplicationProvider
@@ -0,0 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+org.apache.eagle.security.hbase.HBaseAuditLogAppProvider
+org.apache.eagle.app.example.ExampleApplicationProvider
+org.apache.eagle.app.jpm.JPMApplicationProvider

http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/17bd3b89/eagle-topology-assembly/src/resources/META-INF/services/org.apache.eagle.policy.PolicyEvaluatorServiceProvider
----------------------------------------------------------------------
diff --git a/eagle-topology-assembly/src/resources/META-INF/services/org.apache.eagle.policy.PolicyEvaluatorServiceProvider
b/eagle-topology-assembly/src/resources/META-INF/services/org.apache.eagle.policy.PolicyEvaluatorServiceProvider
deleted file mode 100644
index eac2bfd..0000000
--- a/eagle-topology-assembly/src/resources/META-INF/services/org.apache.eagle.policy.PolicyEvaluatorServiceProvider
+++ /dev/null
@@ -1,16 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#    http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-org.apache.eagle.policy.siddhi.SiddhiPolicyEvaluatorServiceProviderImpl
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/17bd3b89/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index b71b5cc..ed9a0d1 100755
--- a/pom.xml
+++ b/pom.xml
@@ -14,8 +14,7 @@
   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   ~ See the License for the specific language governing permissions and
   ~ limitations under the License.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  --><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
     <parent>
         <groupId>org.apache</groupId>
@@ -125,17 +124,18 @@
     </developers>
     <modules>
         <module>eagle-core</module>
-        <module>eagle-webservice</module>
+        <!--<module>eagle-webservice</module>-->
         <module>eagle-security</module>
         <module>eagle-external</module>
-        <module>eagle-assembly</module>
+        <!--<module>eagle-assembly</module>-->
         <module>eagle-topology-assembly</module>
         <module>eagle-examples</module>
         <module>eagle-gc</module>
         <module>eagle-hadoop-metric</module>
         <module>eagle-server</module>
         <module>eagle-jpm</module>
-    </modules>
+        <module>eagle-server-assembly</module>
+  </modules>
     <properties>
         <!-- General Properties -->
         <java.version>1.8</java.version>
@@ -1183,7 +1183,7 @@
 
                                 <!-- TODO: fix it -->
                                 <exclude>**/webapp/**</exclude>
-
+                                <exclude>**/*.pid</exclude>
                             </excludes>
                         </configuration>
                     </execution>



Mime
View raw message