From 07d8136bc4b8e9bc9d38671ece36ebcca40d53c5 Mon Sep 17 00:00:00 2001 From: Chris White Date: Wed, 30 Oct 2013 18:50:02 -0400 Subject: [PATCH] Added Apache License to files - #1 --- accumulo-recipe.properties | 16 ++++++++++++++++ .../AccumuloConfigurationBuilder.java | 18 ++++++++++++++++++ .../service/accumulo/AccumuloClusterTest.java | 18 ++++++++++++++++++ src/test/resources/Dockerfile | 18 ++++++++++++++++++ src/test/resources/docker-start.sh | 19 ++++++++++++++++++- src/test/resources/docker-stop.sh | 18 ++++++++++++++++++ trystack.sh | 17 +++++++++++++++++ 7 files changed, 123 insertions(+), 1 deletion(-) diff --git a/accumulo-recipe.properties b/accumulo-recipe.properties index d311054..0898da5 100644 --- a/accumulo-recipe.properties +++ b/accumulo-recipe.properties @@ -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. +# # 2 node cluster whirr.instance-templates=1 hadoop-namenode+hadoop-jobtracker+zookeeper+accumulo-master+accumulo-monitor+accumulo-gc, 1 hadoop-datanode+hadoop-tasktracker+accumulo-tserver+accumulo-tracer diff --git a/src/main/java/org/apache/whirr/service/accumulo/AccumuloConfigurationBuilder.java b/src/main/java/org/apache/whirr/service/accumulo/AccumuloConfigurationBuilder.java index 21bf365..5614a26 100644 --- a/src/main/java/org/apache/whirr/service/accumulo/AccumuloConfigurationBuilder.java +++ b/src/main/java/org/apache/whirr/service/accumulo/AccumuloConfigurationBuilder.java @@ -1,3 +1,21 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.apache.whirr.service.accumulo; import java.io.IOException; diff --git a/src/test/java/org/apache/whirr/service/accumulo/AccumuloClusterTest.java b/src/test/java/org/apache/whirr/service/accumulo/AccumuloClusterTest.java index 7206d36..a141188 100644 --- a/src/test/java/org/apache/whirr/service/accumulo/AccumuloClusterTest.java +++ b/src/test/java/org/apache/whirr/service/accumulo/AccumuloClusterTest.java @@ -1,3 +1,21 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.apache.whirr.service.accumulo; import java.io.File; diff --git a/src/test/resources/Dockerfile b/src/test/resources/Dockerfile index ae4e06e..e935495 100644 --- a/src/test/resources/Dockerfile +++ b/src/test/resources/Dockerfile @@ -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. +# + + FROM ubuntu:12.04 RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list diff --git a/src/test/resources/docker-start.sh b/src/test/resources/docker-start.sh index 84e6684..f24d396 100755 --- a/src/test/resources/docker-start.sh +++ b/src/test/resources/docker-start.sh @@ -1,4 +1,21 @@ -#/bin/bash +#!/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 -v #set -x diff --git a/src/test/resources/docker-stop.sh b/src/test/resources/docker-stop.sh index 2627ea5..da8b87f 100755 --- a/src/test/resources/docker-stop.sh +++ b/src/test/resources/docker-stop.sh @@ -1,5 +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. +# + + CONTAINERS=`cat target/docker.containers` DOCKER_CMD="sudo docker" diff --git a/trystack.sh b/trystack.sh index 586a294..773dbaf 100755 --- a/trystack.sh +++ b/trystack.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. +# + # Test script for launching on trystack WHIRR_OPTS="--config target/trystack-accumulo.properties"