Permalink
Browse files

HIVE-2930 [jira] Add license to the Hive files

(Owen O'Malley via Ashutosh Chauhan)

Summary:
<<Enter Revision Title>>

Fixing rat warnings

We need to clean up the RAT report to 0. Apache projects aren't supposed to
release until they have shown that all of their files have proper headers.

Note that although most of the files are just missing headers, some of them
explicitly say copyright by facebook and released under the Thrift (not Apache)
license. I'll generate a list of them, but I'd really appreciate it if someone
from facebook could in verify that they intend to license them to Apache.

Test Plan: EMPTY

Reviewers: JIRA, ashutoshc

Reviewed By: ashutoshc

Differential Revision: https://reviews.facebook.net/D2835

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1327205 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 2cbcdc5 commit 240b7b96ecf9a681d10f6f0853f825cad544e18b @ashutoshc ashutoshc committed Apr 17, 2012
Showing with 1,133 additions and 37 deletions.
  1. +17 −0 .checkstyle
  2. +16 −0 build.properties
  3. +4 −1 build.xml
  4. +16 −0 common/src/java/conf/hive-log4j.properties
  5. +17 −0 conf/configuration.xsl
  6. +16 −0 conf/hive-env.sh.template
  7. +16 −0 data/conf/hive-log4j.properties
  8. +18 −0 data/scripts/cat.py
  9. +18 −0 data/scripts/cat_error.py
  10. +18 −0 data/scripts/dumpdata_script.py
  11. +15 −0 data/scripts/error_script
  12. +15 −0 data/scripts/input20_script
  13. +15 −0 docs/velocity.properties
  14. +17 −0 eclipse-templates/.classpath
  15. +17 −0 eclipse-templates/.classpath._hbase
  16. +17 −0 eclipse-templates/.externalToolBuilders/Hive_Ant_Builder.launch
  17. +17 −0 eclipse-templates/.project
  18. +16 −0 eclipse-templates/.settings/org.eclipse.jdt.core.prefs
  19. +16 −0 eclipse-templates/.settings/org.eclipse.jdt.ui.prefs
  20. +17 −0 eclipse-templates/HiveCLI.launchtemplate
  21. +17 −0 eclipse-templates/TestCliDriver.launchtemplate
  22. +17 −0 eclipse-templates/TestEmbeddedHiveMetaStore.launchtemplate
  23. +17 −0 eclipse-templates/TestHBaseCliDriver.launchtemplate
  24. +17 −0 eclipse-templates/TestHive.launchtemplate
  25. +17 −0 eclipse-templates/TestHiveMetaStoreChecker.launchtemplate
  26. +17 −0 eclipse-templates/TestJdbc.launchtemplate
  27. +17 −0 eclipse-templates/TestMTQueries.launchtemplate
  28. +17 −0 eclipse-templates/TestRemoteHiveMetaStore.launchtemplate
  29. +17 −0 eclipse-templates/TestTruncate.launchtemplate
  30. +17 −0 hbase-handler/src/test/templates/TestHBaseCliDriver.vm
  31. +19 −0 metastore/if/hive_metastore.thrift
  32. +16 −0 metastore/scripts/hive.metastore_ctrl
  33. +15 −0 metastore/scripts/hive.metastore_daemon
  34. +17 −0 metastore/scripts/upgrade/001-HIVE-2795.update_view_partitions.py
  35. +16 −0 metastore/src/java/org/apache/hadoop/hive/metastore/parser/Filter.g
  36. +17 −0 metastore/src/model/package.jdo
  37. +17 −0 metastore/src/test/org/apache/hadoop/hive/metastore/DummyPreListener.java
  38. +17 −0 metastore/src/test/org/apache/hadoop/hive/metastore/TestRemoteUGIHiveMetaStoreIpAddress.java
  39. +18 −0 ql/if/queryplan.thrift
  40. +16 −0 ql/src/java/conf/hive-exec-log4j.properties
  41. +27 −10 ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/MetadataOnlyOptimizer.java
  42. +16 −0 ql/src/java/org/apache/hadoop/hive/ql/plan/mapredplan.jr
  43. +17 −0 ql/src/java/org/apache/hadoop/hive/ql/stats/jdbc/JDBCStatsUtils.java
  44. +2 −2 ql/src/java/org/apache/hadoop/hive/ql/udf/UDFOPPlus.java
  45. +18 −0 ql/src/test/org/apache/hadoop/hive/ql/exec/sample_plan.xml
  46. +16 −0 ql/src/test/queries/clientnegative/dyn_part_empty.q.disabled
  47. +15 −0 ql/src/test/scripts/testgrep
  48. +17 −0 ql/src/test/templates/TestCliDriver.vm
  49. +17 −0 ql/src/test/templates/TestNegativeCliDriver.vm
  50. +17 −0 ql/src/test/templates/TestParse.vm
  51. +17 −0 ql/src/test/templates/TestParseNegative.vm
  52. +17 −0 serde/if/serde.thrift
  53. +18 −0 serde/if/test/complex.thrift
  54. +18 −0 serde/if/test/complexpb.proto
  55. +17 −0 serde/if/test/testthrift.thrift
  56. +20 −3 serde/src/java/org/apache/hadoop/hive/serde2/columnar/LazyBinaryColumnarSerDe.java
  57. +16 −0 serde/src/java/org/apache/hadoop/hive/serde2/dynamic_type/thrift_grammar.jjt
  58. +16 −5 service/lib/php/ext/thrift_protocol/config.m4
  59. +16 −0 service/lib/php/ext/thrift_protocol/tags/1.0.0/config.m4
  60. +18 −0 service/lib/php/ext/thrift_protocol/tags/1.0.0/php_thrift_protocol.cpp
  61. +18 −0 service/lib/php/ext/thrift_protocol/tags/1.0.0/php_thrift_protocol.h
  62. +15 −0 service/lib/py/fb303/__init__.py
  63. +18 −11 service/lib/py/thrift/protocol/fastbinary.c
  64. +14 −5 service/lib/py/thrift/reflection/__init__.py
  65. +15 −0 service/lib/py/thrift/reflection/limited/__init__.py
  66. +16 −0 service/src/test/php/test_service.php
  67. +15 −0 testutils/compute_stats
  68. +15 −0 testutils/dump_schema
  69. +16 −0 testutils/run_tests
View
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<fileset-config file-format-version="1.2.0" simple-config="false">
<local-check-config name="Hive Checkstyle" location="checkstyle/checkstyle.xml" type="project" description="">
View
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
Name=Hive
name=hive
version=0.10.0-SNAPSHOT
View
@@ -807,18 +807,21 @@
<patternset id="non.build.files">
<exclude name="**/build/**"/>
<exclude name="**/src/gen/**"/>
- <exclude name=".arcconfig.*"/>
+ <exclude name=".arcconfig*"/>
<exclude name=".arc_jira_lib/**"/>
<exclude name="**/*.deflate"/>
<exclude name="**/*.m"/>
<exclude name="**/*.m.out"/>
<exclude name="**/*.q"/>
<exclude name="**/*.q.out"/>
<exclude name="data/files/*.rc"/>
+ <exclude name="**/test/data/**/*.rc"/>
<exclude name="data/files/*.seq"/>
<exclude name="**/data/files/*.log"/>
<exclude name="**/*.txt"/>
+ <exclude name="**/test/results/**/*.out"/>
<exclude name="**/test/results/**/*.xml"/>
+ <exclude name="**/testdata/*.input"/>
<!-- Ignore recordio generated file -->
<exclude name="ql/src/test/org/apache/hadoop/hive/ql/io/RecordTestObj.java"/>
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
# Define some default values that can be overridden by system properties
hive.root.logger=WARN,DRFA
hive.log.dir=/tmp/${user.name}
View
@@ -1,4 +1,21 @@
<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html"/>
<xsl:template match="configuration">
View
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
# Set Hive and Hadoop environment variables here. These variables can be used
# to control the execution of Hive. It should be used by admins to configure
# the Hive installation (so that users do not have to set environment variables
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
# Define some default values that can be overridden by system properties
hive.root.logger=DEBUG,DRFA
hive.log.dir=${build.dir.hive}/ql/tmp/
View
@@ -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.
+#
import sys, re
import datetime
import os
View
@@ -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.
+#
import sys
for line in sys.stdin:
@@ -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.
+#
import sys
for i in xrange(50):
View
@@ -1,4 +1,19 @@
#! /bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
exit 1
ret=0
@@ -1,4 +1,19 @@
#! /bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
# This script outputs a row of the following format
# <# of values for the key> <key>_<key>
View
@@ -1,2 +1,17 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
#
runtime.log=build/docs/velocity.log
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="build/hadoopcore/hadoop-@HADOOPVER@/hadoop-@HADOOPVER@-core.jar"/>
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<classpath>
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry exported="true" kind="lib" path="build/hadoopcore/hadoop-@HADOOPVER@/hadoop-@HADOOPVER@-core.jar"/>
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ 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.
+-->
<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_AUTO_TARGETS" value="package,"/>
<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_CLEAN_TARGETS" value="clean-test,clean,"/>
View
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<projectDescription>
<name>@PROJECT@</name>
<comment></comment>
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
#Sat Feb 13 22:33:52 PST 2010
eclipse.preferences.version=1
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
#Sat Feb 13 22:33:52 PST 2010
cleanup.add_default_serial_version_id=true
cleanup.add_generated_serial_version_id=false
Oops, something went wrong.

0 comments on commit 240b7b9

Please sign in to comment.