You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@carbondata.apache.org by jb...@apache.org on 2016/08/05 12:19:59 UTC

[1/3] incubator-carbondata git commit: [CARBONDATA-140] Fix all legal headers, add the legal files (NOTICE, DISCLAIMER) and fix LICENSE file

Repository: incubator-carbondata
Updated Branches:
  refs/heads/master d849fc910 -> 8552a8222


http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/integration/spark/src/test/scala/org/carbondata/spark/testsuite/deleteTable/TestDeleteTableNewDDL.scala
----------------------------------------------------------------------
diff --git a/integration/spark/src/test/scala/org/carbondata/spark/testsuite/deleteTable/TestDeleteTableNewDDL.scala b/integration/spark/src/test/scala/org/carbondata/spark/testsuite/deleteTable/TestDeleteTableNewDDL.scala
index fc66316..d4d0a37 100644
--- a/integration/spark/src/test/scala/org/carbondata/spark/testsuite/deleteTable/TestDeleteTableNewDDL.scala
+++ b/integration/spark/src/test/scala/org/carbondata/spark/testsuite/deleteTable/TestDeleteTableNewDDL.scala
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.spark.testsuite.deleteTable
 
 import org.apache.spark.sql.common.util.CarbonHiveContext._

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/integration/spark/src/test/scala/org/carbondata/spark/testsuite/detailquery/ColumnPropertyValidationTestCase.scala
----------------------------------------------------------------------
diff --git a/integration/spark/src/test/scala/org/carbondata/spark/testsuite/detailquery/ColumnPropertyValidationTestCase.scala b/integration/spark/src/test/scala/org/carbondata/spark/testsuite/detailquery/ColumnPropertyValidationTestCase.scala
index b9affa7..31a0af8 100644
--- a/integration/spark/src/test/scala/org/carbondata/spark/testsuite/detailquery/ColumnPropertyValidationTestCase.scala
+++ b/integration/spark/src/test/scala/org/carbondata/spark/testsuite/detailquery/ColumnPropertyValidationTestCase.scala
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.spark.testsuite.detailquery;
 
 import org.apache.spark.sql.common.util.CarbonHiveContext._

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/integration/spark/src/test/scala/org/carbondata/spark/testsuite/filterexpr/NullMeasureValueTestCaseFilter.scala
----------------------------------------------------------------------
diff --git a/integration/spark/src/test/scala/org/carbondata/spark/testsuite/filterexpr/NullMeasureValueTestCaseFilter.scala b/integration/spark/src/test/scala/org/carbondata/spark/testsuite/filterexpr/NullMeasureValueTestCaseFilter.scala
index d81974d..4f1c720 100644
--- a/integration/spark/src/test/scala/org/carbondata/spark/testsuite/filterexpr/NullMeasureValueTestCaseFilter.scala
+++ b/integration/spark/src/test/scala/org/carbondata/spark/testsuite/filterexpr/NullMeasureValueTestCaseFilter.scala
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.spark.testsuite.filterexpr
 
 import org.apache.spark.sql.Row

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/integration/spark/src/test/scala/org/carbondata/spark/testsuite/measurenullvalue/NullMeasureValueTestCaseAggregate.scala
----------------------------------------------------------------------
diff --git a/integration/spark/src/test/scala/org/carbondata/spark/testsuite/measurenullvalue/NullMeasureValueTestCaseAggregate.scala b/integration/spark/src/test/scala/org/carbondata/spark/testsuite/measurenullvalue/NullMeasureValueTestCaseAggregate.scala
index 6a28447..c7add79 100644
--- a/integration/spark/src/test/scala/org/carbondata/spark/testsuite/measurenullvalue/NullMeasureValueTestCaseAggregate.scala
+++ b/integration/spark/src/test/scala/org/carbondata/spark/testsuite/measurenullvalue/NullMeasureValueTestCaseAggregate.scala
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.spark.testsuite.measurenullvalue
 
 import org.apache.spark.sql.Row

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 98db430..8054f12 100644
--- a/pom.xml
+++ b/pom.xml
@@ -314,6 +314,46 @@
     <profile>
       <id>include-all</id>
     </profile>
+    <profile>
+      <id>rat</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.rat</groupId>
+            <artifactId>apache-rat-plugin</artifactId>
+            <version>0.11</version>
+            <executions>
+              <execution>
+                <phase>verify</phase>
+                <goals>
+                  <goal>check</goal>
+                </goals>
+              </execution>
+            </executions>
+            <configuration>
+              <reportFile>${project.build.directory}/${project.build.finalName}.rat</reportFile>
+              <excludeSubProjects>false</excludeSubProjects>
+              <useDefaultExcludes>true</useDefaultExcludes>
+              <excludes>
+                <exclude>**/*.iml</exclude>
+                <exclude>**/*.csv</exclude>
+                <exclude>**/*.dictionary</exclude>
+                <exclude>**/*.ktr</exclude>
+                <exclude>**/_SUCCESS</exclude>
+                <exclude>**/non-csv</exclude>
+                <exclude>**/.invisibilityfile</exclude>
+                <exclude>**/noneCsvFormat.cs</exclude>
+                <exclude>**/org.apache.spark.sql.sources.DataSourceRegister</exclude>
+                <exclude>**/derby.log</exclude>
+                <exclude>**/meta.lock</exclude>
+                <exclude>**/loadmetadata.metadata</exclude>
+                <exclude>**/modifiedTime.mdt</exclude>
+              </excludes>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
 
 </project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/processing/CARBON_PROCESSINGLogResource.properties
----------------------------------------------------------------------
diff --git a/processing/CARBON_PROCESSINGLogResource.properties b/processing/CARBON_PROCESSINGLogResource.properties
index 9fdb765..bdb913d 100644
--- a/processing/CARBON_PROCESSINGLogResource.properties
+++ b/processing/CARBON_PROCESSINGLogResource.properties
@@ -1 +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.
+#
 carbon.processing = {0}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/processing/src/main/java/org/carbondata/lcm/locks/ZookeeperInit.java
----------------------------------------------------------------------
diff --git a/processing/src/main/java/org/carbondata/lcm/locks/ZookeeperInit.java b/processing/src/main/java/org/carbondata/lcm/locks/ZookeeperInit.java
index e7ac49a..2b2bfb5 100644
--- a/processing/src/main/java/org/carbondata/lcm/locks/ZookeeperInit.java
+++ b/processing/src/main/java/org/carbondata/lcm/locks/ZookeeperInit.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.lcm.locks;
 
 import java.io.IOException;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/processing/src/main/java/org/carbondata/processing/csvreaderstep/CustomDataStream.java
----------------------------------------------------------------------
diff --git a/processing/src/main/java/org/carbondata/processing/csvreaderstep/CustomDataStream.java b/processing/src/main/java/org/carbondata/processing/csvreaderstep/CustomDataStream.java
index 9c18eba..cf1aef8 100644
--- a/processing/src/main/java/org/carbondata/processing/csvreaderstep/CustomDataStream.java
+++ b/processing/src/main/java/org/carbondata/processing/csvreaderstep/CustomDataStream.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.processing.csvreaderstep;
 
 import java.io.DataInputStream;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/processing/src/main/java/org/carbondata/processing/mdkeygen/messages/messages_en_US.properties
