Skip to content

Commit fa09aac

Browse files
author
Neha Narkhede
committed
KAFKA-141 Check and make sure that the files that have been donated have been updated to reflect the new ASF copyright;patched by nehanarkhede; reviewd by jjkoshy
git-svn-id: https://svn.apache.org/repos/asf/incubator/kafka/trunk@1180185 13f79535-47bb-0310-9956-ffa450edef68
1 parent f34dfc0 commit fa09aac

File tree

83 files changed

+1193
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+1193
-1
lines changed

bin/kafka-console-consumer-log4j.properties

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
115
log4j.rootLogger=INFO, stderr
216

317
log4j.appender.stderr=org.apache.log4j.ConsoleAppender

bin/kafka-console-consumer.sh

+14
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
#!/bin/bash
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
216

317
base_dir=$(dirname $0)
418
export KAFKA_OPTS="-Xmx512M -server -Dcom.sun.management.jmxremote -Dlog4j.configuration=file:$base_dir/kafka-console-consumer-log4j.properties"

bin/kafka-console-producer.sh

+14
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
#!/bin/bash
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
216

317
base_dir=$(dirname $0)
418
$base_dir/kafka-run-class.sh kafka.producer.ConsoleProducer $@

bin/kafka-consumer-perf-test.sh

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
#!/bin/bash
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
216

317
$(dirname $0)/kafka-run-class.sh kafka.tools.ConsumerPerformance $@

bin/kafka-consumer-shell.sh

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
#!/bin/bash
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
216

317
$(dirname $0)/kafka-run-class.sh kafka.tools.ConsumerShell $@

bin/kafka-producer-perf-test.sh

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
#!/bin/bash
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
216

317
$(dirname $0)/kafka-run-class.sh kafka.tools.ProducerPerformance $@

bin/kafka-producer-shell.sh

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
#!/bin/bash
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
216

317
$(dirname $0)/kafka-run-class.sh kafka.tools.ProducerShell $@

bin/kafka-replay-log-producer.sh

+14
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
#!/bin/bash
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
216

317
base_dir=$(dirname $0)
418
export KAFKA_OPTS="-Xmx512M -server -Dcom.sun.management.jmxremote -Dlog4j.configuration=file:$base_dir/../config/log4j.properties"

bin/kafka-run-class.sh

+14
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
#!/bin/bash
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
216

