http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/bin/impala-ipython ---------------------------------------------------------------------- diff --git a/bin/impala-ipython b/bin/impala-ipython index e7f9806..4e846e2 100755 --- a/bin/impala-ipython +++ b/bin/impala-ipython @@ -1,3 +1,23 @@ #!/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. +############################################################################## + source $(dirname "$0")/impala-python-common.sh exec "$PY_DIR/env/bin/ipython" "$@"
http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/bin/impala-py.test ---------------------------------------------------------------------- diff --git a/bin/impala-py.test b/bin/impala-py.test index 48d01e9..e755071 100755 --- a/bin/impala-py.test +++ b/bin/impala-py.test @@ -1,3 +1,23 @@ #!/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. +############################################################################## + source $(dirname "$0")/impala-python-common.sh exec "$PY_DIR/env/bin/py.test" "$@" http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/bin/impala-python ---------------------------------------------------------------------- diff --git a/bin/impala-python b/bin/impala-python index 29f9406..4ab4afb 100755 --- a/bin/impala-python +++ b/bin/impala-python @@ -1,3 +1,23 @@ #!/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. +############################################################################## + source "$(dirname "$0")/impala-python-common.sh" exec "$PY_DIR/env/bin/python" "$@" http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/bin/rat_exclude_files.txt ---------------------------------------------------------------------- diff --git a/bin/rat_exclude_files.txt b/bin/rat_exclude_files.txt index d3ee414..d6a58f6 100644 --- a/bin/rat_exclude_files.txt +++ b/bin/rat_exclude_files.txt @@ -109,3 +109,6 @@ be/src/thirdparty/squeasel/LICENSE # a larger file where the larger file would have duplicate licensing headers. www/all_child_groups.tmpl www/common-footer.tmpl + +# GNU tar artifact +pax_global_header http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/cmake_modules/FindAvro.cmake ---------------------------------------------------------------------- diff --git a/cmake_modules/FindAvro.cmake b/cmake_modules/FindAvro.cmake index aa060d6..3033a40 100644 --- a/cmake_modules/FindAvro.cmake +++ b/cmake_modules/FindAvro.cmake @@ -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. +############################################################################## + # - Find Avro (headers and libavrocpp_s.a) with AVRO_ROOT hinting a location # This module defines # AVRO_INCLUDE_DIR, directory containing headers http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/cmake_modules/FindBreakpad.cmake ---------------------------------------------------------------------- diff --git a/cmake_modules/FindBreakpad.cmake b/cmake_modules/FindBreakpad.cmake index 3e81f99..91a7b06 100644 --- a/cmake_modules/FindBreakpad.cmake +++ b/cmake_modules/FindBreakpad.cmake @@ -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. +############################################################################## + # - Find breakpad headers and lib. # This module defines # BREAKPAD_INCLUDE_DIR, directory containing headers http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/cmake_modules/FindBzip2.cmake ---------------------------------------------------------------------- diff --git a/cmake_modules/FindBzip2.cmake b/cmake_modules/FindBzip2.cmake index aaaaa91..7a4ae43 100644 --- a/cmake_modules/FindBzip2.cmake +++ b/cmake_modules/FindBzip2.cmake @@ -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. +############################################################################## + # BZIP2_ROOT hints the location # Provides # - BZIP2_LIBRARIES, http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/cmake_modules/FindGFlags.cmake ---------------------------------------------------------------------- diff --git a/cmake_modules/FindGFlags.cmake b/cmake_modules/FindGFlags.cmake index c17a2b1..6ef88e6 100644 --- a/cmake_modules/FindGFlags.cmake +++ b/cmake_modules/FindGFlags.cmake @@ -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. +############################################################################## + # - Find GFLAGS (gflags.h, libgflags.a, libgflags.so, and libgflags.so.0) with # GFLAGS_ROOT hinting a location # http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/cmake_modules/FindGLog.cmake ---------------------------------------------------------------------- diff --git a/cmake_modules/FindGLog.cmake b/cmake_modules/FindGLog.cmake index 7e0025c..992ac06 100644 --- a/cmake_modules/FindGLog.cmake +++ b/cmake_modules/FindGLog.cmake @@ -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. +############################################################################## + # - Find GLOG (logging.h, libglog.a, libglog.so, and libglog.so.0) with GLOG_ROOT # hinting a location # http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/cmake_modules/FindHDFS.cmake ---------------------------------------------------------------------- diff --git a/cmake_modules/FindHDFS.cmake b/cmake_modules/FindHDFS.cmake index 411e28c..6affc56 100644 --- a/cmake_modules/FindHDFS.cmake +++ b/cmake_modules/FindHDFS.cmake @@ -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. +############################################################################## + # - Find HDFS (hdfs.h and libhdfs.so) # This module defines # Hadoop_VERSION, version string of ant if found http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/cmake_modules/FindJNI.cmake ---------------------------------------------------------------------- diff --git a/cmake_modules/FindJNI.cmake b/cmake_modules/FindJNI.cmake index c05a569..239557b 100644 --- a/cmake_modules/FindJNI.cmake +++ b/cmake_modules/FindJNI.cmake @@ -15,15 +15,34 @@ #============================================================================= # Copyright 2001-2009 Kitware, Inc. # -# Distributed under the OSI-approved BSD License (the "License"); -# see accompanying file Copyright.txt for details. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: # -# This software is distributed WITHOUT ANY WARRANTY; without even the -# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# See the License for more information. +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# * Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# * Neither the names of Kitware, Inc., the Insight Software Consortium, +# nor the names of their contributors may be used to endorse or promote +# products derived from this software without specific prior written +# permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #============================================================================= -# (To distributed this file outside of CMake, substitute the full -# License text for the above reference.) # Expand {libarch} occurences to java_libarch subdirectory(-ies) and set ${_var} macro(JAVA_APPEND_LIBRARY_DIRECTORIES _var) http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/cmake_modules/FindLdap.cmake ---------------------------------------------------------------------- diff --git a/cmake_modules/FindLdap.cmake b/cmake_modules/FindLdap.cmake index 41ea3ee..533e867 100644 --- a/cmake_modules/FindLdap.cmake +++ b/cmake_modules/FindLdap.cmake @@ -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. +############################################################################## + # - Find Openldap # LDAP_ROOT hints a location # http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/cmake_modules/FindLlvm.cmake ---------------------------------------------------------------------- diff --git a/cmake_modules/FindLlvm.cmake b/cmake_modules/FindLlvm.cmake index 4f885ef..6db7444 100644 --- a/cmake_modules/FindLlvm.cmake +++ b/cmake_modules/FindLlvm.cmake @@ -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. +############################################################################## + # Find the native LLVM includes and library # # LLVM_ROOT - hints the search path http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/cmake_modules/FindLlvmBinaries.cmake ---------------------------------------------------------------------- diff --git a/cmake_modules/FindLlvmBinaries.cmake b/cmake_modules/FindLlvmBinaries.cmake index d56d1de..29e7cd4 100644 --- a/cmake_modules/FindLlvmBinaries.cmake +++ b/cmake_modules/FindLlvmBinaries.cmake @@ -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. +############################################################################## + # Find the LLVM binaries: clang and opt # LLVM_BINARIES_ROOT - hints the search path # LLVM_CLANG_EXECUTABLE - set to path to clang http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/cmake_modules/FindLz4.cmake ---------------------------------------------------------------------- diff --git a/cmake_modules/FindLz4.cmake b/cmake_modules/FindLz4.cmake index fe2cfa4..33bc96d 100644 --- a/cmake_modules/FindLz4.cmake +++ b/cmake_modules/FindLz4.cmake @@ -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. +############################################################################## + # - Find LZ4 (lz4.h, liblz4.a, liblz4.so, and liblz4.so.1) # LZ4_ROOT hints the location # http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/cmake_modules/FindOpenSSL.cmake ---------------------------------------------------------------------- diff --git a/cmake_modules/FindOpenSSL.cmake b/cmake_modules/FindOpenSSL.cmake index 6dbefb8..67b8322 100644 --- a/cmake_modules/FindOpenSSL.cmake +++ b/cmake_modules/FindOpenSSL.cmake @@ -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. +############################################################################## + # OPENSSL_ROOT hints the location # Provides # - OPENSSL_LIBRARIES, http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/cmake_modules/FindPProf.cmake ---------------------------------------------------------------------- diff --git a/cmake_modules/FindPProf.cmake b/cmake_modules/FindPProf.cmake index 06d1e7f..b98bcdc 100644 --- a/cmake_modules/FindPProf.cmake +++ b/cmake_modules/FindPProf.cmake @@ -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. +############################################################################## + # - Find pprof (libprofiler.a) # PPROF_ROOT hints the location # http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/cmake_modules/FindRapidJson.cmake ---------------------------------------------------------------------- diff --git a/cmake_modules/FindRapidJson.cmake b/cmake_modules/FindRapidJson.cmake index c69ff5d..d90365f 100644 --- a/cmake_modules/FindRapidJson.cmake +++ b/cmake_modules/FindRapidJson.cmake @@ -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. +############################################################################## + # - Find rapidjson headers and lib. # RAPIDJSON_ROOT hints the location # This module defines RAPIDJSON_INCLUDE_DIR, the directory containing headers http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/cmake_modules/FindRe2.cmake ---------------------------------------------------------------------- diff --git a/cmake_modules/FindRe2.cmake b/cmake_modules/FindRe2.cmake index 6eb38ea..9c806bb 100644 --- a/cmake_modules/FindRe2.cmake +++ b/cmake_modules/FindRe2.cmake @@ -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. +############################################################################## + # - Find re2 headers and lib. # RE2_ROOT hints the location # This module defines http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/cmake_modules/FindSnappy.cmake ---------------------------------------------------------------------- diff --git a/cmake_modules/FindSnappy.cmake b/cmake_modules/FindSnappy.cmake index e55d342..378703b 100644 --- a/cmake_modules/FindSnappy.cmake +++ b/cmake_modules/FindSnappy.cmake @@ -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. +############################################################################## + # - Find SNAPPY (snappy.h, libsnappy.a, libsnappy.so, and libsnappy.so.1) # SNAPPY_ROOT hints the location # http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/cmake_modules/FindThrift.cmake ---------------------------------------------------------------------- diff --git a/cmake_modules/FindThrift.cmake b/cmake_modules/FindThrift.cmake index 0bb27f5..6c18fc4 100644 --- a/cmake_modules/FindThrift.cmake +++ b/cmake_modules/FindThrift.cmake @@ -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. +############################################################################## + # - Find Thrift (a cross platform RPC lib/tool) # THRIFT_ROOT hints the location # http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/cmake_modules/FindZlib.cmake ---------------------------------------------------------------------- diff --git a/cmake_modules/FindZlib.cmake b/cmake_modules/FindZlib.cmake index 4af5cd7..2399128 100644 --- a/cmake_modules/FindZlib.cmake +++ b/cmake_modules/FindZlib.cmake @@ -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. +############################################################################## + # ZLIB_ROOT hints the location # Provides # - ZLIB, http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/fe/src/main/java/com/cloudera/impala/analysis/AggregateInfoBase.java ---------------------------------------------------------------------- diff --git a/fe/src/main/java/com/cloudera/impala/analysis/AggregateInfoBase.java b/fe/src/main/java/com/cloudera/impala/analysis/AggregateInfoBase.java index 2f97dc0..f3ad3f8 100644 --- a/fe/src/main/java/com/cloudera/impala/analysis/AggregateInfoBase.java +++ b/fe/src/main/java/com/cloudera/impala/analysis/AggregateInfoBase.java @@ -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. + package com.cloudera.impala.analysis; import java.util.ArrayList; http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/fe/src/main/java/com/cloudera/impala/analysis/ExprSubstitutionMap.java ---------------------------------------------------------------------- diff --git a/fe/src/main/java/com/cloudera/impala/analysis/ExprSubstitutionMap.java b/fe/src/main/java/com/cloudera/impala/analysis/ExprSubstitutionMap.java index 1ae3755..cbff71a 100644 --- a/fe/src/main/java/com/cloudera/impala/analysis/ExprSubstitutionMap.java +++ b/fe/src/main/java/com/cloudera/impala/analysis/ExprSubstitutionMap.java @@ -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. + package com.cloudera.impala.analysis; import java.util.List; http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/fe/src/main/java/com/cloudera/impala/analysis/PartitionSpec.java ---------------------------------------------------------------------- diff --git a/fe/src/main/java/com/cloudera/impala/analysis/PartitionSpec.java b/fe/src/main/java/com/cloudera/impala/analysis/PartitionSpec.java index 49f2e17..92bf0ae 100644 --- a/fe/src/main/java/com/cloudera/impala/analysis/PartitionSpec.java +++ b/fe/src/main/java/com/cloudera/impala/analysis/PartitionSpec.java @@ -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. + package com.cloudera.impala.analysis; import java.util.List; http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/fe/src/main/java/com/cloudera/impala/catalog/ArrayType.java ---------------------------------------------------------------------- diff --git a/fe/src/main/java/com/cloudera/impala/catalog/ArrayType.java b/fe/src/main/java/com/cloudera/impala/catalog/ArrayType.java index bdd7d8f..25edde2 100644 --- a/fe/src/main/java/com/cloudera/impala/catalog/ArrayType.java +++ b/fe/src/main/java/com/cloudera/impala/catalog/ArrayType.java @@ -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. + package com.cloudera.impala.catalog; import org.apache.commons.lang3.StringUtils; http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/fe/src/main/java/com/cloudera/impala/catalog/MapType.java ---------------------------------------------------------------------- diff --git a/fe/src/main/java/com/cloudera/impala/catalog/MapType.java b/fe/src/main/java/com/cloudera/impala/catalog/MapType.java index 47ad39d..8bc7b05 100644 --- a/fe/src/main/java/com/cloudera/impala/catalog/MapType.java +++ b/fe/src/main/java/com/cloudera/impala/catalog/MapType.java @@ -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. + package com.cloudera.impala.catalog; import org.apache.commons.lang3.StringUtils; http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/fe/src/main/java/com/cloudera/impala/catalog/StructType.java ---------------------------------------------------------------------- diff --git a/fe/src/main/java/com/cloudera/impala/catalog/StructType.java b/fe/src/main/java/com/cloudera/impala/catalog/StructType.java index 5099cc5..3600b6b 100644 --- a/fe/src/main/java/com/cloudera/impala/catalog/StructType.java +++ b/fe/src/main/java/com/cloudera/impala/catalog/StructType.java @@ -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. + package com.cloudera.impala.catalog; import java.util.ArrayList; http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/fe/src/main/java/com/cloudera/impala/planner/Planner.java ---------------------------------------------------------------------- diff --git a/fe/src/main/java/com/cloudera/impala/planner/Planner.java b/fe/src/main/java/com/cloudera/impala/planner/Planner.java index de1c088..0a424ad 100644 --- a/fe/src/main/java/com/cloudera/impala/planner/Planner.java +++ b/fe/src/main/java/com/cloudera/impala/planner/Planner.java @@ -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. + package com.cloudera.impala.planner; import java.util.ArrayList; http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/fe/src/test/resources/authz-policy.ini.template ---------------------------------------------------------------------- diff --git a/fe/src/test/resources/authz-policy.ini.template b/fe/src/test/resources/authz-policy.ini.template index 4c11bc4..57db74c 100644 --- a/fe/src/test/resources/authz-policy.ini.template +++ b/fe/src/test/resources/authz-policy.ini.template @@ -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. + # The [groups] section maps roles to user groups. If using a HadoopGroupPolicyProvider, # the group names must correspond to valid Hadoop user groups. If using a # LocalGroupPolicyProvider, the groups defined in this section are mapped to users http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/fe/src/test/resources/hive-log4j.properties.template ---------------------------------------------------------------------- diff --git a/fe/src/test/resources/hive-log4j.properties.template b/fe/src/test/resources/hive-log4j.properties.template index e847e38..c42590b 100644 --- a/fe/src/test/resources/hive-log4j.properties.template +++ b/fe/src/test/resources/hive-log4j.properties.template @@ -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. + # Define some default values that can be overridden by system properties hive.root.logger=INFO,DRFA hive.log.dir=${IMPALA_CLUSTER_LOGS_DIR}/hive http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/fe/src/test/resources/log4j.properties.template ---------------------------------------------------------------------- diff --git a/fe/src/test/resources/log4j.properties.template b/fe/src/test/resources/log4j.properties.template index 8216e38..31e2a48 100644 --- a/fe/src/test/resources/log4j.properties.template +++ b/fe/src/test/resources/log4j.properties.template @@ -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. + # Define some default values that can be overridden by system properties # Don't use hadoop.root.logger because Hadoop's config scripts override it impala.hadoop.root.logger=INFO,console http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/infra/python/deps/download_requirements ---------------------------------------------------------------------- diff --git a/infra/python/deps/download_requirements b/infra/python/deps/download_requirements index 26788be..daa5025 100755 --- a/infra/python/deps/download_requirements +++ b/infra/python/deps/download_requirements @@ -1,5 +1,22 @@ #!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + set -euo pipefail DIR="$(dirname "$0")" http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/infra/python/deps/requirements.txt ---------------------------------------------------------------------- diff --git a/infra/python/deps/requirements.txt b/infra/python/deps/requirements.txt index 77e4be9..1c87f8e 100644 --- a/infra/python/deps/requirements.txt +++ b/infra/python/deps/requirements.txt @@ -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. + # To download requirements use the download_requirements script in this dir. # Remember, all modules below need to support python 2.6. http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/testdata/avro_schema_resolution/create_table.sql ---------------------------------------------------------------------- diff --git a/testdata/avro_schema_resolution/create_table.sql b/testdata/avro_schema_resolution/create_table.sql index 5462952..71bff71 100644 --- a/testdata/avro_schema_resolution/create_table.sql +++ b/testdata/avro_schema_resolution/create_table.sql @@ -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. + USE functional_avro_snap; DROP TABLE IF EXISTS schema_resolution_test; http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/testdata/bin/cache_tables.py ---------------------------------------------------------------------- diff --git a/testdata/bin/cache_tables.py b/testdata/bin/cache_tables.py index d0bfe7b..36eb0df 100755 --- a/testdata/bin/cache_tables.py +++ b/testdata/bin/cache_tables.py @@ -1,15 +1,33 @@ #!/usr/bin/env impala-python +############################################################################## +# 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 will warm up the buffer cache with the tables required to run the input -# query. This only works on a mini-dfs cluster. This is remarkably difficult to do -# since hdfs which tries to hide the details of the block locations from users. -# The only way to do this is to -# 1. use the java APIs (deprecated, of course) to extract the block ids. +# query. This only works on a mini-dfs cluster. This is remarkably difficult to do +# since hdfs which tries to hide the details of the block locations from users. +# The only way to do this is to +# 1. use the java APIs (deprecated, of course) to extract the block ids. # 2. find the files with those block ids on the file system and read them # # First run testdata/bin/generate-block-ids.sh. This will output the block locations # to testdata/block-ids. This file is good as long as the mini-dfs cluster does not -# get new files. If the block-ids file is not there, this script will run +# get new files. If the block-ids file is not there, this script will run # generate-block-ids.sh. # # Run this script, passing it the query and it will go read every replica of every http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/testdata/bin/create-mini.sql ---------------------------------------------------------------------- diff --git a/testdata/bin/create-mini.sql b/testdata/bin/create-mini.sql index 3e66dc1..896391a 100644 --- a/testdata/bin/create-mini.sql +++ b/testdata/bin/create-mini.sql @@ -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. DROP TABLE IF EXISTS AllTypesAggMini; -- Note no partitioning, because data already loaded into non-partitioned dirs CREATE EXTERNAL TABLE AllTypesAggMini ( http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/testdata/bin/load-dependent-tables.sql ---------------------------------------------------------------------- diff --git a/testdata/bin/load-dependent-tables.sql b/testdata/bin/load-dependent-tables.sql index 7bb5e1f..7b25375 100644 --- a/testdata/bin/load-dependent-tables.sql +++ b/testdata/bin/load-dependent-tables.sql @@ -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. + -- Create and load tables that depend upon data in the hive test-warehouse already existing -- Load a mixed-format table. Hive behaves oddly when mixing formats, http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/testdata/bin/load-hive-builtins.sh ---------------------------------------------------------------------- diff --git a/testdata/bin/load-hive-builtins.sh b/testdata/bin/load-hive-builtins.sh index 4d4ef5a..29d9b7f 100755 --- a/testdata/bin/load-hive-builtins.sh +++ b/testdata/bin/load-hive-builtins.sh @@ -1,5 +1,22 @@ #!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + set -euo pipefail trap 'echo Error in $0 at line $LINENO: $(cd "'$PWD'" && awk "NR == $LINENO" $0)' ERR http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/testdata/bin/run-hive.sh ---------------------------------------------------------------------- diff --git a/testdata/bin/run-hive.sh b/testdata/bin/run-hive.sh index 4e9f34d..85334a9 100755 --- a/testdata/bin/run-hive.sh +++ b/testdata/bin/run-hive.sh @@ -1,4 +1,21 @@ #!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. set -euo pipefail trap 'echo Error in $0 at line $LINENO: $(cd "'$PWD'" && awk "NR == $LINENO" $0)' ERR http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/testdata/cluster/node_templates/cdh5/etc/init.d/kms ---------------------------------------------------------------------- diff --git a/testdata/cluster/node_templates/cdh5/etc/init.d/kms b/testdata/cluster/node_templates/cdh5/etc/init.d/kms index 50ae6a4..d0f77d1 100755 --- a/testdata/cluster/node_templates/cdh5/etc/init.d/kms +++ b/testdata/cluster/node_templates/cdh5/etc/init.d/kms @@ -1,5 +1,22 @@ #!/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. + DIR=$(dirname $0) . "$DIR/common" http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/testdata/cluster/node_templates/cdh5/etc/init.d/kudu-common ---------------------------------------------------------------------- diff --git a/testdata/cluster/node_templates/cdh5/etc/init.d/kudu-common b/testdata/cluster/node_templates/cdh5/etc/init.d/kudu-common index 4bce26a..2d8b5c3 100644 --- a/testdata/cluster/node_templates/cdh5/etc/init.d/kudu-common +++ b/testdata/cluster/node_templates/cdh5/etc/init.d/kudu-common @@ -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. + # This file is intended to be sourced. After sourcing the KUDU_COMMON_ARGS will be set. # KUDU_COMMON_ARGS should be passed to both the master and tservers on startup. # http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/testdata/cluster/node_templates/cdh5/etc/init.d/kudu-master ---------------------------------------------------------------------- diff --git a/testdata/cluster/node_templates/cdh5/etc/init.d/kudu-master b/testdata/cluster/node_templates/cdh5/etc/init.d/kudu-master index 26460f5..a0b4234 100755 --- a/testdata/cluster/node_templates/cdh5/etc/init.d/kudu-master +++ b/testdata/cluster/node_templates/cdh5/etc/init.d/kudu-master @@ -1,5 +1,22 @@ #!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + set -e DIR=$(dirname $0) http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/testdata/cluster/node_templates/cdh5/etc/init.d/kudu-tserver ---------------------------------------------------------------------- diff --git a/testdata/cluster/node_templates/cdh5/etc/init.d/kudu-tserver b/testdata/cluster/node_templates/cdh5/etc/init.d/kudu-tserver index 23f8dec..60e49e6 100755 --- a/testdata/cluster/node_templates/cdh5/etc/init.d/kudu-tserver +++ b/testdata/cluster/node_templates/cdh5/etc/init.d/kudu-tserver @@ -1,5 +1,22 @@ #!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + set -e DIR=$(dirname $0) http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/testdata/cluster/node_templates/cdh5/etc/init.d/llama-application ---------------------------------------------------------------------- diff --git a/testdata/cluster/node_templates/cdh5/etc/init.d/llama-application b/testdata/cluster/node_templates/cdh5/etc/init.d/llama-application index b519528..ad24240 100755 --- a/testdata/cluster/node_templates/cdh5/etc/init.d/llama-application +++ b/testdata/cluster/node_templates/cdh5/etc/init.d/llama-application @@ -1,5 +1,22 @@ #!/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. + DIR=$(dirname $0) . "$DIR/common" http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/testdata/cluster/node_templates/common/etc/init.d/common.tmpl ---------------------------------------------------------------------- diff --git a/testdata/cluster/node_templates/common/etc/init.d/common.tmpl b/testdata/cluster/node_templates/common/etc/init.d/common.tmpl index 9b3e853..c6f6204 100644 --- a/testdata/cluster/node_templates/common/etc/init.d/common.tmpl +++ b/testdata/cluster/node_templates/common/etc/init.d/common.tmpl @@ -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. + NODE_DIR="${NODE_DIR}" PID_DIR="$NODE_DIR/var/run" LOG_DIR="$NODE_DIR/var/log" http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/testdata/cluster/node_templates/common/etc/init.d/hdfs-common ---------------------------------------------------------------------- diff --git a/testdata/cluster/node_templates/common/etc/init.d/hdfs-common b/testdata/cluster/node_templates/common/etc/init.d/hdfs-common index 290f5c8..9a7ddd3 100644 --- a/testdata/cluster/node_templates/common/etc/init.d/hdfs-common +++ b/testdata/cluster/node_templates/common/etc/init.d/hdfs-common @@ -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. + export HADOOP_LOG_DIR="$LOG_DIR/hadoop-hdfs" export HADOOP_ROOT_LOGGER="${HADOOP_ROOT_LOGGER:-INFO,RFA}" export HADOOP_LOGFILE=$(basename $0).log http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/testdata/cluster/node_templates/common/etc/init.d/hdfs-datanode ---------------------------------------------------------------------- diff --git a/testdata/cluster/node_templates/common/etc/init.d/hdfs-datanode b/testdata/cluster/node_templates/common/etc/init.d/hdfs-datanode index 705fd23..9a848e2 100755 --- a/testdata/cluster/node_templates/common/etc/init.d/hdfs-datanode +++ b/testdata/cluster/node_templates/common/etc/init.d/hdfs-datanode @@ -1,5 +1,22 @@ #!/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. + DIR=$(dirname $0) . "$DIR/common" http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/testdata/cluster/node_templates/common/etc/init.d/hdfs-namenode ---------------------------------------------------------------------- diff --git a/testdata/cluster/node_templates/common/etc/init.d/hdfs-namenode b/testdata/cluster/node_templates/common/etc/init.d/hdfs-namenode index 9ab0fbe..4b2074f 100755 --- a/testdata/cluster/node_templates/common/etc/init.d/hdfs-namenode +++ b/testdata/cluster/node_templates/common/etc/init.d/hdfs-namenode @@ -1,5 +1,22 @@ #!/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. + DIR=$(dirname $0) . "$DIR/common" http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/testdata/cluster/node_templates/common/etc/init.d/yarn-common ---------------------------------------------------------------------- diff --git a/testdata/cluster/node_templates/common/etc/init.d/yarn-common b/testdata/cluster/node_templates/common/etc/init.d/yarn-common index 82f28b2..84d0199 100644 --- a/testdata/cluster/node_templates/common/etc/init.d/yarn-common +++ b/testdata/cluster/node_templates/common/etc/init.d/yarn-common @@ -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. + export YARN_LOG_DIR="$LOG_DIR/hadoop-yarn" export YARN_ROOT_LOGGER="${YARN_ROOT_LOGGER:-DEBUG,RFA}" http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/testdata/cluster/node_templates/common/etc/init.d/yarn-nodemanager ---------------------------------------------------------------------- diff --git a/testdata/cluster/node_templates/common/etc/init.d/yarn-nodemanager b/testdata/cluster/node_templates/common/etc/init.d/yarn-nodemanager index 08a6bf0..e8714d5 100755 --- a/testdata/cluster/node_templates/common/etc/init.d/yarn-nodemanager +++ b/testdata/cluster/node_templates/common/etc/init.d/yarn-nodemanager @@ -1,5 +1,22 @@ #!/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. + DIR=$(dirname $0) . "$DIR/common" http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/bd294732/testdata/cluster/node_templates/common/etc/init.d/yarn-resourcemanager ---------------------------------------------------------------------- diff --git a/testdata/cluster/node_templates/common/etc/init.d/yarn-resourcemanager b/testdata/cluster/node_templates/common/etc/init.d/yarn-resourcemanager index 6d3cd83..0fd639d 100755 --- a/testdata/cluster/node_templates/common/etc/init.d/yarn-resourcemanager +++ b/testdata/cluster/node_templates/common/etc/init.d/yarn-resourcemanager @@ -1,5 +1,22 @@ #!/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. + DIR=$(dirname $0) . "$DIR/common"