----------------------------------------------------------------------
diff --git a/processing/src/main/java/org/carbondata/processing/mdkeygen/messages/messages_en_US.properties b/processing/src/main/java/org/carbondata/processing/mdkeygen/messages/messages_en_US.properties
index a6ce18c..3608e57 100644
--- a/processing/src/main/java/org/carbondata/processing/mdkeygen/messages/messages_en_US.properties
+++ b/processing/src/main/java/org/carbondata/processing/mdkeygen/messages/messages_en_US.properties
@@ -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.
+#
 CarbonMDkeyDialog.Shell.Title=Carbon MDkey Generator Step
 CarbonMDkeyDialog.TableName.Label=Table Name
 CarbonMDkeyDialog.SchemaFieldName.Label=Aggregate Levels

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/processing/src/main/java/org/carbondata/processing/store/messages/messages_en_US.properties
----------------------------------------------------------------------
diff --git a/processing/src/main/java/org/carbondata/processing/store/messages/messages_en_US.properties b/processing/src/main/java/org/carbondata/processing/store/messages/messages_en_US.properties
index b38db42..7d8ce83 100644
--- a/processing/src/main/java/org/carbondata/processing/store/messages/messages_en_US.properties
+++ b/processing/src/main/java/org/carbondata/processing/store/messages/messages_en_US.properties
@@ -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.
+#
 CarbonDataWriterDialog.Shell.Title=Carbon Data Writer
 Store.Location=Store Location
 Blocklet.Size=Blocklet Size

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/processing/src/main/java/org/carbondata/processing/surrogatekeysgenerator/dbbased/messages/messages_en_US.properties
----------------------------------------------------------------------
diff --git a/processing/src/main/java/org/carbondata/processing/surrogatekeysgenerator/dbbased/messages/messages_en_US.properties b/processing/src/main/java/org/carbondata/processing/surrogatekeysgenerator/dbbased/messages/messages_en_US.properties
index ff05d6f..d5b97fa 100644
--- a/processing/src/main/java/org/carbondata/processing/surrogatekeysgenerator/dbbased/messages/messages_en_US.properties
+++ b/processing/src/main/java/org/carbondata/processing/surrogatekeysgenerator/dbbased/messages/messages_en_US.properties
@@ -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.
+#
 CarbonDialog.Shell.Title=Carbon Surrogate Generator
 CarbonDialog.Group.Label=Carbon Settings
 CarbonDialog.dim.Label=Dimensions

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/processing/src/main/java/org/pentaho/di/trans/steps/hadoopfileinput/messages/messages_en_US.properties
----------------------------------------------------------------------
diff --git a/processing/src/main/java/org/pentaho/di/trans/steps/hadoopfileinput/messages/messages_en_US.properties b/processing/src/main/java/org/pentaho/di/trans/steps/hadoopfileinput/messages/messages_en_US.properties
index 28a3fd5..4ed60dd 100644
--- a/processing/src/main/java/org/pentaho/di/trans/steps/hadoopfileinput/messages/messages_en_US.properties
+++ b/processing/src/main/java/org/pentaho/di/trans/steps/hadoopfileinput/messages/messages_en_US.properties
@@ -1 +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.
+#
 HadoopFileInputDialog.DialogTitle=Hadoop File Input
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/processing/src/test/java/org/carbondata/lcm/locks/LocalFileLockTest.java
----------------------------------------------------------------------
diff --git a/processing/src/test/java/org/carbondata/lcm/locks/LocalFileLockTest.java b/processing/src/test/java/org/carbondata/lcm/locks/LocalFileLockTest.java
index c4f5093..1330229 100644
--- a/processing/src/test/java/org/carbondata/lcm/locks/LocalFileLockTest.java
+++ b/processing/src/test/java/org/carbondata/lcm/locks/LocalFileLockTest.java
@@ -1,5 +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.
  */
 package org.carbondata.lcm.locks;
 

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/processing/src/test/java/org/carbondata/lcm/locks/ZooKeeperLockingTest.java
----------------------------------------------------------------------
diff --git a/processing/src/test/java/org/carbondata/lcm/locks/ZooKeeperLockingTest.java b/processing/src/test/java/org/carbondata/lcm/locks/ZooKeeperLockingTest.java
index 2a5644f..831c728 100644
--- a/processing/src/test/java/org/carbondata/lcm/locks/ZooKeeperLockingTest.java
+++ b/processing/src/test/java/org/carbondata/lcm/locks/ZooKeeperLockingTest.java
@@ -1,5 +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.
  */
 package org.carbondata.lcm.locks;
 

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/processing/src/test/java/org/carbondata/processing/store/colgroup/ColGroupMinMaxTest.java
----------------------------------------------------------------------
diff --git a/processing/src/test/java/org/carbondata/processing/store/colgroup/ColGroupMinMaxTest.java b/processing/src/test/java/org/carbondata/processing/store/colgroup/ColGroupMinMaxTest.java
index 4c991f5..9d0451a 100644
--- a/processing/src/test/java/org/carbondata/processing/store/colgroup/ColGroupMinMaxTest.java
+++ b/processing/src/test/java/org/carbondata/processing/store/colgroup/ColGroupMinMaxTest.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.processing.store.colgroup;
 
 import java.util.ArrayList;


[3/3] incubator-carbondata git commit: [CARBONDATA-140] This closes #63

Posted by jb...@apache.org.
[CARBONDATA-140] This closes #63


Project: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/commit/8552a822
Tree: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/tree/8552a822
Diff: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/diff/8552a822

Branch: refs/heads/master
Commit: 8552a822218fc6bf3039d83def9d4d3eb272b8b7
Parents: d849fc9 b38468a
Author: Jean-Baptiste Onofr� <jb...@apache.org>
Authored: Fri Aug 5 14:19:42 2016 +0200
Committer: Jean-Baptiste Onofr� <jb...@apache.org>
Committed: Fri Aug 5 14:19:42 2016 +0200

