Skip to content

Commit 1a65e86

Browse files
author
Neha Narkhede
committed
Pulling latest master, v0.6 into the compression branch
2 parents d5386d2 + e28022f commit 1a65e86

File tree

435 files changed

+17071
-8848
lines changed

Some content is hidden

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

435 files changed

+17071
-8848
lines changed

.classpath

-26
This file was deleted.

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
dist
22
*classes
3+
target/
4+
lib_managed/
5+
src_managed/
6+
project/boot/
7+
project/plugins/project/
8+
project/sbt_project_definition.iml

CONTRIBUTORS

+3
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ Neha Narkhede
55
Fatih Emekci
66
Lin Guo
77
Shirshanka Das
8+
Roshan Sumbaly
9+
Sam Shah
10+
Chris Burroughs

README.md

+37-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,45 @@ Kafka is aimed at providing a publish-subscribe solution that can handle all act
1111

1212
See our [web site](http://sna-projects.com/kafka) for more details on the project.
1313

14+
## Contribution ##
15+
1416
Kafka is a new project, and we are interested in building the community; we would welcome any thoughts or patches. You can reach us [here](http://groups.google.com/group/kafka-dev).
1517

1618
To get kafka code:
1719
git clone [email protected]:kafka-dev/kafka.git kafka
1820

19-
To run unit tests:
20-
ant test (you need to make sure that scala 2.8.0 is in your PATH)
21+
To build:
22+
23+
1. ./sbt
24+
2. update - This downloads all the dependencies for all sub projects
25+
3. package - This will compile all sub projects and creates all the jars
26+
27+
Here are some useful sbt commands, to be executed at the sbt command prompt (./sbt) -
28+
29+
actions : Lists all the sbt commands and their descriptions
30+
31+
clean : Deletes all generated files (the target directory).
32+
33+
clean-cache : Deletes the cache of artifacts downloaded for automatically managed dependencies.
34+
35+
clean-lib : Deletes the managed library directory.
36+
37+
compile : Compile all the sub projects, but not create the jars
38+
39+
test : Run all unit tests in all sub projects
40+
41+
release-zip : Create all the jars, run unit tests and create a deployable release zip
42+
43+
package-all: Creates jars for src, test, docs etc
44+
45+
projects : List all the sub projects
46+
47+
project sub_project_name : Switch to a particular sub-project. For example, to switch to the core kafka code, use "project core-kafka"
48+
49+
Following commands can be run only on a particular sub project -
50+
51+
test-only package.test.TestName : Runs only the specified test in the current sub project
52+
53+
run : Provides options to run any of the classes that have a main method. For example, you can switch to project java-examples, and run the examples there by executing "project java-examples" followed by "run"
54+
55+

contrib/deploy/resources/log4j-stderr.properties bin/kafka-console-consumer-log4j.properties

-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,3 @@ log4j.appender.stderr.target=System.err
55
log4j.appender.stderr.layout=org.apache.log4j.PatternLayout
66
log4j.appender.stderr.layout.ConversionPattern=[%d] %p %m (%c)%n
77

8-
# Turn on all our debugging info
9-
#log4j.logger=DEBUG
10-
#log4j.logger.httpclient.wire=DEBUG
11-
log4j.logger.org.mortbay.log=WARN

bin/kafka-console-consumer.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
base_dir=$(dirname $0)
4+
export KAFKA_OPTS="-Xmx512M -server -Dcom.sun.management.jmxremote -Dlog4j.configuration=file:$base_dir/kafka-console-consumer-log4j.properties"
5+
$base_dir/kafka-run-class.sh kafka.consumer.ConsoleConsumer $@

bin/kafka-consumer-perf-test.sh

100644100755
File mode changed.

bin/kafka-producer-perf-test.sh

100644100755
File mode changed.

bin/kafka-run-class.sh

+20-8
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,40 @@ fi
88

99
base_dir=$(dirname $0)/..
1010

11-
#CLASSPATH=$CLASSPATH:bin
12-
13-
for file in $base_dir/dist/*.jar;
11+
for file in $base_dir/project/boot/scala-2.8.0/lib/*.jar;
1412
do
1513
CLASSPATH=$CLASSPATH:$file
1614
done
1715

18-
for file in $base_dir/lib/*.jar;
16+
for file in $base_dir/core/target/scala_2.8.0/*.jar;
1917
do
2018
CLASSPATH=$CLASSPATH:$file
2119
done
2220

23-
CLASSPATH=dist:$CLASSPATH
21+
for file in $base_dir/core/lib/*.jar;
22+
do
23+
CLASSPATH=$CLASSPATH:$file
24+
done
2425

26+
for file in $base_dir/core/lib_managed/scala_2.8.0/compile/*.jar;
27+
do
28+
if [ ${file##*/} != "sbt-launch.jar" ]; then
29+
CLASSPATH=$CLASSPATH:$file
30+
fi
31+
done
32+
if [ -z "$KAFKA_JMX_OPTS" ]; then
33+
KAFKA_JMX_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false "
34+
fi
2535
if [ -z "$KAFKA_OPTS" ]; then
26-
KAFKA_OPTS="-Xmx512M -server -Dcom.sun.management.jmxremote"
36+
KAFKA_OPTS="-Xmx512M -server -Dlog4j.configuration=file:$base_dir/config/log4j.properties"
37+
fi
38+
if [ $JMX_PORT ]; then
39+
KAFKA_JMX_OPTS="$KAFKA_JMX_OPTS -Dcom.sun.management.jmxremote.port=$JMX_PORT "
2740
fi
28-
2941
if [ -z "$JAVA_HOME" ]; then
3042
JAVA="java"
3143
else
3244
JAVA="$JAVA_HOME/bin/java"
3345
fi
3446

35-
$JAVA $KAFKA_OPTS -cp $CLASSPATH $@
47+
$JAVA $KAFKA_OPTS $KAFKA_JMX_OPTS -cp $CLASSPATH $@

bin/kafka-server-start.sh

+2
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ then
66
exit 1
77
fi
88

9+
export JMX_PORT="9999"
10+
911
$(dirname $0)/kafka-run-class.sh kafka.Kafka $@

build.properties

-24
This file was deleted.

build.xml

-168
This file was deleted.

clients/clojure/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lib
2+
classes

0 commit comments

Comments
 (0)