You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hugegraph.apache.org by ji...@apache.org on 2022/11/22 14:07:47 UTC

[incubator-hugegraph-computer] branch master updated: chore: support check license header with RAT (#191)

This is an automated email from the ASF dual-hosted git repository.

jin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph-computer.git


The following commit(s) were added to refs/heads/master by this push:
     new a658f3d2 chore: support check license header with RAT (#191)
a658f3d2 is described below

commit a658f3d26395b154046c27ff6b5beec42d5b2bdd
Author: 青年 <10...@qq.com>
AuthorDate: Tue Nov 22 22:07:42 2022 +0800

    chore: support check license header with RAT (#191)
    
    * support check license header with RAT
    
    * remove duplicate item
    
    * support check license header with RAT v2
    
    * support check license header with RAT v3
    
    * Update .travis.yml
    
    Co-authored-by: imbajin <ji...@apache.org>
    Co-authored-by: Cong Zhao <zh...@apache.org>
---
 checkstyle.xml                                      | 16 ++++++++++++++++
 computer-algorithm/Dockerfile                       | 16 ++++++++++++++++
 computer-algorithm/pom.xml                          | 16 ++++++++++++++++
 computer-api/pom.xml                                | 16 ++++++++++++++++
 computer-core/pom.xml                               | 16 ++++++++++++++++
 .../computer/core/combiner/PointerCombiner.java     | 19 ++++++++++++++++++-
 .../core/network/netty/AbstractNettyHandler.java    | 18 ++++++++++++++++++
 .../computer/core/sort/sorting/InputsSorting.java   | 18 ++++++++++++++++++
 .../computer/core/store/KvEntryFileReader.java      | 18 ++++++++++++++++++
 .../core/store/file/select/InputFilesSelector.java  | 18 ++++++++++++++++++
 .../hugegraph/computer/core/util/ShutdownHook.java  | 18 ++++++++++++++++++
 computer-core/src/main/resources/log4j2.xml         | 15 +++++++++++++++
 computer-dist/Dockerfile                            | 16 ++++++++++++++++
 computer-dist/pom.xml                               | 16 ++++++++++++++++
 .../src/assembly/dataset/load-movie-data.groovy     | 18 ++++++++++++++++++
 computer-dist/src/assembly/dataset/schema.groovy    | 18 ++++++++++++++++++
 computer-dist/src/assembly/descriptor/assembly.xml  | 16 ++++++++++++++++
 .../src/assembly/static/bin/start-computer.sh       | 16 ++++++++++++++++
 computer-dist/src/assembly/travis/build-images.sh   | 17 ++++++++++++++++-
 computer-dist/src/assembly/travis/install-env.sh    | 17 ++++++++++++++++-
 computer-dist/src/assembly/travis/install-hdfs.sh   | 17 ++++++++++++++++-
 .../travis/install-hugegraph-from-source.sh         | 17 ++++++++++++++++-
 computer-dist/src/assembly/travis/install-k8s.sh    | 17 ++++++++++++++++-
 .../src/assembly/travis/load-data-into-hugegraph.sh | 16 ++++++++++++++++
 computer-dist/src/assembly/travis/start-etcd.sh     | 17 ++++++++++++++++-
 computer-driver/pom.xml                             | 16 ++++++++++++++++
 computer-k8s-operator/Dockerfile                    | 16 ++++++++++++++++
 computer-k8s-operator/crd-generate/Makefile         | 16 ++++++++++++++++
 .../crd-generate/config/crd/kustomization.yaml      | 16 ++++++++++++++++
 .../crd-generate/config/crd/kustomizeconfig.yaml    | 16 ++++++++++++++++
 .../crd-generate/config/default/kustomization.yaml  | 16 ++++++++++++++++
 .../config/default/manager_auth_proxy_patch.yaml    | 16 ++++++++++++++++
 .../crd-generate/config/etcd/etcd_server.yaml       | 16 ++++++++++++++++
 .../crd-generate/config/etcd/kustomization.yaml     | 16 ++++++++++++++++
 .../crd-generate/config/manager/kustomization.yaml  | 16 ++++++++++++++++
 .../crd-generate/config/manager/manager.yaml        | 16 ++++++++++++++++
 .../config/prometheus/kustomization.yaml            | 16 ++++++++++++++++
 .../crd-generate/config/prometheus/monitor.yaml     | 17 ++++++++++++++++-
 .../crd-generate/config/rbac/kustomization.yaml     | 16 ++++++++++++++++
 .../config/rbac/leader_election_role.yaml           | 16 ++++++++++++++++
 .../config/rbac/leader_election_role_binding.yaml   | 16 ++++++++++++++++
 .../crd-generate/config/rbac/role.yaml              | 17 ++++++++++++++++-
 .../crd-generate/config/rbac/role_binding.yaml      | 16 ++++++++++++++++
 .../crd-generate/config/rbac/service_account.yaml   | 16 ++++++++++++++++
 .../manifest/hugegraph-computer-crd.v1.yaml         | 17 ++++++++++++++++-
 .../manifest/hugegraph-computer-crd.v1beta1.yaml    | 17 ++++++++++++++++-
 .../manifest/hugegraph-computer-operator.yaml       | 16 ++++++++++++++++
 computer-k8s-operator/pom.xml                       | 16 ++++++++++++++++
 computer-k8s-operator/src/main/resources/log4j2.xml | 15 +++++++++++++++
 computer-k8s/pom.xml                                | 16 ++++++++++++++++
 computer-k8s/src/main/resources/docker_push.sh      | 17 ++++++++++++++++-
 computer-test/conf/images/docker_push_test.sh       | 17 ++++++++++++++++-
 computer-test/conf/log4j2-test.xml                  | 16 ++++++++++++++++
 computer-test/pom.xml                               | 16 ++++++++++++++++
 .../computer/dist/ComputerDistTestSuite.java        | 18 ++++++++++++++++++
 .../computer/dist/HugeGraphComputerTest.java        | 18 ++++++++++++++++++
 .../main/resources/hdfs_input_test/core-site.xml    | 16 ++++++++++++++++
 computer-yarn/pom.xml                               | 16 ++++++++++++++++
 pom.xml                                             | 21 +++++++++++++++++++++
 59 files changed, 967 insertions(+), 13 deletions(-)

diff --git a/checkstyle.xml b/checkstyle.xml
index b954412f..ae62eec2 100644
--- a/checkstyle.xml
+++ b/checkstyle.xml
@@ -1,4 +1,20 @@
 <?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.
+  -->
 <!DOCTYPE module PUBLIC
         "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
         "https://checkstyle.org/dtds/configuration_1_3.dtd">
diff --git a/computer-algorithm/Dockerfile b/computer-algorithm/Dockerfile
index f5ee0b1f..26c04aef 100644
--- a/computer-algorithm/Dockerfile
+++ b/computer-algorithm/Dockerfile
@@ -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.
+#
 FROM hugegraph/hugegraph-computer-framework:latest
 
 LABEL maintainer="HugeGraph Docker Maintainers <hu...@googlegroups.com>"
diff --git a/computer-algorithm/pom.xml b/computer-algorithm/pom.xml
index 4b6781ef..6cf9b137 100644
--- a/computer-algorithm/pom.xml
+++ b/computer-algorithm/pom.xml
@@ -1,4 +1,20 @@
 <?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 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">
diff --git a/computer-api/pom.xml b/computer-api/pom.xml
index 19f6311e..8bf362d1 100644
--- a/computer-api/pom.xml
+++ b/computer-api/pom.xml
@@ -1,4 +1,20 @@
 <?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 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">
diff --git a/computer-core/pom.xml b/computer-core/pom.xml
index 147c6a6e..a14dd02a 100644
--- a/computer-core/pom.xml
+++ b/computer-core/pom.xml
@@ -1,4 +1,20 @@
 <?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 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">
diff --git a/computer-core/src/main/java/com/baidu/hugegraph/computer/core/combiner/PointerCombiner.java b/computer-core/src/main/java/com/baidu/hugegraph/computer/core/combiner/PointerCombiner.java
index 6fdf9ea9..ff6ed56c 100644
--- a/computer-core/src/main/java/com/baidu/hugegraph/computer/core/combiner/PointerCombiner.java
+++ b/computer-core/src/main/java/com/baidu/hugegraph/computer/core/combiner/PointerCombiner.java
@@ -1,5 +1,22 @@
 package com.baidu.hugegraph.computer.core.combiner;
-
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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.
+ */
 import com.baidu.hugegraph.computer.core.store.entry.Pointer;
 
 public interface PointerCombiner {
diff --git a/computer-core/src/main/java/com/baidu/hugegraph/computer/core/network/netty/AbstractNettyHandler.java b/computer-core/src/main/java/com/baidu/hugegraph/computer/core/network/netty/AbstractNettyHandler.java
index ae8fb44d..e17149c9 100644
--- a/computer-core/src/main/java/com/baidu/hugegraph/computer/core/network/netty/AbstractNettyHandler.java
+++ b/computer-core/src/main/java/com/baidu/hugegraph/computer/core/network/netty/AbstractNettyHandler.java
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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 com.baidu.hugegraph.computer.core.network.netty;
 
 import org.slf4j.Logger;
diff --git a/computer-core/src/main/java/com/baidu/hugegraph/computer/core/sort/sorting/InputsSorting.java b/computer-core/src/main/java/com/baidu/hugegraph/computer/core/sort/sorting/InputsSorting.java
index 820379da..6741104f 100644
--- a/computer-core/src/main/java/com/baidu/hugegraph/computer/core/sort/sorting/InputsSorting.java
+++ b/computer-core/src/main/java/com/baidu/hugegraph/computer/core/sort/sorting/InputsSorting.java
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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 com.baidu.hugegraph.computer.core.sort.sorting;
 
 import java.util.Iterator;
diff --git a/computer-core/src/main/java/com/baidu/hugegraph/computer/core/store/KvEntryFileReader.java b/computer-core/src/main/java/com/baidu/hugegraph/computer/core/store/KvEntryFileReader.java
index 526073e2..c81a62a1 100644
--- a/computer-core/src/main/java/com/baidu/hugegraph/computer/core/store/KvEntryFileReader.java
+++ b/computer-core/src/main/java/com/baidu/hugegraph/computer/core/store/KvEntryFileReader.java
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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 com.baidu.hugegraph.computer.core.store;
 
 public interface KvEntryFileReader {
diff --git a/computer-core/src/main/java/com/baidu/hugegraph/computer/core/store/file/select/InputFilesSelector.java b/computer-core/src/main/java/com/baidu/hugegraph/computer/core/store/file/select/InputFilesSelector.java
index ebff19f8..9d6b85a1 100644
--- a/computer-core/src/main/java/com/baidu/hugegraph/computer/core/store/file/select/InputFilesSelector.java
+++ b/computer-core/src/main/java/com/baidu/hugegraph/computer/core/store/file/select/InputFilesSelector.java
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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 com.baidu.hugegraph.computer.core.store.file.select;
 
 import java.io.IOException;
diff --git a/computer-core/src/main/java/com/baidu/hugegraph/computer/core/util/ShutdownHook.java b/computer-core/src/main/java/com/baidu/hugegraph/computer/core/util/ShutdownHook.java
index ab10a973..a31f5355 100644
--- a/computer-core/src/main/java/com/baidu/hugegraph/computer/core/util/ShutdownHook.java
+++ b/computer-core/src/main/java/com/baidu/hugegraph/computer/core/util/ShutdownHook.java
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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 com.baidu.hugegraph.computer.core.util;
 
 import java.io.Closeable;
diff --git a/computer-core/src/main/resources/log4j2.xml b/computer-core/src/main/resources/log4j2.xml
index 90d51e45..91f2ca8a 100644
--- a/computer-core/src/main/resources/log4j2.xml
+++ b/computer-core/src/main/resources/log4j2.xml
@@ -1,5 +1,20 @@
 <?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.
+  -->
 <!-- Config will be auto loaded every 60s -->
 <configuration status="error" monitorInterval="60">
     <properties>
diff --git a/computer-dist/Dockerfile b/computer-dist/Dockerfile
index 74af7ce8..6ab4d462 100644
--- a/computer-dist/Dockerfile
+++ b/computer-dist/Dockerfile
@@ -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.
+#
 FROM openjdk:11-jre
 LABEL maintainer="HugeGraph Docker Maintainers <hu...@googlegroups.com>"
 # use ParallelGC which is more friendly to olap system
diff --git a/computer-dist/pom.xml b/computer-dist/pom.xml
index bea42c22..e570fd9a 100644
--- a/computer-dist/pom.xml
+++ b/computer-dist/pom.xml
@@ -1,4 +1,20 @@
 <?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 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">
diff --git a/computer-dist/src/assembly/dataset/load-movie-data.groovy b/computer-dist/src/assembly/dataset/load-movie-data.groovy
index 5e59ab0b..40a8ae32 100644
--- a/computer-dist/src/assembly/dataset/load-movie-data.groovy
+++ b/computer-dist/src/assembly/dataset/load-movie-data.groovy
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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.
+ */
 // This script unused
 schema = graph.schema();
 
diff --git a/computer-dist/src/assembly/dataset/schema.groovy b/computer-dist/src/assembly/dataset/schema.groovy
index fd158792..139802ba 100644
--- a/computer-dist/src/assembly/dataset/schema.groovy
+++ b/computer-dist/src/assembly/dataset/schema.groovy
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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.
+ */
 // Define schema
 schema.propertyKey("id").asInt().ifNotExist().create();
 schema.propertyKey("rate").asDouble().ifNotExist().create();
diff --git a/computer-dist/src/assembly/descriptor/assembly.xml b/computer-dist/src/assembly/descriptor/assembly.xml
index 2298a032..75e4c623 100644
--- a/computer-dist/src/assembly/descriptor/assembly.xml
+++ b/computer-dist/src/assembly/descriptor/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>
     <id>distribution</id>
     <includeBaseDirectory>false</includeBaseDirectory>
diff --git a/computer-dist/src/assembly/static/bin/start-computer.sh b/computer-dist/src/assembly/static/bin/start-computer.sh
index 02c14d48..dcbff4ad 100644
--- a/computer-dist/src/assembly/static/bin/start-computer.sh
+++ b/computer-dist/src/assembly/static/bin/start-computer.sh
@@ -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.
+#
 #!/usr/bin/env bash
 set -e
 BIN_DIR=$(cd "$(dirname "$0")" && pwd -P)
diff --git a/computer-dist/src/assembly/travis/build-images.sh b/computer-dist/src/assembly/travis/build-images.sh
index 356a4b43..e57ca429 100755
--- a/computer-dist/src/assembly/travis/build-images.sh
+++ b/computer-dist/src/assembly/travis/build-images.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.
+#
 set -ev
 
 BASE_DIR=$(cd "$(dirname "$0")" && pwd -P)
diff --git a/computer-dist/src/assembly/travis/install-env.sh b/computer-dist/src/assembly/travis/install-env.sh
index 82170b63..41e33953 100755
--- a/computer-dist/src/assembly/travis/install-env.sh
+++ b/computer-dist/src/assembly/travis/install-env.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.
+#
 set -ev
 
 TRAVIS_DIR=`dirname $0`
diff --git a/computer-dist/src/assembly/travis/install-hdfs.sh b/computer-dist/src/assembly/travis/install-hdfs.sh
index b15719ce..2394c31c 100755
--- a/computer-dist/src/assembly/travis/install-hdfs.sh
+++ b/computer-dist/src/assembly/travis/install-hdfs.sh
@@ -1,5 +1,20 @@
 #!/bin/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.
+#
 set -ev
 
 ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
diff --git a/computer-dist/src/assembly/travis/install-hugegraph-from-source.sh b/computer-dist/src/assembly/travis/install-hugegraph-from-source.sh
index 46261320..cb707506 100755
--- a/computer-dist/src/assembly/travis/install-hugegraph-from-source.sh
+++ b/computer-dist/src/assembly/travis/install-hugegraph-from-source.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.
+#
 set -ev
 
 if [[ $# -ne 1 ]]; then
diff --git a/computer-dist/src/assembly/travis/install-k8s.sh b/computer-dist/src/assembly/travis/install-k8s.sh
index afbcb957..4619fa91 100755
--- a/computer-dist/src/assembly/travis/install-k8s.sh
+++ b/computer-dist/src/assembly/travis/install-k8s.sh
@@ -1,5 +1,20 @@
 #!/bin/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.
+#
 set -ev
 
 curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube
diff --git a/computer-dist/src/assembly/travis/load-data-into-hugegraph.sh b/computer-dist/src/assembly/travis/load-data-into-hugegraph.sh
index 5f21e31e..77f13341 100755
--- a/computer-dist/src/assembly/travis/load-data-into-hugegraph.sh
+++ b/computer-dist/src/assembly/travis/load-data-into-hugegraph.sh
@@ -1,4 +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.
+#
 
 set -ev
 
diff --git a/computer-dist/src/assembly/travis/start-etcd.sh b/computer-dist/src/assembly/travis/start-etcd.sh
index a5742033..54f9d881 100644
--- a/computer-dist/src/assembly/travis/start-etcd.sh
+++ b/computer-dist/src/assembly/travis/start-etcd.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.
+#
 set -ev
 
 TRAVIS_DIR=`dirname $0`
diff --git a/computer-driver/pom.xml b/computer-driver/pom.xml
index ac2fff7b..6abecae4 100644
--- a/computer-driver/pom.xml
+++ b/computer-driver/pom.xml
@@ -1,4 +1,20 @@
 <?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 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">
diff --git a/computer-k8s-operator/Dockerfile b/computer-k8s-operator/Dockerfile
index 49b3fe3c..37172ce2 100644
--- a/computer-k8s-operator/Dockerfile
+++ b/computer-k8s-operator/Dockerfile
@@ -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.
+#
 FROM openjdk:11-jre
 LABEL maintainer="HugeGraph Docker Maintainers <hu...@googlegroups.com>"
 WORKDIR /opt/app
diff --git a/computer-k8s-operator/crd-generate/Makefile b/computer-k8s-operator/crd-generate/Makefile
index 6f59715a..36c57806 100644
--- a/computer-k8s-operator/crd-generate/Makefile
+++ b/computer-k8s-operator/crd-generate/Makefile
@@ -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.
+#
 # Produce CRDs that work back to Kubernetes 1.20 (no version conversion)
 CRD_OPTIONS ?= "crd:trivialVersions=true,preserveUnknownFields=false,crdVersions={v1,v1beta1},maxDescLen=0"
 
diff --git a/computer-k8s-operator/crd-generate/config/crd/kustomization.yaml b/computer-k8s-operator/crd-generate/config/crd/kustomization.yaml
index 8927fa42..674fbfaa 100644
--- a/computer-k8s-operator/crd-generate/config/crd/kustomization.yaml
+++ b/computer-k8s-operator/crd-generate/config/crd/kustomization.yaml
@@ -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.
+#
 # This kustomization.yaml is not intended to be run by itself,
 # since it depends on service name and namespace that are out of this kustomize package.
 # It should be run by config/default
diff --git a/computer-k8s-operator/crd-generate/config/crd/kustomizeconfig.yaml b/computer-k8s-operator/crd-generate/config/crd/kustomizeconfig.yaml
index bcebe047..037007b5 100644
--- a/computer-k8s-operator/crd-generate/config/crd/kustomizeconfig.yaml
+++ b/computer-k8s-operator/crd-generate/config/crd/kustomizeconfig.yaml
@@ -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.
+#
 # This file is for teaching kustomize how to substitute name and namespace reference in CRD
 nameReference:
 - kind: Service
diff --git a/computer-k8s-operator/crd-generate/config/default/kustomization.yaml b/computer-k8s-operator/crd-generate/config/default/kustomization.yaml
index 43ededd9..60fdcd79 100644
--- a/computer-k8s-operator/crd-generate/config/default/kustomization.yaml
+++ b/computer-k8s-operator/crd-generate/config/default/kustomization.yaml
@@ -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.
+#
 # Adds namespace to all resources.
 namespace: hugegraph-computer-operator-system
 
diff --git a/computer-k8s-operator/crd-generate/config/default/manager_auth_proxy_patch.yaml b/computer-k8s-operator/crd-generate/config/default/manager_auth_proxy_patch.yaml
index a224be19..0d7aec97 100644
--- a/computer-k8s-operator/crd-generate/config/default/manager_auth_proxy_patch.yaml
+++ b/computer-k8s-operator/crd-generate/config/default/manager_auth_proxy_patch.yaml
@@ -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.
+#
 # This patch inject a sidecar container which is a HTTP proxy for the
 # controller manager, it performs RBAC authorization against the Kubernetes API using SubjectAccessReviews.
 apiVersion: apps/v1
diff --git a/computer-k8s-operator/crd-generate/config/etcd/etcd_server.yaml b/computer-k8s-operator/crd-generate/config/etcd/etcd_server.yaml
index a4df61cf..9fe4eb48 100644
--- a/computer-k8s-operator/crd-generate/config/etcd/etcd_server.yaml
+++ b/computer-k8s-operator/crd-generate/config/etcd/etcd_server.yaml
@@ -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.
+#
 apiVersion: v1
 kind: Service
 metadata:
diff --git a/computer-k8s-operator/crd-generate/config/etcd/kustomization.yaml b/computer-k8s-operator/crd-generate/config/etcd/kustomization.yaml
index 335469e6..bccc88ee 100644
--- a/computer-k8s-operator/crd-generate/config/etcd/kustomization.yaml
+++ b/computer-k8s-operator/crd-generate/config/etcd/kustomization.yaml
@@ -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.
+#
 resources:
   - etcd_server.yaml
 apiVersion: kustomize.config.k8s.io/v1beta1
diff --git a/computer-k8s-operator/crd-generate/config/manager/kustomization.yaml b/computer-k8s-operator/crd-generate/config/manager/kustomization.yaml
index 156ea9c5..1d3a1781 100644
--- a/computer-k8s-operator/crd-generate/config/manager/kustomization.yaml
+++ b/computer-k8s-operator/crd-generate/config/manager/kustomization.yaml
@@ -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.
+#
 resources:
 - manager.yaml
 apiVersion: kustomize.config.k8s.io/v1beta1
diff --git a/computer-k8s-operator/crd-generate/config/manager/manager.yaml b/computer-k8s-operator/crd-generate/config/manager/manager.yaml
index cdf2b773..4e979760 100644
--- a/computer-k8s-operator/crd-generate/config/manager/manager.yaml
+++ b/computer-k8s-operator/crd-generate/config/manager/manager.yaml
@@ -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.
+#
 apiVersion: v1
 kind: Namespace
 metadata:
diff --git a/computer-k8s-operator/crd-generate/config/prometheus/kustomization.yaml b/computer-k8s-operator/crd-generate/config/prometheus/kustomization.yaml
index ed137168..034a1afb 100644
--- a/computer-k8s-operator/crd-generate/config/prometheus/kustomization.yaml
+++ b/computer-k8s-operator/crd-generate/config/prometheus/kustomization.yaml
@@ -1,2 +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.
+#
 resources:
 - monitor.yaml
diff --git a/computer-k8s-operator/crd-generate/config/prometheus/monitor.yaml b/computer-k8s-operator/crd-generate/config/prometheus/monitor.yaml
index bdfb09ae..623b2630 100644
--- a/computer-k8s-operator/crd-generate/config/prometheus/monitor.yaml
+++ b/computer-k8s-operator/crd-generate/config/prometheus/monitor.yaml
@@ -1,4 +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.
+#
 # Prometheus Monitor Service (Metrics)
 apiVersion: monitoring.coreos.com/v1
 kind: ServiceMonitor
diff --git a/computer-k8s-operator/crd-generate/config/rbac/kustomization.yaml b/computer-k8s-operator/crd-generate/config/rbac/kustomization.yaml
index 68ae0600..02369062 100644
--- a/computer-k8s-operator/crd-generate/config/rbac/kustomization.yaml
+++ b/computer-k8s-operator/crd-generate/config/rbac/kustomization.yaml
@@ -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.
+#
 resources:
 # All RBAC will be applied under this service account in
 # the deployment namespace. You may comment out this resource
diff --git a/computer-k8s-operator/crd-generate/config/rbac/leader_election_role.yaml b/computer-k8s-operator/crd-generate/config/rbac/leader_election_role.yaml
index 4190ec80..1b1ffbde 100644
--- a/computer-k8s-operator/crd-generate/config/rbac/leader_election_role.yaml
+++ b/computer-k8s-operator/crd-generate/config/rbac/leader_election_role.yaml
@@ -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.
+#
 # permissions to do leader election.
 apiVersion: rbac.authorization.k8s.io/v1
 kind: Role
diff --git a/computer-k8s-operator/crd-generate/config/rbac/leader_election_role_binding.yaml b/computer-k8s-operator/crd-generate/config/rbac/leader_election_role_binding.yaml
index 1d1321ed..d1dfb64b 100644
--- a/computer-k8s-operator/crd-generate/config/rbac/leader_election_role_binding.yaml
+++ b/computer-k8s-operator/crd-generate/config/rbac/leader_election_role_binding.yaml
@@ -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.
+#
 apiVersion: rbac.authorization.k8s.io/v1
 kind: RoleBinding
 metadata:
diff --git a/computer-k8s-operator/crd-generate/config/rbac/role.yaml b/computer-k8s-operator/crd-generate/config/rbac/role.yaml
index 9e0a78ca..3dbb24bb 100644
--- a/computer-k8s-operator/crd-generate/config/rbac/role.yaml
+++ b/computer-k8s-operator/crd-generate/config/rbac/role.yaml
@@ -1,4 +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.
+#
 ---
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
diff --git a/computer-k8s-operator/crd-generate/config/rbac/role_binding.yaml b/computer-k8s-operator/crd-generate/config/rbac/role_binding.yaml
index 2070ede4..a285fd3b 100644
--- a/computer-k8s-operator/crd-generate/config/rbac/role_binding.yaml
+++ b/computer-k8s-operator/crd-generate/config/rbac/role_binding.yaml
@@ -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.
+#
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRoleBinding
 metadata:
diff --git a/computer-k8s-operator/crd-generate/config/rbac/service_account.yaml b/computer-k8s-operator/crd-generate/config/rbac/service_account.yaml
index 7cd6025b..f19115dc 100644
--- a/computer-k8s-operator/crd-generate/config/rbac/service_account.yaml
+++ b/computer-k8s-operator/crd-generate/config/rbac/service_account.yaml
@@ -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.
+#
 apiVersion: v1
 kind: ServiceAccount
 metadata:
diff --git a/computer-k8s-operator/manifest/hugegraph-computer-crd.v1.yaml b/computer-k8s-operator/manifest/hugegraph-computer-crd.v1.yaml
index c40236e4..d452aefd 100644
--- a/computer-k8s-operator/manifest/hugegraph-computer-crd.v1.yaml
+++ b/computer-k8s-operator/manifest/hugegraph-computer-crd.v1.yaml
@@ -1,4 +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.
+#
 ---
 apiVersion: apiextensions.k8s.io/v1
 kind: CustomResourceDefinition
diff --git a/computer-k8s-operator/manifest/hugegraph-computer-crd.v1beta1.yaml b/computer-k8s-operator/manifest/hugegraph-computer-crd.v1beta1.yaml
index 42f18007..e3063106 100644
--- a/computer-k8s-operator/manifest/hugegraph-computer-crd.v1beta1.yaml
+++ b/computer-k8s-operator/manifest/hugegraph-computer-crd.v1beta1.yaml
@@ -1,4 +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.
+#
 ---
 apiVersion: apiextensions.k8s.io/v1beta1
 kind: CustomResourceDefinition
diff --git a/computer-k8s-operator/manifest/hugegraph-computer-operator.yaml b/computer-k8s-operator/manifest/hugegraph-computer-operator.yaml
index a41ca218..adb3d6f8 100644
--- a/computer-k8s-operator/manifest/hugegraph-computer-operator.yaml
+++ b/computer-k8s-operator/manifest/hugegraph-computer-operator.yaml
@@ -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.
+#
 apiVersion: v1
 kind: Namespace
 metadata:
diff --git a/computer-k8s-operator/pom.xml b/computer-k8s-operator/pom.xml
index 2d049739..97fdba54 100644
--- a/computer-k8s-operator/pom.xml
+++ b/computer-k8s-operator/pom.xml
@@ -1,4 +1,20 @@
 <?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 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">
diff --git a/computer-k8s-operator/src/main/resources/log4j2.xml b/computer-k8s-operator/src/main/resources/log4j2.xml
index 3d90bb89..eae13c94 100644
--- a/computer-k8s-operator/src/main/resources/log4j2.xml
+++ b/computer-k8s-operator/src/main/resources/log4j2.xml
@@ -1,5 +1,20 @@
 <?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.
+  -->
 <configuration status="error">
     <properties>
         <property name="LOG_PATH">logs</property>
diff --git a/computer-k8s/pom.xml b/computer-k8s/pom.xml
index 59205f59..bc6e94e1 100644
--- a/computer-k8s/pom.xml
+++ b/computer-k8s/pom.xml
@@ -1,4 +1,20 @@
 <?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 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">
diff --git a/computer-k8s/src/main/resources/docker_push.sh b/computer-k8s/src/main/resources/docker_push.sh
index 32464f9f..48163a18 100755
--- a/computer-k8s/src/main/resources/docker_push.sh
+++ b/computer-k8s/src/main/resources/docker_push.sh
@@ -1,5 +1,20 @@
 #!/bin/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.
+#
 set -ev
 
 function print_usage() {
diff --git a/computer-test/conf/images/docker_push_test.sh b/computer-test/conf/images/docker_push_test.sh
index e8084d8f..46078ea1 100644
--- a/computer-test/conf/images/docker_push_test.sh
+++ b/computer-test/conf/images/docker_push_test.sh
@@ -1,5 +1,20 @@
 #!/bin/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.
+#
 set -ev
 
 function print_usage() {
diff --git a/computer-test/conf/log4j2-test.xml b/computer-test/conf/log4j2-test.xml
index d100684b..3b97925d 100644
--- a/computer-test/conf/log4j2-test.xml
+++ b/computer-test/conf/log4j2-test.xml
@@ -1,4 +1,20 @@
 <?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.
+  -->
 <configuration status="error">
     <appenders>
         <Console name="console" target="SYSTEM_OUT">
diff --git a/computer-test/pom.xml b/computer-test/pom.xml
index 155b0973..e90fdf9d 100644
--- a/computer-test/pom.xml
+++ b/computer-test/pom.xml
@@ -1,4 +1,20 @@
 <?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 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">
diff --git a/computer-test/src/main/java/com/baidu/hugegraph/computer/dist/ComputerDistTestSuite.java b/computer-test/src/main/java/com/baidu/hugegraph/computer/dist/ComputerDistTestSuite.java
index 57ee0ea3..b971ffe1 100644
--- a/computer-test/src/main/java/com/baidu/hugegraph/computer/dist/ComputerDistTestSuite.java
+++ b/computer-test/src/main/java/com/baidu/hugegraph/computer/dist/ComputerDistTestSuite.java
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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 com.baidu.hugegraph.computer.dist;
 
 import org.junit.runner.RunWith;
diff --git a/computer-test/src/main/java/com/baidu/hugegraph/computer/dist/HugeGraphComputerTest.java b/computer-test/src/main/java/com/baidu/hugegraph/computer/dist/HugeGraphComputerTest.java
index c84181ce..a54d54f9 100644
--- a/computer-test/src/main/java/com/baidu/hugegraph/computer/dist/HugeGraphComputerTest.java
+++ b/computer-test/src/main/java/com/baidu/hugegraph/computer/dist/HugeGraphComputerTest.java
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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 com.baidu.hugegraph.computer.dist;
 
 import java.util.Arrays;
diff --git a/computer-test/src/main/resources/hdfs_input_test/core-site.xml b/computer-test/src/main/resources/hdfs_input_test/core-site.xml
index e7112856..e2578ed0 100644
--- a/computer-test/src/main/resources/hdfs_input_test/core-site.xml
+++ b/computer-test/src/main/resources/hdfs_input_test/core-site.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.
+  -->
 <configuration>
     <property>
         <name>fs.defaultFS</name>
diff --git a/computer-yarn/pom.xml b/computer-yarn/pom.xml
index de2788dc..ea62991f 100644
--- a/computer-yarn/pom.xml
+++ b/computer-yarn/pom.xml
@@ -1,4 +1,20 @@
 <?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 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">
diff --git a/pom.xml b/pom.xml
index 42fc2a02..1498e0e4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -204,6 +204,27 @@
 
     <build>
         <plugins>
+            <!-- Apache RAT for license check -->
+            <plugin>
+                <groupId>org.apache.rat</groupId>
+                <artifactId>apache-rat-plugin</artifactId>
+                <configuration>
+                    <excludes>
+                        <exclude>**/*.log</exclude>
+                        <exclude>**/*.txt</exclude>
+                        <exclude>**/*.json</exclude>
+                        <exclude>**/*.conf</exclude>
+                        <exclude>**/go.mod</exclude>
+                        <exclude>**/go.sum</exclude>
+                        <exclude>**/*.properties</exclude>
+                        <exclude>**/*.md</exclude>
+                        <exclude>**/dependency-reduced-pom.xml</exclude>
+                        <exclude>**/target/*</exclude>
+                        <exclude>.github/**/*</exclude>
+                    </excludes>
+                    <consoleOutput>true</consoleOutput>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>license-maven-plugin</artifactId>