----------------------------------------------------------------------
 DISCLAIMER                                      | 10 +++++
 LICENSE                                         |  2 +-
 NOTICE                                          |  8 ++++
 common/src/test/java/log4j.properties           | 17 +++++++++
 conf/carbon.properties.template                 | 18 +++++++++
 core/CARBON_CORELogResource.properties          | 17 +++++++++
 .../carbon/datastore/block/AbstractIndex.java   | 18 +++++++++
 .../impl/VariableLengthDimensionDataChunk.java  | 18 +++++++++
 .../compression/type/UnCompressDefaultLong.java | 18 +++++++++
 .../type/UnCompressMaxMinByteForLong.java       | 18 +++++++++
 .../type/UnCompressMaxMinDefaultLong.java       | 18 +++++++++
 ...tiDimKeyVarLengthVariableSplitGenerator.java | 18 +++++++++
 .../core/util/CarbonMetadataUtil.java           | 18 +++++++++
 .../impl/NonFilterQueryScannedResult.java       | 18 +++++++++
 .../dictionary/AbstractDictionaryCacheTest.java | 18 +++++++++
 .../carbon/datastore/BlockIndexStoreTest.java   | 18 +++++++++
 .../datastore/block/SegmentPropertiesTest.java  | 18 +++++++++
 .../block/SegmentPropertiesTestUtil.java        | 18 +++++++++
 .../impl/btree/BTreeBlockFinderTest.java        | 18 +++++++++
 .../carbondata/core/util/CarbonUtilTest.java    | 18 +++++++++
 core/src/test/resources/carbonTest.properties   | 17 +++++++++
 dev/java-code-format-template.xml               | 18 +++++++++
 docs/Carbon-Packaging-and-Interfaces.md         | 19 ++++++++++
 docs/Carbondata-File-Structure-and-Format.md    | 19 ++++++++++
 docs/DDL-Operations-on-Carbon.md                | 18 +++++++++
 docs/DML-Operations-on-Carbon.md                | 19 ++++++++++
 docs/Data-Management.md                         | 18 +++++++++
 ...stalling-CarbonData-And-IDE-Configuartion.md | 19 ++++++++++
 examples/CARBON_EXAMPLESLogResource.properties  | 17 +++++++++
 hadoop/CARBON_HADOOPLogResource.properties      | 17 +++++++++
 .../org/carbondata/hadoop/CarbonProjection.java | 18 +++++++++
 .../carbondata/hadoop/CarbonRecordReader.java   | 18 +++++++++
 .../hadoop/readsupport/CarbonReadSupport.java   | 18 +++++++++
 .../AbstractDictionaryDecodedReadSupport.java   | 18 +++++++++
 .../impl/ArrayWritableReadSupport.java          | 18 +++++++++
 .../impl/DictionaryDecodedReadSupportImpl.java  | 18 +++++++++
 .../readsupport/impl/RawDataReadSupport.java    | 18 +++++++++
 .../hadoop/util/ObjectSerializationUtil.java    | 18 +++++++++
 .../carbondata/hadoop/util/SchemaReader.java    | 18 +++++++++
 .../hadoop/ft/CarbonInputMapperTest.java        | 18 +++++++++
 .../spark/sql/common/util/CsvCompare.scala      | 18 +++++++++
 .../spark/sql/common/util/DataFrameUtil.scala   | 18 +++++++++
 ...CARBON_SPARK_INTERFACELogResource.properties | 17 +++++++++
 .../spark/merger/NodeMultiBlockRelation.java    | 18 +++++++++
 .../readsupport/SparkRowReadSupportImpl.java    | 18 +++++++++
 .../spark/load/CarbonLoaderUtilTest.java        | 18 +++++++++
 .../validation/FileFooterValidator.java         | 18 +++++++++
 .../apache/spark/sql/TestCarbonSqlParser.scala  | 18 +++++++++
 .../TestLoadDataWithEmptyArrayColumns.scala     | 18 +++++++++
 .../dataload/TestLoadDataWithJunkChars.scala    | 18 +++++++++
 .../DataCompactionCardinalityBoundryTest.scala  | 18 +++++++++
 .../datacompaction/DataCompactionLockTest.scala | 18 +++++++++
 .../DataCompactionNoDictionaryTest.scala        | 18 +++++++++
 .../datacompaction/DataCompactionTest.scala     | 18 +++++++++
 .../MajorCompactionIgnoreInMinorTest.scala      | 18 +++++++++
 .../MajorCompactionStopsAfterCompaction.scala   | 18 +++++++++
 .../deleteTable/TestDeleteTableNewDDL.scala     | 18 +++++++++
 .../ColumnPropertyValidationTestCase.scala      | 18 +++++++++
 .../NullMeasureValueTestCaseFilter.scala        | 18 +++++++++
 .../NullMeasureValueTestCaseAggregate.scala     | 18 +++++++++
 pom.xml                                         | 40 ++++++++++++++++++++
 .../CARBON_PROCESSINGLogResource.properties     | 17 +++++++++
 .../org/carbondata/lcm/locks/ZookeeperInit.java | 18 +++++++++
 .../csvreaderstep/CustomDataStream.java         | 18 +++++++++
 .../mdkeygen/messages/messages_en_US.properties | 17 +++++++++
 .../store/messages/messages_en_US.properties    | 17 +++++++++
 .../dbbased/messages/messages_en_US.properties  | 17 +++++++++
 .../messages/messages_en_US.properties          | 17 +++++++++
 .../carbondata/lcm/locks/LocalFileLockTest.java | 17 ++++++++-
 .../lcm/locks/ZooKeeperLockingTest.java         | 17 ++++++++-
 .../store/colgroup/ColGroupMinMaxTest.java      | 18 +++++++++
 71 files changed, 1254 insertions(+), 3 deletions(-)
----------------------------------------------------------------------



[2/3] incubator-carbondata git commit: [CARBONDATA-140] Fix all legal headers, add the legal files (NOTICE, DISCLAIMER) and fix LICENSE file

Posted by jb...@apache.org.
[CARBONDATA-140] Fix all legal headers, add the legal files (NOTICE, DISCLAIMER) and fix LICENSE file


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

Branch: refs/heads/master
Commit: b38468aa5cc2bcd80e44fc7cdb6ab0ceaacf3b12
Parents: d849fc9
Author: Jean-Baptiste Onofr� <jb...@apache.org>
Authored: Fri Aug 5 11:16:32 2016 +0200
Committer: Jean-Baptiste Onofr� <jb...@apache.org>
Committed: Fri Aug 5 11:25:49 2016 +0200

