diff --git llap-server/scripts/serviceCheckScript.sql llap-server/scripts/serviceCheckScript.sql new file mode 100644 index 0000000..0c3d64e --- /dev/null +++ llap-server/scripts/serviceCheckScript.sql @@ -0,0 +1,12 @@ +set hive.execution.mode=llap; +set hive.llap.execution.mode=all; + + +CREATE temporary TABLE ${hiveconf:hiveLlapServiceCheck} (name VARCHAR(64), age INT) + CLUSTERED BY (age) INTO 2 BUCKETS STORED AS ORC; + +INSERT INTO TABLE ${hiveconf:hiveLlapServiceCheck} + VALUES ('fred flintstone', 35), ('barney rubble', 32); + +select count(1) from ${hiveconf:hiveLlapServiceCheck}; + diff --git llap-server/sql/serviceCheckScript.sql llap-server/sql/serviceCheckScript.sql deleted file mode 100644 index 0c3d64e..0000000 --- llap-server/sql/serviceCheckScript.sql +++ /dev/null @@ -1,12 +0,0 @@ -set hive.execution.mode=llap; -set hive.llap.execution.mode=all; - - -CREATE temporary TABLE ${hiveconf:hiveLlapServiceCheck} (name VARCHAR(64), age INT) - CLUSTERED BY (age) INTO 2 BUCKETS STORED AS ORC; - -INSERT INTO TABLE ${hiveconf:hiveLlapServiceCheck} - VALUES ('fred flintstone', 35), ('barney rubble', 32); - -select count(1) from ${hiveconf:hiveLlapServiceCheck}; - diff --git metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/IExtrapolatePartStatus.java metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/IExtrapolatePartStatus.java index 99af060..af75bce 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/IExtrapolatePartStatus.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/IExtrapolatePartStatus.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 org.apache.hadoop.hive.metastore.hbase.stats; import java.util.Map; diff --git metastore/src/model/org/apache/hadoop/hive/metastore/model/MConstraint.java metastore/src/model/org/apache/hadoop/hive/metastore/model/MConstraint.java index 5876060..6da40ac 100644 --- metastore/src/model/org/apache/hadoop/hive/metastore/model/MConstraint.java +++ metastore/src/model/org/apache/hadoop/hive/metastore/model/MConstraint.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 org.apache.hadoop.hive.metastore.model; import java.io.Serializable; diff --git orc/src/java/org/apache/orc/impl/DataReaderProperties.java orc/src/java/org/apache/orc/impl/DataReaderProperties.java index bb73d53..22301e8 100644 --- orc/src/java/org/apache/orc/impl/DataReaderProperties.java +++ orc/src/java/org/apache/orc/impl/DataReaderProperties.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 org.apache.orc.impl; import com.google.common.base.Preconditions; diff --git orc/src/test/org/apache/orc/impl/TestDataReaderProperties.java orc/src/test/org/apache/orc/impl/TestDataReaderProperties.java index b9918f2..46546b0 100644 --- orc/src/test/org/apache/orc/impl/TestDataReaderProperties.java +++ orc/src/test/org/apache/orc/impl/TestDataReaderProperties.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 org.apache.orc.impl; import org.apache.hadoop.fs.FileSystem; diff --git packaging/src/main/assembly/bin.xml packaging/src/main/assembly/bin.xml index 8fd934a..03d40f0 100644 --- packaging/src/main/assembly/bin.xml +++ packaging/src/main/assembly/bin.xml @@ -169,7 +169,7 @@ 666 - ${project.parent.basedir}/llap-server/sql + ${project.parent.basedir}/llap-server/scripts **/* diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/spark/status/impl/SparkJobUtils.java ql/src/java/org/apache/hadoop/hive/ql/exec/spark/status/impl/SparkJobUtils.java index 383d76f..eff208a 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/spark/status/impl/SparkJobUtils.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/spark/status/impl/SparkJobUtils.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 org.apache.hadoop.hive.ql.exec.spark.status.impl; import java.util.LinkedHashMap; diff --git ql/src/java/org/apache/hadoop/hive/ql/txn/AcidWriteSetService.java ql/src/java/org/apache/hadoop/hive/ql/txn/AcidWriteSetService.java index 9085a6a..2b8f815 100644 --- ql/src/java/org/apache/hadoop/hive/ql/txn/AcidWriteSetService.java +++ ql/src/java/org/apache/hadoop/hive/ql/txn/AcidWriteSetService.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 org.apache.hadoop.hive.ql.txn; import org.apache.hadoop.hive.conf.HiveConf; diff --git ql/src/test/org/apache/hadoop/hive/ql/plan/TestTezWorkConcurrency.java ql/src/test/org/apache/hadoop/hive/ql/plan/TestTezWorkConcurrency.java index c59fd10..9af1c1b 100644 --- ql/src/test/org/apache/hadoop/hive/ql/plan/TestTezWorkConcurrency.java +++ ql/src/test/org/apache/hadoop/hive/ql/plan/TestTezWorkConcurrency.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 org.apache.hadoop.hive.ql.plan; import com.google.common.collect.Lists; diff --git serde/src/java/org/apache/hadoop/hive/serde2/thrift/ThriftFormatter.java serde/src/java/org/apache/hadoop/hive/serde2/thrift/ThriftFormatter.java index a4c120e..f93f999 100644 --- serde/src/java/org/apache/hadoop/hive/serde2/thrift/ThriftFormatter.java +++ serde/src/java/org/apache/hadoop/hive/serde2/thrift/ThriftFormatter.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 org.apache.hadoop.hive.serde2.thrift; import java.io.IOException; diff --git storage-api/src/test/org/apache/hadoop/hive/ql/util/JavaDataModelTest.java storage-api/src/test/org/apache/hadoop/hive/ql/util/JavaDataModelTest.java index 35976cc..7cd2e12 100644 --- storage-api/src/test/org/apache/hadoop/hive/ql/util/JavaDataModelTest.java +++ storage-api/src/test/org/apache/hadoop/hive/ql/util/JavaDataModelTest.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 org.apache.hadoop.hive.ql.util; import org.junit.After;