317
if [ $# -lt 1 ];
418
then

bin/kafka-server-start.sh

+14
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
#!/bin/bash
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
216

317
if [ $# -lt 1 ];
418
then

bin/kafka-server-stop.sh

+14
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
11
#!/bin/sh
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
216
ps ax | grep -i 'kafka.Kafka' | grep -v grep | awk '{print $1}' | xargs kill -SIGINT
+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
#!/bin/bash
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
216

317
$(dirname $0)/kafka-run-class.sh kafka.tools.SimpleConsumerPerformance $@

bin/kafka-simple-consumer-shell.sh

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
#!/bin/bash
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
216

317
$(dirname $0)/kafka-run-class.sh kafka.tools.SimpleConsumerShell $@

bin/zookeeper-server-start.sh

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
#!/bin/bash
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
216

317
if [ $# -ne 1 ];
418
then
519
echo "USAGE: $0 zookeeper.properties"
620
exit 1
721
fi
822

9-
$(dirname $0)/kafka-run-class.sh org.apache.zookeeper.server.quorum.QuorumPeerMain $@
23+
$(dirname $0)/kafka-run-class.sh org.apache.zookeeper.server.quorum.QuorumPeerMain $@

bin/zookeeper-server-stop.sh

+14
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
11
#!/bin/sh
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
216
ps ax | grep -i 'zookeeper' | grep -v grep | awk '{print $1}' | xargs kill -SIGINT

clients/clojure/leiningen/run_example.clj

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
;; Licensed to the Apache Software Foundation (ASF) under one or more
2+
;; contributor license agreements. See the NOTICE file distributed with
3+
;; this work for additional information regarding copyright ownership.
4+
;; The ASF licenses this file to You under the Apache License, Version 2.0
5+
;; (the "License"); you may not use this file except in compliance with
6+
;; the License. You may obtain a copy of the License at
7+
;;
8+
;; http://www.apache.org/licenses/LICENSE-2.0
9+
;;
10+
;; Unless required by applicable law or agreed to in writing, software
11+
;; distributed under the License is distributed on an "AS IS" BASIS,
12+
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
;; See the License for the specific language governing permissions and
14+
;; limitations under the License.
115
(ns leiningen.run-example
216
(:use [leiningen.compile :only (eval-in-project)]))
317

clients/clojure/project.clj

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
;; Licensed to the Apache Software Foundation (ASF) under one or more
2+
;; contributor license agreements. See the NOTICE file distributed with
3+
;; this work for additional information regarding copyright ownership.
4+
;; The ASF licenses this file to You under the Apache License, Version 2.0
5+
;; (the "License"); you may not use this file except in compliance with
6+
;; the License. You may obtain a copy of the License at
7+
;;
8+
;; http://www.apache.org/licenses/LICENSE-2.0
9+
;;
10+
;; Unless required by applicable law or agreed to in writing, software
11+
;; distributed under the License is distributed on an "AS IS" BASIS,
12+
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
;; See the License for the specific language governing permissions and
14+
;; limitations under the License.
115
(defproject kafka-clj "0.1-SNAPSHOT"
216
:description "Kafka client for Clojure."
317
:url "http://sna-projects.com/kafka/"

clients/clojure/resources/log4j.properties

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
115
log4j.rootLogger=INFO, A1
216

317
log4j.appender.A1=org.apache.log4j.ConsoleAppender

clients/clojure/src/kafka/buffer.clj

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
;; Licensed to the Apache Software Foundation (ASF) under one or more
2+
;; contributor license agreements. See the NOTICE file distributed with
3+
;; this work for additional information regarding copyright ownership.
4+
;; The ASF licenses this file to You under the Apache License, Version 2.0
5+
;; (the "License"); you may not use this file except in compliance with
6+
;; the License. You may obtain a copy of the License at
7+
;;
8+
;; http://www.apache.org/licenses/LICENSE-2.0
9+
;;
10+
;; Unless required by applicable law or agreed to in writing, software
11+
;; distributed under the License is distributed on an "AS IS" BASIS,
12+
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
;; See the License for the specific language governing permissions and
14+
;; limitations under the License.
115
(ns #^{:doc "Wrapper around ByteBuffer,
216
provides a DSL to model byte messages."}
317
kafka.buffer

clients/clojure/src/kafka/example.clj

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
;; Licensed to the Apache Software Foundation (ASF) under one or more
2+
;; contributor license agreements. See the NOTICE file distributed with
3+
;; this work for additional information regarding copyright ownership.
4+
;; The ASF licenses this file to You under the Apache License, Version 2.0
5+
;; (the "License"); you may not use this file except in compliance with
6+
;; the License. You may obtain a copy of the License at
7+
;;
8+
;; http://www.apache.org/licenses/LICENSE-2.0
9+
;;
10+
;; Unless required by applicable law or agreed to in writing, software
11+
;; distributed under the License is distributed on an "AS IS" BASIS,
12+
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
;; See the License for the specific language governing permissions and
14+
;; limitations under the License.
115
(ns #^{:doc "Producer/Consumer example."}
216
kafka.example
317
(:use (clojure.contrib logging)

clients/clojure/src/kafka/kafka.clj

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
;; Licensed to the Apache Software Foundation (ASF) under one or more
2+
;; contributor license agreements. See the NOTICE file distributed with
3+
;; this work for additional information regarding copyright ownership.
4+
;; The ASF licenses this file to You under the Apache License, Version 2.0
5+
;; (the "License"); you may not use this file except in compliance with
6+
;; the License. You may obtain a copy of the License at
7+
;;
8+
;; http://www.apache.org/licenses/LICENSE-2.0
9+
;;
10+
;; Unless required by applicable law or agreed to in writing, software
11+
;; distributed under the License is distributed on an "AS IS" BASIS,
12+
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
;; See the License for the specific language governing permissions and
14+
;; limitations under the License.
115
(ns #^{:doc "Core kafka-clj module,
216
provides producer and consumer factories."}
317
kafka.kafka

0 commit comments

Comments
 (0)