----------------------------------------------------------------------
 DISCLAIMER                                      | 10 +++++
 LICENSE                                         |  2 +-
 NOTICE                                          |  8 ++++
 common/src/test/java/log4j.properties           | 17 +++++++++
 conf/carbon.properties.template                 | 18 +++++++++
 core/CARBON_CORELogResource.properties          | 17 +++++++++
 .../carbon/datastore/block/AbstractIndex.java   | 18 +++++++++
 .../impl/VariableLengthDimensionDataChunk.java  | 18 +++++++++
 .../compression/type/UnCompressDefaultLong.java | 18 +++++++++
 .../type/UnCompressMaxMinByteForLong.java       | 18 +++++++++
 .../type/UnCompressMaxMinDefaultLong.java       | 18 +++++++++
 ...tiDimKeyVarLengthVariableSplitGenerator.java | 18 +++++++++
 .../core/util/CarbonMetadataUtil.java           | 18 +++++++++
 .../impl/NonFilterQueryScannedResult.java       | 18 +++++++++
 .../dictionary/AbstractDictionaryCacheTest.java | 18 +++++++++
 .../carbon/datastore/BlockIndexStoreTest.java   | 18 +++++++++
 .../datastore/block/SegmentPropertiesTest.java  | 18 +++++++++
 .../block/SegmentPropertiesTestUtil.java        | 18 +++++++++
 .../impl/btree/BTreeBlockFinderTest.java        | 18 +++++++++
 .../carbondata/core/util/CarbonUtilTest.java    | 18 +++++++++
 core/src/test/resources/carbonTest.properties   | 17 +++++++++
 dev/java-code-format-template.xml               | 18 +++++++++
 docs/Carbon-Packaging-and-Interfaces.md         | 19 ++++++++++
 docs/Carbondata-File-Structure-and-Format.md    | 19 ++++++++++
 docs/DDL-Operations-on-Carbon.md                | 18 +++++++++
 docs/DML-Operations-on-Carbon.md                | 19 ++++++++++
 docs/Data-Management.md                         | 18 +++++++++
 ...stalling-CarbonData-And-IDE-Configuartion.md | 19 ++++++++++
 examples/CARBON_EXAMPLESLogResource.properties  | 17 +++++++++
 hadoop/CARBON_HADOOPLogResource.properties      | 17 +++++++++
 .../org/carbondata/hadoop/CarbonProjection.java | 18 +++++++++
 .../carbondata/hadoop/CarbonRecordReader.java   | 18 +++++++++
 .../hadoop/readsupport/CarbonReadSupport.java   | 18 +++++++++
 .../AbstractDictionaryDecodedReadSupport.java   | 18 +++++++++
 .../impl/ArrayWritableReadSupport.java          | 18 +++++++++
 .../impl/DictionaryDecodedReadSupportImpl.java  | 18 +++++++++
 .../readsupport/impl/RawDataReadSupport.java    | 18 +++++++++
 .../hadoop/util/ObjectSerializationUtil.java    | 18 +++++++++
 .../carbondata/hadoop/util/SchemaReader.java    | 18 +++++++++
 .../hadoop/ft/CarbonInputMapperTest.java        | 18 +++++++++
 .../spark/sql/common/util/CsvCompare.scala      | 18 +++++++++
 .../spark/sql/common/util/DataFrameUtil.scala   | 18 +++++++++
 ...CARBON_SPARK_INTERFACELogResource.properties | 17 +++++++++
 .../spark/merger/NodeMultiBlockRelation.java    | 18 +++++++++
 .../readsupport/SparkRowReadSupportImpl.java    | 18 +++++++++
 .../spark/load/CarbonLoaderUtilTest.java        | 18 +++++++++
 .../validation/FileFooterValidator.java         | 18 +++++++++
 .../apache/spark/sql/TestCarbonSqlParser.scala  | 18 +++++++++
 .../TestLoadDataWithEmptyArrayColumns.scala     | 18 +++++++++
 .../dataload/TestLoadDataWithJunkChars.scala    | 18 +++++++++
 .../DataCompactionCardinalityBoundryTest.scala  | 18 +++++++++
 .../datacompaction/DataCompactionLockTest.scala | 18 +++++++++
 .../DataCompactionNoDictionaryTest.scala        | 18 +++++++++
 .../datacompaction/DataCompactionTest.scala     | 18 +++++++++
 .../MajorCompactionIgnoreInMinorTest.scala      | 18 +++++++++
 .../MajorCompactionStopsAfterCompaction.scala   | 18 +++++++++
 .../deleteTable/TestDeleteTableNewDDL.scala     | 18 +++++++++
 .../ColumnPropertyValidationTestCase.scala      | 18 +++++++++
 .../NullMeasureValueTestCaseFilter.scala        | 18 +++++++++
 .../NullMeasureValueTestCaseAggregate.scala     | 18 +++++++++
 pom.xml                                         | 40 ++++++++++++++++++++
 .../CARBON_PROCESSINGLogResource.properties     | 17 +++++++++
 .../org/carbondata/lcm/locks/ZookeeperInit.java | 18 +++++++++
 .../csvreaderstep/CustomDataStream.java         | 18 +++++++++
 .../mdkeygen/messages/messages_en_US.properties | 17 +++++++++
 .../store/messages/messages_en_US.properties    | 17 +++++++++
 .../dbbased/messages/messages_en_US.properties  | 17 +++++++++
 .../messages/messages_en_US.properties          | 17 +++++++++
 .../carbondata/lcm/locks/LocalFileLockTest.java | 17 ++++++++-
 .../lcm/locks/ZooKeeperLockingTest.java         | 17 ++++++++-
 .../store/colgroup/ColGroupMinMaxTest.java      | 18 +++++++++
 71 files changed, 1254 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/DISCLAIMER
----------------------------------------------------------------------
diff --git a/DISCLAIMER b/DISCLAIMER
new file mode 100644
index 0000000..a62c969
--- /dev/null
+++ b/DISCLAIMER
@@ -0,0 +1,10 @@
+Apache CarbonData is an effort undergoing incubation at the Apache Software
+Foundation (ASF), sponsored by the Apache Incubator PMC.
+
+Incubation is required of all newly accepted projects until a further review
+indicates that the infrastructure, communications, and decision making process
+have stabilized in a manner consistent with other successful ASF projects.
+
+While incubation status is not necessarily a reflection of the completeness
+or stability of the code, it does indicate that the project has yet to be
+fully endorsed by the ASF.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/LICENSE
----------------------------------------------------------------------
diff --git a/LICENSE b/LICENSE
index 57bc88a..d645695 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,3 +1,4 @@
+
                                  Apache License
                            Version 2.0, January 2004
                         http://www.apache.org/licenses/
@@ -199,4 +200,3 @@
    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-carbondata/blob/b38468aa/NOTICE
