You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eagle.apache.org by ha...@apache.org on 2016/01/11 06:18:05 UTC
incubator-eagle git commit: EAGLE-114 Enable RAT check and fix
missing license headers
Repository: incubator-eagle
Updated Branches:
refs/heads/master ce64b4202 -> dd26aa430
EAGLE-114 Enable RAT check and fix missing license headers
https://issues.apache.org/jira/browse/EAGLE-114
- Enable rat check in pom
- Added missing headers in java sources, shell scripts, config and doc
files. Some of the test files and json files are excluded since these
formats don't support comments.
- The files under webapp in eagle-webservice module are deferred in this
patch. Those will tracked in a separate patch.
- Compilation, rat check (via maven verify) and unit tests pass with the
patch.
Author: @pmujumdar <pr...@cloudera.com>
Reviewer: @haoch <pr...@apache.org>
Closes #51
Project: http://git-wip-us.apache.org/repos/asf/incubator-eagle/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-eagle/commit/dd26aa43
Tree: http://git-wip-us.apache.org/repos/asf/incubator-eagle/tree/dd26aa43
Diff: http://git-wip-us.apache.org/repos/asf/incubator-eagle/diff/dd26aa43
Branch: refs/heads/master
Commit: dd26aa430194f489c475432bf34978d454e494b5
Parents: ce64b42
Author: Hao Chen <ha...@apache.org>
Authored: Mon Jan 11 13:14:52 2016 +0800
Committer: Hao Chen <ha...@apache.org>
Committed: Mon Jan 11 13:14:52 2016 +0800
----------------------------------------------------------------------
eagle-assembly/src/main/README.md | 19 ++++++
.../src/main/docs/logstash-kafka-conf.md | 19 ++++++
eagle-external/eagle-ambari/README.md | 21 ++++++-
.../lib/EAGLE/configuration/eagle-env.sh | 15 +++++
.../lib/EAGLE/configuration/eagle-service.conf | 17 ++++-
.../src/main/resources/application.conf | 17 ++++-
.../run_hiveauditlog_topology.sh | 17 ++++-
.../eagle-dam-hiveQueryLog-assembly.xml | 16 +++++
.../alert-metadata-create-jobhistory.sh | 15 +++++
.../create-hiveResourceSensitivity-metadata.sh | 17 ++++-
.../src/main/resources/hive.storm.yaml | 15 +++++
.../main/resources/sample-data-create.script | 15 +++++
.../src/main/resources/sample-hive-policy.sh | 17 ++++-
.../detection/dev-supports/prepare-metadata.sh | 18 +++++-
.../detection/dev-supports/prepare-table.sh | 15 +++++
.../produce-useractivity-with-spark.sh | 17 ++++-
.../dev-supports/produce-useractivity.sh | 15 +++++
.../detection/run_onlineprediction_topology.sh | 16 +++++
.../userprofile/UserProfileDetectionMain.java | 19 ++++++
.../src/main/resources/userprofile.storm.yaml | 17 ++++-
.../userprofile/TestUserActivityAggregator.java | 19 ++++++
.../TestUserProfileAnomalyEigenEvaluator.java | 19 ++++++
.../model/JavaUserProfileModeler.java | 20 ++++++
.../training/src/main/resources/reference.conf | 17 ++++-
.../main/sbin/submit-userprofile-training.sh | 15 +++++
.../src/assembly/eagle-topology-assembly.xml | 19 +++++-
pom.xml | 65 ++++++++++++++++++++
27 files changed, 500 insertions(+), 11 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-assembly/src/main/README.md
----------------------------------------------------------------------
diff --git a/eagle-assembly/src/main/README.md b/eagle-assembly/src/main/README.md
index 3eca2c8..d3d79f2 100644
--- a/eagle-assembly/src/main/README.md
+++ b/eagle-assembly/src/main/README.md
@@ -1,3 +1,22 @@
+<!--
+{% 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
========================
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-assembly/src/main/docs/logstash-kafka-conf.md
----------------------------------------------------------------------
diff --git a/eagle-assembly/src/main/docs/logstash-kafka-conf.md b/eagle-assembly/src/main/docs/logstash-kafka-conf.md
index 3f932c1..84952e0 100644
--- a/eagle-assembly/src/main/docs/logstash-kafka-conf.md
+++ b/eagle-assembly/src/main/docs/logstash-kafka-conf.md
@@ -1,3 +1,22 @@
+<!--
+{% 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 %}
+-->
+
# Logstash-kafka
### Install logstash-kafka plugin
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-external/eagle-ambari/README.md
----------------------------------------------------------------------
diff --git a/eagle-external/eagle-ambari/README.md b/eagle-external/eagle-ambari/README.md
index 0b3e662..c7b0a58 100644
--- a/eagle-external/eagle-ambari/README.md
+++ b/eagle-external/eagle-ambari/README.md
@@ -1,3 +1,22 @@
+<!--
+{% 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-ambari-plugin
===================
@@ -25,4 +44,4 @@ Usage
Reference
---------
* [Ambari: Create and Add the Service](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=38571133#Overview\(Ambari1.5.0orlater\)-CreateandAddtheService)
-* [Quick links for custom services](https://issues.apache.org/jira/browse/AMBARI-11268)
\ No newline at end of file
+* [Quick links for custom services](https://issues.apache.org/jira/browse/AMBARI-11268)
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-external/eagle-ambari/lib/EAGLE/configuration/eagle-env.sh
----------------------------------------------------------------------
diff --git a/eagle-external/eagle-ambari/lib/EAGLE/configuration/eagle-env.sh b/eagle-external/eagle-ambari/lib/EAGLE/configuration/eagle-env.sh
index e69de29..1913bdd 100644
--- a/eagle-external/eagle-ambari/lib/EAGLE/configuration/eagle-env.sh
+++ b/eagle-external/eagle-ambari/lib/EAGLE/configuration/eagle-env.sh
@@ -0,0 +1,15 @@
+# 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.
+
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-external/eagle-ambari/lib/EAGLE/configuration/eagle-service.conf
----------------------------------------------------------------------
diff --git a/eagle-external/eagle-ambari/lib/EAGLE/configuration/eagle-service.conf b/eagle-external/eagle-ambari/lib/EAGLE/configuration/eagle-service.conf
index 9308a2e..cb374bd 100644
--- a/eagle-external/eagle-ambari/lib/EAGLE/configuration/eagle-service.conf
+++ b/eagle-external/eagle-ambari/lib/EAGLE/configuration/eagle-service.conf
@@ -1,3 +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.
+
env=test
eagle.storage.type=hbase
@@ -7,4 +22,4 @@ table.name.prefixed.with.environment=false
### begin hbase configuration
hbase.zookeeper.quorum=127.0.0.1
hbase.zookeeper.property.clientPort=2181
-### end hbase configuration
\ No newline at end of file
+### end hbase configuration
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-security/eagle-metric-collection/src/main/resources/application.conf
----------------------------------------------------------------------
diff --git a/eagle-security/eagle-metric-collection/src/main/resources/application.conf b/eagle-security/eagle-metric-collection/src/main/resources/application.conf
index 9c91744..511345d 100644
--- a/eagle-security/eagle-metric-collection/src/main/resources/application.conf
+++ b/eagle-security/eagle-metric-collection/src/main/resources/application.conf
@@ -1,3 +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.
+
{
"envContextConfig" : {
"env" : "storm",
@@ -37,4 +52,4 @@
"password": "secret"
}
}
-}
\ No newline at end of file
+}
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-security/eagle-security-hive/run_hiveauditlog_topology.sh
----------------------------------------------------------------------
diff --git a/eagle-security/eagle-security-hive/run_hiveauditlog_topology.sh b/eagle-security/eagle-security-hive/run_hiveauditlog_topology.sh
index bf45e18..c0aaf9a 100755
--- a/eagle-security/eagle-security-hive/run_hiveauditlog_topology.sh
+++ b/eagle-security/eagle-security-hive/run_hiveauditlog_topology.sh
@@ -1,2 +1,17 @@
+# 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.
+
export JAVA_HOME=/Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home
-mvn -X exec:java -Dexec.mainClass="eagle.security.hive.HiveAuditLogProcessorMain"
\ No newline at end of file
+mvn -X exec:java -Dexec.mainClass="eagle.security.hive.HiveAuditLogProcessorMain"
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-security/eagle-security-hive/src/assembly/eagle-dam-hiveQueryLog-assembly.xml
----------------------------------------------------------------------
diff --git a/eagle-security/eagle-security-hive/src/assembly/eagle-dam-hiveQueryLog-assembly.xml b/eagle-security/eagle-security-hive/src/assembly/eagle-dam-hiveQueryLog-assembly.xml
index 2f28c79..d5cc285 100644
--- a/eagle-security/eagle-security-hive/src/assembly/eagle-dam-hiveQueryLog-assembly.xml
+++ b/eagle-security/eagle-security-hive/src/assembly/eagle-dam-hiveQueryLog-assembly.xml
@@ -1,3 +1,19 @@
+<!--
+ 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.
+-->
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-security/eagle-security-hive/src/main/resources/alert-metadata-create-jobhistory.sh
----------------------------------------------------------------------
diff --git a/eagle-security/eagle-security-hive/src/main/resources/alert-metadata-create-jobhistory.sh b/eagle-security/eagle-security-hive/src/main/resources/alert-metadata-create-jobhistory.sh
index eed5ef3..d6c3e8e 100644
--- a/eagle-security/eagle-security-hive/src/main/resources/alert-metadata-create-jobhistory.sh
+++ b/eagle-security/eagle-security-hive/src/main/resources/alert-metadata-create-jobhistory.sh
@@ -1,4 +1,19 @@
#!/bin/sh
+# 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.
+
#### AlertStreamService: alert streams generated from data source
curl -X POST -H 'Content-Type:application/json' "http://localhost:38080/eagle-service/rest/entities?serviceName=AlertStreamService" -d '[{"prefix":"alertStream","tags":{"dataSource":"hiveQueryLog","streamName":"hiveAccessLogStream"},"desc":"alert event stream from hive query"}]'
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-security/eagle-security-hive/src/main/resources/create-hiveResourceSensitivity-metadata.sh
----------------------------------------------------------------------
diff --git a/eagle-security/eagle-security-hive/src/main/resources/create-hiveResourceSensitivity-metadata.sh b/eagle-security/eagle-security-hive/src/main/resources/create-hiveResourceSensitivity-metadata.sh
index 02f0137..ffa6a44 100644
--- a/eagle-security/eagle-security-hive/src/main/resources/create-hiveResourceSensitivity-metadata.sh
+++ b/eagle-security/eagle-security-hive/src/main/resources/create-hiveResourceSensitivity-metadata.sh
@@ -1,3 +1,18 @@
#!/bin/sh
+# 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.
+
#### HiveResourceSensitivityService
-curl -X POST -H 'Content-Type:application/json' "http://localhost:38080/eagle-service/rest/entities?serviceName=HiveResourceSensitivityService" -d '[{"prefix":"hiveResourceSensitivity","tags":{"hiveResource":"xademo.customer_details.phone_number"},"sensitivityType":"PHONE_NUMBER"}]'
\ No newline at end of file
+curl -X POST -H 'Content-Type:application/json' "http://localhost:38080/eagle-service/rest/entities?serviceName=HiveResourceSensitivityService" -d '[{"prefix":"hiveResourceSensitivity","tags":{"hiveResource":"xademo.customer_details.phone_number"},"sensitivityType":"PHONE_NUMBER"}]'
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-security/eagle-security-hive/src/main/resources/hive.storm.yaml
----------------------------------------------------------------------
diff --git a/eagle-security/eagle-security-hive/src/main/resources/hive.storm.yaml b/eagle-security/eagle-security-hive/src/main/resources/hive.storm.yaml
index 80aa1fc..d9af60f 100644
--- a/eagle-security/eagle-security-hive/src/main/resources/hive.storm.yaml
+++ b/eagle-security/eagle-security-hive/src/main/resources/hive.storm.yaml
@@ -1 +1,16 @@
+# 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.
+
topology.workers: 3
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-security/eagle-security-hive/src/main/resources/sample-data-create.script
----------------------------------------------------------------------
diff --git a/eagle-security/eagle-security-hive/src/main/resources/sample-data-create.script b/eagle-security/eagle-security-hive/src/main/resources/sample-data-create.script
index ba5b0cc..f3a1e83 100644
--- a/eagle-security/eagle-security-hive/src/main/resources/sample-data-create.script
+++ b/eagle-security/eagle-security-hive/src/main/resources/sample-data-create.script
@@ -1,3 +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.
+
##### create table: hive resource sensitivity metadata to define what type of sensitivity one hive resource contains
create 'hiveResourceSensitivity', {NAME => 'f', VERSIONS => '3', BLOOMFILTER => 'ROW', COMPRESSION => 'SNAPPY'}
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-security/eagle-security-hive/src/main/resources/sample-hive-policy.sh
----------------------------------------------------------------------
diff --git a/eagle-security/eagle-security-hive/src/main/resources/sample-hive-policy.sh b/eagle-security/eagle-security-hive/src/main/resources/sample-hive-policy.sh
index fe9c538..2d104b4 100644
--- a/eagle-security/eagle-security-hive/src/main/resources/sample-hive-policy.sh
+++ b/eagle-security/eagle-security-hive/src/main/resources/sample-hive-policy.sh
@@ -1,3 +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.
+
#curl -X POST -H 'Content-Type:application/json' "http://localhost:9099/eagle-service/rest/entities?serviceName=AlertDefinitionService" -d '[{"tags":{"site":"sandbox","dataSource":"hiveQueryLogFromRunningJob","policyId":"accessSensitiveResource","alertExecutorId":"hiveAccessAlertByJobHistory","policyType":"siddhiCEPEngine"},"desc":"alert when some users access sensitive hive resource","policyDef":"{\"type\":\"siddhiCEPEngine\",\"expression\":\"from hiveAccessLogStream[user=='userxyz' and sensitivityType=='PHONE_NUMBER'] select user,timestamp,resource,sensitivityType insert into outputStream ;\"}","dedupeDef":"","notificationDef":"","remediationDef":"","enabled":true}]'
#curl -X POST -H 'Content-Type:application/json' "http://localhost:9099/eagle-service/rest/entities?serviceName=AlertDefinitionService" -d '[{"tags":{"site":"sandbox","dataSource":"hiveQueryLog","policyId":"accessSensitiveResource","alertExecutorId":"hiveAccessAlertByRunningJob","policyType":"siddhiCEPEngine"},"desc":"alert when some users access sensitive hive resource","policyDef":"{\"type\":\"siddhiCEPEngine\",\"expression\":\"from hiveAccessLogStream[sensitivityType=='\'PHONE_NUMBER\''] select user,timestamp,resource,sensitivityType insert into outputStream ;\"}","dedupeDef":"","notificationDef":"","remediationDef":"","enabled":true}]'
-curl -X POST -H 'Content-Type:application/json' "http://localhost:9099/eagle-service/rest/entities?serviceName=AlertDefinitionService" -d '[{"tags":{"site":"sandbox","dataSource":"hiveQueryLog","policyId":"accessSensitiveResource","alertExecutorId":"hiveAccessAlertByRunningJob","policyType":"siddhiCEPEngine"},"desc":"alert when some users access sensitive hive resource","policyDef":"{\"type\":\"siddhiCEPEngine\",\"expression\":\"from hiveAccessLogStream[user=='\'userxyz\'' and sensitivityType=='\'PHONE_NUMBER\''] select user,timestamp,resource,sensitivityType insert into outputStream ;\"}","dedupeDef":"","notificationDef":"","remediationDef":"","enabled":true}]'
\ No newline at end of file
+curl -X POST -H 'Content-Type:application/json' "http://localhost:9099/eagle-service/rest/entities?serviceName=AlertDefinitionService" -d '[{"tags":{"site":"sandbox","dataSource":"hiveQueryLog","policyId":"accessSensitiveResource","alertExecutorId":"hiveAccessAlertByRunningJob","policyType":"siddhiCEPEngine"},"desc":"alert when some users access sensitive hive resource","policyDef":"{\"type\":\"siddhiCEPEngine\",\"expression\":\"from hiveAccessLogStream[user=='\'userxyz\'' and sensitivityType=='\'PHONE_NUMBER\''] select user,timestamp,resource,sensitivityType insert into outputStream ;\"}","dedupeDef":"","notificationDef":"","remediationDef":"","enabled":true}]'
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-security/eagle-security-userprofile/detection/dev-supports/prepare-metadata.sh
----------------------------------------------------------------------
diff --git a/eagle-security/eagle-security-userprofile/detection/dev-supports/prepare-metadata.sh b/eagle-security/eagle-security-userprofile/detection/dev-supports/prepare-metadata.sh
index 95128ee..5b1891a 100755
--- a/eagle-security/eagle-security-userprofile/detection/dev-supports/prepare-metadata.sh
+++ b/eagle-security/eagle-security-userprofile/detection/dev-supports/prepare-metadata.sh
@@ -1,5 +1,21 @@
#!/usr/bin/env bash
+# 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.
+
+
export SERVICE_HOST="localhost"
export SERVICE_PORT=9099
@@ -26,4 +42,4 @@ result=$(curl -XPOST -H "Content-Type: application/json" \
"http://$SERVICE_HOST:$SERVICE_PORT/eagle-service/rest/entities?serviceName=AlertStreamService" \
-d '[ { "prefix": "alertStream", "tags": { "streamName": "userActivity", "site":"sandbox", "dataSource":"userProfile" }, "alertExecutorIdList": [ "userProfileAnomalyDetectionExecutor" ] } ]' 2>/dev/null)
-echo "=> $result"
\ No newline at end of file
+echo "=> $result"
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-security/eagle-security-userprofile/detection/dev-supports/prepare-table.sh
----------------------------------------------------------------------
diff --git a/eagle-security/eagle-security-userprofile/detection/dev-supports/prepare-table.sh b/eagle-security/eagle-security-userprofile/detection/dev-supports/prepare-table.sh
index 319d50d..862f836 100644
--- a/eagle-security/eagle-security-userprofile/detection/dev-supports/prepare-table.sh
+++ b/eagle-security/eagle-security-userprofile/detection/dev-supports/prepare-table.sh
@@ -1,5 +1,20 @@
#!/usr/bin/env bash
+# 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.
+
create 'alertStreamSchema', {NAME => 'f', BLOOMFILTER => 'ROW', VERSIONS => '1', COMPRESSION => 'SNAPPY'}
create 'mlmodel', {NAME => 'f', BLOOMFILTER => 'ROW', VERSIONS => '1', COMPRESSION => 'SNAPPY'}
create 'eagle_metric', {NAME => 'f', BLOOMFILTER => 'ROW', VERSIONS => '1', COMPRESSION => 'SNAPPY'}
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-security/eagle-security-userprofile/detection/dev-supports/produce-useractivity-with-spark.sh
----------------------------------------------------------------------
diff --git a/eagle-security/eagle-security-userprofile/detection/dev-supports/produce-useractivity-with-spark.sh b/eagle-security/eagle-security-userprofile/detection/dev-supports/produce-useractivity-with-spark.sh
index 81e6d2f..fbc540d 100644
--- a/eagle-security/eagle-security-userprofile/detection/dev-supports/produce-useractivity-with-spark.sh
+++ b/eagle-security/eagle-security-userprofile/detection/dev-supports/produce-useractivity-with-spark.sh
@@ -1,3 +1,18 @@
#!/usr/bin/env bash
-spark-submit --master yarn-cluster --deploy-mode cluster --class eagle.security.userprofile.UserProfileTrainingCLI eagle-security-userprofile-training-0.1.0-assembly.jar --master yarn-cluster --period PT1M --input /tmp/auditlog/* --kafka-props topic=sandbox_hdfs_audit_agg,metadata.broker.list=sandbox.hortonworks.com:6667
\ No newline at end of file
+# 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.
+
+spark-submit --master yarn-cluster --deploy-mode cluster --class eagle.security.userprofile.UserProfileTrainingCLI eagle-security-userprofile-training-0.1.0-assembly.jar --master yarn-cluster --period PT1M --input /tmp/auditlog/* --kafka-props topic=sandbox_hdfs_audit_agg,metadata.broker.list=sandbox.hortonworks.com:6667
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-security/eagle-security-userprofile/detection/dev-supports/produce-useractivity.sh
----------------------------------------------------------------------
diff --git a/eagle-security/eagle-security-userprofile/detection/dev-supports/produce-useractivity.sh b/eagle-security/eagle-security-userprofile/detection/dev-supports/produce-useractivity.sh
index 08f31d7..6d4f0b1 100644
--- a/eagle-security/eagle-security-userprofile/detection/dev-supports/produce-useractivity.sh
+++ b/eagle-security/eagle-security-userprofile/detection/dev-supports/produce-useractivity.sh
@@ -1,3 +1,18 @@
#!/usr/bin/env bash
+# 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.
+
/usr/hdp/current/kafka-broker/bin/kafka-console-producer.sh --broker-list sandbox.hortonworks.com:6667 --topic sandbox_hdfs_audit_agg
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-security/eagle-security-userprofile/detection/run_onlineprediction_topology.sh
----------------------------------------------------------------------
diff --git a/eagle-security/eagle-security-userprofile/detection/run_onlineprediction_topology.sh b/eagle-security/eagle-security-userprofile/detection/run_onlineprediction_topology.sh
index 1bf38dd..43f44ae 100755
--- a/eagle-security/eagle-security-userprofile/detection/run_onlineprediction_topology.sh
+++ b/eagle-security/eagle-security-userprofile/detection/run_onlineprediction_topology.sh
@@ -1,3 +1,19 @@
#!/usr/bin/env bash
+
+# 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.
+
export JAVA_HOME=$(/usr/libexec/java_home -v 1.6)
mvn -X exec:java -Dexec.mainClass="eagle.security.userprofile.UserProfileDetectionAnomalyRunner"
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-security/eagle-security-userprofile/detection/src/main/java/org/apache/eagle/security/userprofile/UserProfileDetectionMain.java
----------------------------------------------------------------------
diff --git a/eagle-security/eagle-security-userprofile/detection/src/main/java/org/apache/eagle/security/userprofile/UserProfileDetectionMain.java b/eagle-security/eagle-security-userprofile/detection/src/main/java/org/apache/eagle/security/userprofile/UserProfileDetectionMain.java
index e24bd6d..61449d2 100644
--- a/eagle-security/eagle-security-userprofile/detection/src/main/java/org/apache/eagle/security/userprofile/UserProfileDetectionMain.java
+++ b/eagle-security/eagle-security-userprofile/detection/src/main/java/org/apache/eagle/security/userprofile/UserProfileDetectionMain.java
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ *
+ */
package org.apache.eagle.security.userprofile;
import com.typesafe.config.Config;
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-security/eagle-security-userprofile/detection/src/main/resources/userprofile.storm.yaml
----------------------------------------------------------------------
diff --git a/eagle-security/eagle-security-userprofile/detection/src/main/resources/userprofile.storm.yaml b/eagle-security/eagle-security-userprofile/detection/src/main/resources/userprofile.storm.yaml
index 232ef4c..274aa2c 100644
--- a/eagle-security/eagle-security-userprofile/detection/src/main/resources/userprofile.storm.yaml
+++ b/eagle-security/eagle-security-userprofile/detection/src/main/resources/userprofile.storm.yaml
@@ -1,3 +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.
+#
### topology.* configs are for specific executing storms
topology.enable.message.timeouts: true
topology.debug: false
@@ -11,4 +26,4 @@ topology.transfer.buffer.size: 1024
topology.executor.receive.buffer.size: 16384
topology.executor.send.buffer.size: 16384
storm.zookeeper.session.timeout: 600000
-storm.zookeeper.connection.timeout: 90000
\ No newline at end of file
+storm.zookeeper.connection.timeout: 90000
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-security/eagle-security-userprofile/detection/src/test/java/org/apache/eagle/security/userprofile/TestUserActivityAggregator.java
----------------------------------------------------------------------
diff --git a/eagle-security/eagle-security-userprofile/detection/src/test/java/org/apache/eagle/security/userprofile/TestUserActivityAggregator.java b/eagle-security/eagle-security-userprofile/detection/src/test/java/org/apache/eagle/security/userprofile/TestUserActivityAggregator.java
index 457d975..ea55334 100644
--- a/eagle-security/eagle-security-userprofile/detection/src/test/java/org/apache/eagle/security/userprofile/TestUserActivityAggregator.java
+++ b/eagle-security/eagle-security-userprofile/detection/src/test/java/org/apache/eagle/security/userprofile/TestUserActivityAggregator.java
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ *
+ */
package org.apache.eagle.security.userprofile;
import org.apache.eagle.common.DateTimeUtil;
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-security/eagle-security-userprofile/detection/src/test/java/org/apache/eagle/security/userprofile/TestUserProfileAnomalyEigenEvaluator.java
----------------------------------------------------------------------
diff --git a/eagle-security/eagle-security-userprofile/detection/src/test/java/org/apache/eagle/security/userprofile/TestUserProfileAnomalyEigenEvaluator.java b/eagle-security/eagle-security-userprofile/detection/src/test/java/org/apache/eagle/security/userprofile/TestUserProfileAnomalyEigenEvaluator.java
index 7863b35..85ad8f6 100644
--- a/eagle-security/eagle-security-userprofile/detection/src/test/java/org/apache/eagle/security/userprofile/TestUserProfileAnomalyEigenEvaluator.java
+++ b/eagle-security/eagle-security-userprofile/detection/src/test/java/org/apache/eagle/security/userprofile/TestUserProfileAnomalyEigenEvaluator.java
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ *
+ */
package org.apache.eagle.security.userprofile;
import org.apache.eagle.ml.model.MLCallbackResult;
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-security/eagle-security-userprofile/training/src/main/java/org/apache/eagle/security/userprofile/model/JavaUserProfileModeler.java
----------------------------------------------------------------------
diff --git a/eagle-security/eagle-security-userprofile/training/src/main/java/org/apache/eagle/security/userprofile/model/JavaUserProfileModeler.java b/eagle-security/eagle-security-userprofile/training/src/main/java/org/apache/eagle/security/userprofile/model/JavaUserProfileModeler.java
index da358fe..73a8ff9 100644
--- a/eagle-security/eagle-security-userprofile/training/src/main/java/org/apache/eagle/security/userprofile/model/JavaUserProfileModeler.java
+++ b/eagle-security/eagle-security-userprofile/training/src/main/java/org/apache/eagle/security/userprofile/model/JavaUserProfileModeler.java
@@ -1,3 +1,23 @@
+/*
+ *
+ * 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.
+ *
+ */
package org.apache.eagle.security.userprofile.model;
import org.apache.commons.math3.linear.RealMatrix;
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-security/eagle-security-userprofile/training/src/main/resources/reference.conf
----------------------------------------------------------------------
diff --git a/eagle-security/eagle-security-userprofile/training/src/main/resources/reference.conf b/eagle-security/eagle-security-userprofile/training/src/main/resources/reference.conf
index 0dbd4f3..c57f4a1 100644
--- a/eagle-security/eagle-security-userprofile/training/src/main/resources/reference.conf
+++ b/eagle-security/eagle-security-userprofile/training/src/main/resources/reference.conf
@@ -1,3 +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.
+
akka {
# Loggers to register at boot time (akka.event.Logging$DefaultLogger logs
@@ -17,4 +32,4 @@ akka {
# Filter of log events that is used by the LoggingAdapter before
# publishing log events to the eventStream.
logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"
-}
\ No newline at end of file
+}
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/eagle-security/eagle-security-userprofile/training/src/main/sbin/submit-userprofile-training.sh
----------------------------------------------------------------------
diff --git a/eagle-security/eagle-security-userprofile/training/src/main/sbin/submit-userprofile-training.sh b/eagle-security/eagle-security-userprofile/training/src/main/sbin/submit-userprofile-training.sh
index 10dec22..6d84357 100644
--- a/eagle-security/eagle-security-userprofile/training/src/main/sbin/submit-userprofile-training.sh
+++ b/eagle-security/eagle-security-userprofile/training/src/main/sbin/submit-userprofile-training.sh
@@ -1,5 +1,20 @@
#!/usr/bin/env bash
+# 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.
+
cd $(dirname $0)/../
./bin/submit-userprofile-training.sh --master yarn-cluster \
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/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 db8563f..e15e77d 100644
--- a/eagle-topology-assembly/src/assembly/eagle-topology-assembly.xml
+++ b/eagle-topology-assembly/src/assembly/eagle-topology-assembly.xml
@@ -1,3 +1,20 @@
+<!--
+ 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.
+-->
+
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
@@ -47,4 +64,4 @@
</includes>
</fileSet>
</fileSets>
-</assembly>
\ No newline at end of file
+</assembly>
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/dd26aa43/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 6fd0dda..7387f3c 100755
--- a/pom.xml
+++ b/pom.xml
@@ -853,6 +853,71 @@
</plugin>
</plugins>
</pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.rat</groupId>
+ <artifactId>apache-rat-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>header-check</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <configuration>
+ <excludes>
+ <!-- Git specific files -->
+ <exclude>.git/</exclude>
+ <exclude>.java-version</exclude>
+ <exclude>.gitignore</exclude>
+ <!-- IDE specific files-->
+ <exclude>**/.idea/</exclude>
+ <exclude>**/.scalastyle/</exclude>
+ <exclude>**/*.iml</exclude>
+ <exclude>**/nb-configuration.xml</exclude>
+ <exclude>**/.classpath</exclude>
+ <exclude>**/.settings/**</exclude>
+ <exclude>**/.project</exclude>
+ <exclude>**/.metadata/</exclude>
+ <!-- Maven working directory -->
+ <exclude>**/target/**</exclude>
+ <!-- Patch files which can be lying around -->
+ <exclude>**/*.patch</exclude>
+ <exclude>**/*.rej</exclude>
+ <!-- Exclude generated files -->
+ <exclude>**/gen/**</exclude>
+ <!-- README and test data with exact format -->
+ <exclude>README*</exclude>
+ <exclude>**/*.log</exclude>
+ <exclude>**/eagle.log*</exclude>
+ <exclude>**/resources/**/*.json</exclude>
+ <exclude>**/test/resources/securityAuditLog</exclude>
+ <exclude>**/resources/**/ml-policyDef-UserProfile.txt</exclude>
+ <exclude>**/test/resources/onelinehiveauditlog.txt</exclude>
+ <exclude>**/test/resources/ranger-policy-update-request.txt</exclude>
+ <exclude>**/dev-supports/**/*.json</exclude>
+ <exclude>**/dev-supports/**/useractivity-agg-json.txt</exclude>
+ <exclude>**/conf/sandbox-userprofile-topology.conf</exclude>
+ <!-- Fonts and Images -->
+ <exclude>**/fonts/**</exclude>
+ <exclude>**/images/**</exclude>
+ <exclude>**/lib/js/**</exclude>
+ <exclude>**/lib/css/**</exclude>
+ <exclude>**/*.min.js</exclude>
+ <exclude>**/jquery-*.js</exclude>
+ <exclude>**/MANIFEST.MF</exclude>
+ <!-- External dependency script -->
+ <exclude>**/resource/serf/etc/ambari.json</exclude>
+
+ <!-- TODO: fix it -->
+ <exclude>**/webapp/**</exclude>
+
+ </excludes>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
</build>
<repositories>
<repository>