----------------------------------------------------------------------
diff --git a/NOTICE b/NOTICE
new file mode 100644
index 0000000..da83581
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1,8 @@
+Apache CarbonData (incubating)
+Copyright 2016 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+Based on source code originally developed by
+Huawei (http://www.huawei.com/).
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/common/src/test/java/log4j.properties
----------------------------------------------------------------------
diff --git a/common/src/test/java/log4j.properties b/common/src/test/java/log4j.properties
index 918dc42..8d966f0 100644
--- a/common/src/test/java/log4j.properties
+++ b/common/src/test/java/log4j.properties
@@ -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.
+#
 log4j.logger.com.huawei=INFO,R5
 log4j.appender.R5=org.carbondata.common.logging.impl.AuditExtendedRollingFileAppender
 log4j.appender.R5.File=./unibiaudit.log

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/conf/carbon.properties.template
----------------------------------------------------------------------
diff --git a/conf/carbon.properties.template b/conf/carbon.properties.template
index 3d13fd7..b94fbe4 100644
--- a/conf/carbon.properties.template
+++ b/conf/carbon.properties.template
@@ -1,3 +1,21 @@
+#
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
 #################### System Configuration ##################
 #Mandatory. Carbon Store path
 carbon.storelocation=hdfs://hacluster/Opt/CarbonStore

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/core/CARBON_CORELogResource.properties
----------------------------------------------------------------------
diff --git a/core/CARBON_CORELogResource.properties b/core/CARBON_CORELogResource.properties
index 9b957b6..a9d3af7 100644
--- a/core/CARBON_CORELogResource.properties
+++ b/core/CARBON_CORELogResource.properties
@@ -1 +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.
+#
 carbon.core = {0}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/core/src/main/java/org/carbondata/core/carbon/datastore/block/AbstractIndex.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/carbondata/core/carbon/datastore/block/AbstractIndex.java b/core/src/main/java/org/carbondata/core/carbon/datastore/block/AbstractIndex.java
index a207c78..548522d 100644
--- a/core/src/main/java/org/carbondata/core/carbon/datastore/block/AbstractIndex.java
+++ b/core/src/main/java/org/carbondata/core/carbon/datastore/block/AbstractIndex.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.core.carbon.datastore.block;
 
 import java.util.List;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/core/src/main/java/org/carbondata/core/carbon/datastore/chunk/impl/VariableLengthDimensionDataChunk.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/carbondata/core/carbon/datastore/chunk/impl/VariableLengthDimensionDataChunk.java b/core/src/main/java/org/carbondata/core/carbon/datastore/chunk/impl/VariableLengthDimensionDataChunk.java
index 0aa2406..7c69490 100644
--- a/core/src/main/java/org/carbondata/core/carbon/datastore/chunk/impl/VariableLengthDimensionDataChunk.java
+++ b/core/src/main/java/org/carbondata/core/carbon/datastore/chunk/impl/VariableLengthDimensionDataChunk.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.core.carbon.datastore.chunk.impl;
 
 import java.util.List;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/core/src/main/java/org/carbondata/core/datastorage/store/compression/type/UnCompressDefaultLong.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/carbondata/core/datastorage/store/compression/type/UnCompressDefaultLong.java b/core/src/main/java/org/carbondata/core/datastorage/store/compression/type/UnCompressDefaultLong.java
index d19eb52..6404027 100644
--- a/core/src/main/java/org/carbondata/core/datastorage/store/compression/type/UnCompressDefaultLong.java
+++ b/core/src/main/java/org/carbondata/core/datastorage/store/compression/type/UnCompressDefaultLong.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.core.datastorage.store.compression.type;
 
 import org.carbondata.common.logging.LogService;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/core/src/main/java/org/carbondata/core/datastorage/store/compression/type/UnCompressMaxMinByteForLong.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/carbondata/core/datastorage/store/compression/type/UnCompressMaxMinByteForLong.java b/core/src/main/java/org/carbondata/core/datastorage/store/compression/type/UnCompressMaxMinByteForLong.java
index 5d20025..c97f8be 100644
--- a/core/src/main/java/org/carbondata/core/datastorage/store/compression/type/UnCompressMaxMinByteForLong.java
+++ b/core/src/main/java/org/carbondata/core/datastorage/store/compression/type/UnCompressMaxMinByteForLong.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.core.datastorage.store.compression.type;
 
 import org.carbondata.common.logging.LogService;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/core/src/main/java/org/carbondata/core/datastorage/store/compression/type/UnCompressMaxMinDefaultLong.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/carbondata/core/datastorage/store/compression/type/UnCompressMaxMinDefaultLong.java b/core/src/main/java/org/carbondata/core/datastorage/store/compression/type/UnCompressMaxMinDefaultLong.java
index 3b1668f..d37cb46 100644
--- a/core/src/main/java/org/carbondata/core/datastorage/store/compression/type/UnCompressMaxMinDefaultLong.java
+++ b/core/src/main/java/org/carbondata/core/datastorage/store/compression/type/UnCompressMaxMinDefaultLong.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.core.datastorage.store.compression.type;
 
 import org.carbondata.common.logging.LogService;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/core/src/main/java/org/carbondata/core/keygenerator/columnar/impl/MultiDimKeyVarLengthVariableSplitGenerator.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/carbondata/core/keygenerator/columnar/impl/MultiDimKeyVarLengthVariableSplitGenerator.java b/core/src/main/java/org/carbondata/core/keygenerator/columnar/impl/MultiDimKeyVarLengthVariableSplitGenerator.java
index f86a2ec..83c119f 100644
--- a/core/src/main/java/org/carbondata/core/keygenerator/columnar/impl/MultiDimKeyVarLengthVariableSplitGenerator.java
+++ b/core/src/main/java/org/carbondata/core/keygenerator/columnar/impl/MultiDimKeyVarLengthVariableSplitGenerator.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.core.keygenerator.columnar.impl;
 
 import java.util.ArrayList;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/core/src/main/java/org/carbondata/core/util/CarbonMetadataUtil.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/carbondata/core/util/CarbonMetadataUtil.java b/core/src/main/java/org/carbondata/core/util/CarbonMetadataUtil.java
index 9fbcc47..c20e88a 100644
--- a/core/src/main/java/org/carbondata/core/util/CarbonMetadataUtil.java
+++ b/core/src/main/java/org/carbondata/core/util/CarbonMetadataUtil.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.core.util;
 
 import java.io.ByteArrayInputStream;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/core/src/main/java/org/carbondata/scan/result/impl/NonFilterQueryScannedResult.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/carbondata/scan/result/impl/NonFilterQueryScannedResult.java b/core/src/main/java/org/carbondata/scan/result/impl/NonFilterQueryScannedResult.java
index 00b5563..13fa860 100644
--- a/core/src/main/java/org/carbondata/scan/result/impl/NonFilterQueryScannedResult.java
+++ b/core/src/main/java/org/carbondata/scan/result/impl/NonFilterQueryScannedResult.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.scan.result.impl;
 
 import java.math.BigDecimal;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/core/src/test/java/org/carbondata/core/cache/dictionary/AbstractDictionaryCacheTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/carbondata/core/cache/dictionary/AbstractDictionaryCacheTest.java b/core/src/test/java/org/carbondata/core/cache/dictionary/AbstractDictionaryCacheTest.java
index 48d3d29..ee04748 100644
--- a/core/src/test/java/org/carbondata/core/cache/dictionary/AbstractDictionaryCacheTest.java
+++ b/core/src/test/java/org/carbondata/core/cache/dictionary/AbstractDictionaryCacheTest.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.core.cache.dictionary;
 
 import java.io.File;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/core/src/test/java/org/carbondata/core/carbon/datastore/BlockIndexStoreTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/carbondata/core/carbon/datastore/BlockIndexStoreTest.java b/core/src/test/java/org/carbondata/core/carbon/datastore/BlockIndexStoreTest.java
index 5043a1d..ab8e73d 100644
--- a/core/src/test/java/org/carbondata/core/carbon/datastore/BlockIndexStoreTest.java
+++ b/core/src/test/java/org/carbondata/core/carbon/datastore/BlockIndexStoreTest.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.core.carbon.datastore;
 
 import java.io.File;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/core/src/test/java/org/carbondata/core/carbon/datastore/block/SegmentPropertiesTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/carbondata/core/carbon/datastore/block/SegmentPropertiesTest.java b/core/src/test/java/org/carbondata/core/carbon/datastore/block/SegmentPropertiesTest.java
index fed4370..9d50a36 100644
--- a/core/src/test/java/org/carbondata/core/carbon/datastore/block/SegmentPropertiesTest.java
+++ b/core/src/test/java/org/carbondata/core/carbon/datastore/block/SegmentPropertiesTest.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.core.carbon.datastore.block;
 
 import java.util.ArrayList;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/core/src/test/java/org/carbondata/core/carbon/datastore/block/SegmentPropertiesTestUtil.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/carbondata/core/carbon/datastore/block/SegmentPropertiesTestUtil.java b/core/src/test/java/org/carbondata/core/carbon/datastore/block/SegmentPropertiesTestUtil.java
index 5614d2c..d4da524 100644
--- a/core/src/test/java/org/carbondata/core/carbon/datastore/block/SegmentPropertiesTestUtil.java
+++ b/core/src/test/java/org/carbondata/core/carbon/datastore/block/SegmentPropertiesTestUtil.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.core.carbon.datastore.block;
 
 import java.util.ArrayList;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/core/src/test/java/org/carbondata/core/carbon/datastore/impl/btree/BTreeBlockFinderTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/carbondata/core/carbon/datastore/impl/btree/BTreeBlockFinderTest.java b/core/src/test/java/org/carbondata/core/carbon/datastore/impl/btree/BTreeBlockFinderTest.java
index 9354db4..ef650e6 100644
--- a/core/src/test/java/org/carbondata/core/carbon/datastore/impl/btree/BTreeBlockFinderTest.java
+++ b/core/src/test/java/org/carbondata/core/carbon/datastore/impl/btree/BTreeBlockFinderTest.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.core.carbon.datastore.impl.btree;
 
 import java.nio.ByteBuffer;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/core/src/test/java/org/carbondata/core/util/CarbonUtilTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/carbondata/core/util/CarbonUtilTest.java b/core/src/test/java/org/carbondata/core/util/CarbonUtilTest.java
index 9ab13df..933a3de 100644
--- a/core/src/test/java/org/carbondata/core/util/CarbonUtilTest.java
+++ b/core/src/test/java/org/carbondata/core/util/CarbonUtilTest.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.core.util;
 
 import junit.framework.TestCase;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/core/src/test/resources/carbonTest.properties
----------------------------------------------------------------------
diff --git a/core/src/test/resources/carbonTest.properties b/core/src/test/resources/carbonTest.properties
index 6851238..e46a88d 100644
--- a/core/src/test/resources/carbonTest.properties
+++ b/core/src/test/resources/carbonTest.properties
@@ -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.
+#
 database=testSchema
 tableName=carbon
 storePath=carbonStore

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/dev/java-code-format-template.xml
----------------------------------------------------------------------
diff --git a/dev/java-code-format-template.xml b/dev/java-code-format-template.xml
index e64b477..b012172 100644
--- a/dev/java-code-format-template.xml
+++ b/dev/java-code-format-template.xml
@@ -1,3 +1,21 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements.  See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership.  The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License.  You may obtain a copy of the License at
+ ~
+ ~    http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied.  See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
 <code_scheme name="'Carbondata'">
   <option name="OTHER_INDENT_OPTIONS">
     <value>

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/docs/Carbon-Packaging-and-Interfaces.md
----------------------------------------------------------------------
diff --git a/docs/Carbon-Packaging-and-Interfaces.md b/docs/Carbon-Packaging-and-Interfaces.md
index 9897480..f361000 100644
--- a/docs/Carbon-Packaging-and-Interfaces.md
+++ b/docs/Carbon-Packaging-and-Interfaces.md
@@ -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.
+-->
+
 ## Packaging
 Carbon provides following JAR packages:
 

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/docs/Carbondata-File-Structure-and-Format.md
----------------------------------------------------------------------
diff --git a/docs/Carbondata-File-Structure-and-Format.md b/docs/Carbondata-File-Structure-and-Format.md
index 7b73297..fef51eb 100644
--- a/docs/Carbondata-File-Structure-and-Format.md
+++ b/docs/Carbondata-File-Structure-and-Format.md
@@ -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.
+-->
+
 ## Use Case & Motivation :  Why introducing a new file format?
 The motivation behind CarbonData is to create a single file format for all kind of query and analysis on Big Data. Existing data storage formats in Hadoop address only specific use cases requiring users to use multiple file formats for various types of queries resulting in unnecessary duplication of data. 
 

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/docs/DDL-Operations-on-Carbon.md
----------------------------------------------------------------------
diff --git a/docs/DDL-Operations-on-Carbon.md b/docs/DDL-Operations-on-Carbon.md
index b4dcaa7..7f1b64f 100644
--- a/docs/DDL-Operations-on-Carbon.md
+++ b/docs/DDL-Operations-on-Carbon.md
@@ -1,3 +1,21 @@
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
 
 * [CREATE TABLE](#CREATE TABLE)
 * [SHOW TABLE](#SHOW TABLE)

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/docs/DML-Operations-on-Carbon.md
----------------------------------------------------------------------
diff --git a/docs/DML-Operations-on-Carbon.md b/docs/DML-Operations-on-Carbon.md
index e5ede7d..6c7197c 100644
--- a/docs/DML-Operations-on-Carbon.md
+++ b/docs/DML-Operations-on-Carbon.md
@@ -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.
+-->
+
 * [LOAD DATA](#LOAD DATA)
 * [SHOW LOADS](#SHOW LOADS)
 * [DELETE SEGMENT BY ID](#DELETE SEGMENT BY ID)

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/docs/Data-Management.md
----------------------------------------------------------------------
diff --git a/docs/Data-Management.md b/docs/Data-Management.md
index b63f692..72671dc 100644
--- a/docs/Data-Management.md
+++ b/docs/Data-Management.md
@@ -1,3 +1,21 @@
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
 
 * [Load Data](#Load Data)
 * [Deleting Data](#Deleting Data)

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/docs/Installing-CarbonData-And-IDE-Configuartion.md
----------------------------------------------------------------------
diff --git a/docs/Installing-CarbonData-And-IDE-Configuartion.md b/docs/Installing-CarbonData-And-IDE-Configuartion.md
index 3b2095d..941bcc3 100644
--- a/docs/Installing-CarbonData-And-IDE-Configuartion.md
+++ b/docs/Installing-CarbonData-And-IDE-Configuartion.md
@@ -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.
+-->
+
 ### Building CarbonData
 Prerequisites for building CarbonData:
 * Unix-like environment (Linux, Mac OS X)

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/examples/CARBON_EXAMPLESLogResource.properties
----------------------------------------------------------------------
diff --git a/examples/CARBON_EXAMPLESLogResource.properties b/examples/CARBON_EXAMPLESLogResource.properties
index 9d9b2c4..78f873e 100644
--- a/examples/CARBON_EXAMPLESLogResource.properties
+++ b/examples/CARBON_EXAMPLESLogResource.properties
@@ -1 +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.
+#
 carbon.examples = {0}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/hadoop/CARBON_HADOOPLogResource.properties
----------------------------------------------------------------------
diff --git a/hadoop/CARBON_HADOOPLogResource.properties b/hadoop/CARBON_HADOOPLogResource.properties
index cf5b602..135a578 100644
--- a/hadoop/CARBON_HADOOPLogResource.properties
+++ b/hadoop/CARBON_HADOOPLogResource.properties
@@ -1 +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.
+#
 carbon.hadoop = {0}

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/hadoop/src/main/java/org/carbondata/hadoop/CarbonProjection.java
----------------------------------------------------------------------
diff --git a/hadoop/src/main/java/org/carbondata/hadoop/CarbonProjection.java b/hadoop/src/main/java/org/carbondata/hadoop/CarbonProjection.java
index d53a2fa..94f1193 100644
--- a/hadoop/src/main/java/org/carbondata/hadoop/CarbonProjection.java
+++ b/hadoop/src/main/java/org/carbondata/hadoop/CarbonProjection.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.hadoop;
 
 import java.util.LinkedHashSet;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/hadoop/src/main/java/org/carbondata/hadoop/CarbonRecordReader.java
----------------------------------------------------------------------
diff --git a/hadoop/src/main/java/org/carbondata/hadoop/CarbonRecordReader.java b/hadoop/src/main/java/org/carbondata/hadoop/CarbonRecordReader.java
index f0f996c..652b1e6 100644
--- a/hadoop/src/main/java/org/carbondata/hadoop/CarbonRecordReader.java
+++ b/hadoop/src/main/java/org/carbondata/hadoop/CarbonRecordReader.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.hadoop;
 
 import java.io.IOException;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/hadoop/src/main/java/org/carbondata/hadoop/readsupport/CarbonReadSupport.java
----------------------------------------------------------------------
diff --git a/hadoop/src/main/java/org/carbondata/hadoop/readsupport/CarbonReadSupport.java b/hadoop/src/main/java/org/carbondata/hadoop/readsupport/CarbonReadSupport.java
index 427dd61..ca324e7 100644
--- a/hadoop/src/main/java/org/carbondata/hadoop/readsupport/CarbonReadSupport.java
+++ b/hadoop/src/main/java/org/carbondata/hadoop/readsupport/CarbonReadSupport.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.hadoop.readsupport;
 
 import org.carbondata.core.carbon.AbsoluteTableIdentifier;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/hadoop/src/main/java/org/carbondata/hadoop/readsupport/impl/AbstractDictionaryDecodedReadSupport.java
----------------------------------------------------------------------
diff --git a/hadoop/src/main/java/org/carbondata/hadoop/readsupport/impl/AbstractDictionaryDecodedReadSupport.java b/hadoop/src/main/java/org/carbondata/hadoop/readsupport/impl/AbstractDictionaryDecodedReadSupport.java
index bea8289..e150bcd 100644
--- a/hadoop/src/main/java/org/carbondata/hadoop/readsupport/impl/AbstractDictionaryDecodedReadSupport.java
+++ b/hadoop/src/main/java/org/carbondata/hadoop/readsupport/impl/AbstractDictionaryDecodedReadSupport.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.hadoop.readsupport.impl;
 
 import org.carbondata.core.cache.Cache;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/hadoop/src/main/java/org/carbondata/hadoop/readsupport/impl/ArrayWritableReadSupport.java
----------------------------------------------------------------------
diff --git a/hadoop/src/main/java/org/carbondata/hadoop/readsupport/impl/ArrayWritableReadSupport.java b/hadoop/src/main/java/org/carbondata/hadoop/readsupport/impl/ArrayWritableReadSupport.java
index b559f44..30c869f 100644
--- a/hadoop/src/main/java/org/carbondata/hadoop/readsupport/impl/ArrayWritableReadSupport.java
+++ b/hadoop/src/main/java/org/carbondata/hadoop/readsupport/impl/ArrayWritableReadSupport.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.hadoop.readsupport.impl;
 
 import org.carbondata.core.carbon.AbsoluteTableIdentifier;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/hadoop/src/main/java/org/carbondata/hadoop/readsupport/impl/DictionaryDecodedReadSupportImpl.java
----------------------------------------------------------------------
diff --git a/hadoop/src/main/java/org/carbondata/hadoop/readsupport/impl/DictionaryDecodedReadSupportImpl.java b/hadoop/src/main/java/org/carbondata/hadoop/readsupport/impl/DictionaryDecodedReadSupportImpl.java
index f2696f9..782eca1 100644
--- a/hadoop/src/main/java/org/carbondata/hadoop/readsupport/impl/DictionaryDecodedReadSupportImpl.java
+++ b/hadoop/src/main/java/org/carbondata/hadoop/readsupport/impl/DictionaryDecodedReadSupportImpl.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.hadoop.readsupport.impl;
 
 /**

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/hadoop/src/main/java/org/carbondata/hadoop/readsupport/impl/RawDataReadSupport.java
----------------------------------------------------------------------
diff --git a/hadoop/src/main/java/org/carbondata/hadoop/readsupport/impl/RawDataReadSupport.java b/hadoop/src/main/java/org/carbondata/hadoop/readsupport/impl/RawDataReadSupport.java
index 4dec899..4627aa9 100644
--- a/hadoop/src/main/java/org/carbondata/hadoop/readsupport/impl/RawDataReadSupport.java
+++ b/hadoop/src/main/java/org/carbondata/hadoop/readsupport/impl/RawDataReadSupport.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.hadoop.readsupport.impl;
 
 import org.carbondata.core.carbon.AbsoluteTableIdentifier;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/hadoop/src/main/java/org/carbondata/hadoop/util/ObjectSerializationUtil.java
----------------------------------------------------------------------
diff --git a/hadoop/src/main/java/org/carbondata/hadoop/util/ObjectSerializationUtil.java b/hadoop/src/main/java/org/carbondata/hadoop/util/ObjectSerializationUtil.java
index e4a0980..a1d87a6 100644
--- a/hadoop/src/main/java/org/carbondata/hadoop/util/ObjectSerializationUtil.java
+++ b/hadoop/src/main/java/org/carbondata/hadoop/util/ObjectSerializationUtil.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.hadoop.util;
 
 import java.io.ByteArrayInputStream;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/hadoop/src/main/java/org/carbondata/hadoop/util/SchemaReader.java
----------------------------------------------------------------------
diff --git a/hadoop/src/main/java/org/carbondata/hadoop/util/SchemaReader.java b/hadoop/src/main/java/org/carbondata/hadoop/util/SchemaReader.java
index 31b0cfc..17c0177 100644
--- a/hadoop/src/main/java/org/carbondata/hadoop/util/SchemaReader.java
+++ b/hadoop/src/main/java/org/carbondata/hadoop/util/SchemaReader.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.hadoop.util;
 
 import java.io.IOException;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/hadoop/src/test/java/org/carbondata/hadoop/ft/CarbonInputMapperTest.java
----------------------------------------------------------------------
diff --git a/hadoop/src/test/java/org/carbondata/hadoop/ft/CarbonInputMapperTest.java b/hadoop/src/test/java/org/carbondata/hadoop/ft/CarbonInputMapperTest.java
index 89fe2ab..94d4575 100644
--- a/hadoop/src/test/java/org/carbondata/hadoop/ft/CarbonInputMapperTest.java
+++ b/hadoop/src/test/java/org/carbondata/hadoop/ft/CarbonInputMapperTest.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.hadoop.ft;
 
 import java.io.BufferedReader;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/integration-testcases/src/test/scala/org/apache/spark/sql/common/util/CsvCompare.scala
----------------------------------------------------------------------
diff --git a/integration-testcases/src/test/scala/org/apache/spark/sql/common/util/CsvCompare.scala b/integration-testcases/src/test/scala/org/apache/spark/sql/common/util/CsvCompare.scala
index 7d8759d..6d9a35e 100644
--- a/integration-testcases/src/test/scala/org/apache/spark/sql/common/util/CsvCompare.scala
+++ b/integration-testcases/src/test/scala/org/apache/spark/sql/common/util/CsvCompare.scala
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.apache.spark.sql.common.util
 
 import java.io.BufferedReader

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/integration-testcases/src/test/scala/org/apache/spark/sql/common/util/DataFrameUtil.scala
----------------------------------------------------------------------
diff --git a/integration-testcases/src/test/scala/org/apache/spark/sql/common/util/DataFrameUtil.scala b/integration-testcases/src/test/scala/org/apache/spark/sql/common/util/DataFrameUtil.scala
index 3eb6055..5bcb274 100644
--- a/integration-testcases/src/test/scala/org/apache/spark/sql/common/util/DataFrameUtil.scala
+++ b/integration-testcases/src/test/scala/org/apache/spark/sql/common/util/DataFrameUtil.scala
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.apache.spark.sql.common.util
 
 import org.apache.spark.sql.DataFrame

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/integration/spark/CARBON_SPARK_INTERFACELogResource.properties
----------------------------------------------------------------------
diff --git a/integration/spark/CARBON_SPARK_INTERFACELogResource.properties b/integration/spark/CARBON_SPARK_INTERFACELogResource.properties
index f2341ad..61856cf 100644
--- a/integration/spark/CARBON_SPARK_INTERFACELogResource.properties
+++ b/integration/spark/CARBON_SPARK_INTERFACELogResource.properties
@@ -1 +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.
+#
 carbon.spark.interface = {0}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/integration/spark/src/main/java/org/carbondata/spark/merger/NodeMultiBlockRelation.java
----------------------------------------------------------------------
diff --git a/integration/spark/src/main/java/org/carbondata/spark/merger/NodeMultiBlockRelation.java b/integration/spark/src/main/java/org/carbondata/spark/merger/NodeMultiBlockRelation.java
index 02f61a6..6e05ce3 100644
--- a/integration/spark/src/main/java/org/carbondata/spark/merger/NodeMultiBlockRelation.java
+++ b/integration/spark/src/main/java/org/carbondata/spark/merger/NodeMultiBlockRelation.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.spark.merger;
 
 import java.util.List;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/integration/spark/src/main/java/org/carbondata/spark/readsupport/SparkRowReadSupportImpl.java
----------------------------------------------------------------------
diff --git a/integration/spark/src/main/java/org/carbondata/spark/readsupport/SparkRowReadSupportImpl.java b/integration/spark/src/main/java/org/carbondata/spark/readsupport/SparkRowReadSupportImpl.java
index 318e64c..bc3b384 100644
--- a/integration/spark/src/main/java/org/carbondata/spark/readsupport/SparkRowReadSupportImpl.java
+++ b/integration/spark/src/main/java/org/carbondata/spark/readsupport/SparkRowReadSupportImpl.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.spark.readsupport;
 
 import java.sql.Timestamp;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/integration/spark/src/test/java/org/carbondata/integration/spark/load/CarbonLoaderUtilTest.java
----------------------------------------------------------------------
diff --git a/integration/spark/src/test/java/org/carbondata/integration/spark/load/CarbonLoaderUtilTest.java b/integration/spark/src/test/java/org/carbondata/integration/spark/load/CarbonLoaderUtilTest.java
index 8399d28..60921f0 100644
--- a/integration/spark/src/test/java/org/carbondata/integration/spark/load/CarbonLoaderUtilTest.java
+++ b/integration/spark/src/test/java/org/carbondata/integration/spark/load/CarbonLoaderUtilTest.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.integration.spark.load;
 
 import java.util.ArrayList;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/integration/spark/src/test/java/org/carbondata/integration/spark/testsuite/validation/FileFooterValidator.java
----------------------------------------------------------------------
diff --git a/integration/spark/src/test/java/org/carbondata/integration/spark/testsuite/validation/FileFooterValidator.java b/integration/spark/src/test/java/org/carbondata/integration/spark/testsuite/validation/FileFooterValidator.java
index ccc2820..873621c 100644
--- a/integration/spark/src/test/java/org/carbondata/integration/spark/testsuite/validation/FileFooterValidator.java
+++ b/integration/spark/src/test/java/org/carbondata/integration/spark/testsuite/validation/FileFooterValidator.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.integration.spark.testsuite.validation;
 
 import org.apache.spark.sql.common.util.CarbonHiveContext;

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/integration/spark/src/test/scala/org/apache/spark/sql/TestCarbonSqlParser.scala
----------------------------------------------------------------------
diff --git a/integration/spark/src/test/scala/org/apache/spark/sql/TestCarbonSqlParser.scala b/integration/spark/src/test/scala/org/apache/spark/sql/TestCarbonSqlParser.scala
index 23c4a9d..ef6ceb2 100644
--- a/integration/spark/src/test/scala/org/apache/spark/sql/TestCarbonSqlParser.scala
+++ b/integration/spark/src/test/scala/org/apache/spark/sql/TestCarbonSqlParser.scala
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.apache.spark.sql
 
 import org.apache.spark.sql.common.util.QueryTest

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/integration/spark/src/test/scala/org/carbondata/integration/spark/testsuite/dataload/TestLoadDataWithEmptyArrayColumns.scala
----------------------------------------------------------------------
diff --git a/integration/spark/src/test/scala/org/carbondata/integration/spark/testsuite/dataload/TestLoadDataWithEmptyArrayColumns.scala b/integration/spark/src/test/scala/org/carbondata/integration/spark/testsuite/dataload/TestLoadDataWithEmptyArrayColumns.scala
index 5638669..ff13f6c 100644
--- a/integration/spark/src/test/scala/org/carbondata/integration/spark/testsuite/dataload/TestLoadDataWithEmptyArrayColumns.scala
+++ b/integration/spark/src/test/scala/org/carbondata/integration/spark/testsuite/dataload/TestLoadDataWithEmptyArrayColumns.scala
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.integration.spark.testsuite.dataload
 
 import org.apache.spark.sql.Row

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/integration/spark/src/test/scala/org/carbondata/integration/spark/testsuite/dataload/TestLoadDataWithJunkChars.scala
----------------------------------------------------------------------
diff --git a/integration/spark/src/test/scala/org/carbondata/integration/spark/testsuite/dataload/TestLoadDataWithJunkChars.scala b/integration/spark/src/test/scala/org/carbondata/integration/spark/testsuite/dataload/TestLoadDataWithJunkChars.scala
index 5472e7a..848d2d5 100644
--- a/integration/spark/src/test/scala/org/carbondata/integration/spark/testsuite/dataload/TestLoadDataWithJunkChars.scala
+++ b/integration/spark/src/test/scala/org/carbondata/integration/spark/testsuite/dataload/TestLoadDataWithJunkChars.scala
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.integration.spark.testsuite.dataload;
 
 import org.apache.spark.sql.common.util.CarbonHiveContext._

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/DataCompactionCardinalityBoundryTest.scala
----------------------------------------------------------------------
diff --git a/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/DataCompactionCardinalityBoundryTest.scala b/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/DataCompactionCardinalityBoundryTest.scala
index 0cbfb2e..31c315e 100644
--- a/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/DataCompactionCardinalityBoundryTest.scala
+++ b/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/DataCompactionCardinalityBoundryTest.scala
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.spark.testsuite.datacompaction
 
 import java.io.File

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/DataCompactionLockTest.scala
----------------------------------------------------------------------
diff --git a/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/DataCompactionLockTest.scala b/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/DataCompactionLockTest.scala
index ccffcd7..fce2264 100644
--- a/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/DataCompactionLockTest.scala
+++ b/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/DataCompactionLockTest.scala
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.spark.testsuite.datacompaction
 
 import java.io.File

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/DataCompactionNoDictionaryTest.scala
----------------------------------------------------------------------
diff --git a/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/DataCompactionNoDictionaryTest.scala b/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/DataCompactionNoDictionaryTest.scala
index bdaa539..9e0c223 100644
--- a/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/DataCompactionNoDictionaryTest.scala
+++ b/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/DataCompactionNoDictionaryTest.scala
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.spark.testsuite.datacompaction
 
 import java.io.File

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/DataCompactionTest.scala
----------------------------------------------------------------------
diff --git a/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/DataCompactionTest.scala b/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/DataCompactionTest.scala
index 801de73..fe82c27 100644
--- a/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/DataCompactionTest.scala
+++ b/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/DataCompactionTest.scala
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.spark.testsuite.datacompaction
 
 import java.io.File

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/MajorCompactionIgnoreInMinorTest.scala
----------------------------------------------------------------------
diff --git a/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/MajorCompactionIgnoreInMinorTest.scala b/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/MajorCompactionIgnoreInMinorTest.scala
index 1005e83..4e31dfc 100644
--- a/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/MajorCompactionIgnoreInMinorTest.scala
+++ b/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/MajorCompactionIgnoreInMinorTest.scala
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.spark.testsuite.datacompaction
 
 import java.io.File

http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/b38468aa/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/MajorCompactionStopsAfterCompaction.scala
----------------------------------------------------------------------
diff --git a/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/MajorCompactionStopsAfterCompaction.scala b/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/MajorCompactionStopsAfterCompaction.scala
index 3cbf5dd..b498c51 100644
--- a/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/MajorCompactionStopsAfterCompaction.scala
+++ b/integration/spark/src/test/scala/org/carbondata/spark/testsuite/datacompaction/MajorCompactionStopsAfterCompaction.scala
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.carbondata.spark.testsuite.datacompaction
 
 import java.io.File