Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
171 commits
Select commit Hold shift + click to select a range
1021ea9
KAFKA 244 Improve log4j appender to use kafka.producer.Producer; patc…
Jan 13, 2012
d3c58b6
max.message.size and fetch.size defaults should be consistent; patche…
Jan 17, 2012
fe2f055
ConsumerIterator throws a IllegalStateException after a ConsumerTimeo…
Jan 19, 2012
fcc82dc
Corrupted request shuts down the broker; patched by Jun Rao; reviewed…
Feb 2, 2012
afd4b0d
KAFKA 256 Bug in the consumer rebalancing logic leads to the consumer…
Feb 2, 2012
2552a24
KAFKA-257 Hadoop producer should use software load balancer; patched …
Feb 6, 2012
345bc7b
KAFKA-263 Enhance single host broker failure test to have 2 topics wi…
Feb 7, 2012
a888a9d
KAFKA-262 Bug in the consumer rebalancing logic causes one consumer t…
Feb 9, 2012
6a3c2f2
trivial change to reduce default fetcher queue size
Feb 10, 2012
732c27f
Add a queue of zookeeper notifications in the zookeeper consumer to r…
Feb 13, 2012
0bd3b9c
time-based reconnect in producer; patched by Yang Ye; reviewed by Jun…
Feb 14, 2012
5c4ce61
add JMX on broker to track bytes/messages per topic; patched by Jun R…
Feb 15, 2012
3e79116
fix condition to use await instead of wait; patched by Jun Rao; revie…
Feb 15, 2012
2ead8a4
trivial fix to add trace logging in FetcherRunnable
Feb 15, 2012
6e1b2eb
shutdown watch executor thread properly; patched by Jun Rao; reviewed…
Feb 17, 2012
c28b3a6
KAFKA-274 Handle corrupted messages cleanly; patched by nehanarkhede;…
Feb 17, 2012
ff56247
test access, fixed space
Feb 17, 2012
a23d396
trivial fix for kafka-producer-perf-test.sh
Feb 17, 2012
95ee387
make time-based reconnect starting at a random time; patched by Yang …
Feb 20, 2012
7066d1c
A tool to GET Zookeeper partition-offset and output to files; patched…
Feb 21, 2012
22d8046
A tool to UPDATE Zookeeper partition-offset with input from a file; p…
Feb 21, 2012
333966f
Add a shallow iterator to the ByteBufferMessageSet; patched by Yang Y…
Feb 23, 2012
7e91c16
add jmx beans in broker to track # of failed requests; patched by Jun…
Feb 25, 2012
caf310c
consumer sometimes don't release partition ownership properly in ZK d…
Feb 27, 2012
d8286aa
Increase maximum value of log.retention.size; patched by Elben Shira;…
Feb 28, 2012
6c34cf2
use propertyExists to test if both broker.list and zk.connect are pre…
Feb 29, 2012
ccc464c
Niek Sanders - KAFKA-284 fixed compilation issue for cpp client
Mar 1, 2012
0443e2d
broker deletes all file segments when cleaning up an empty log segmen…
Mar 6, 2012
624a361
trivial fix to include violated payload size in MessageSizeTooLargeEx…
Mar 7, 2012
74af0de
LogManager test fails on linux; patched by Jun Rao; reviewed by Neha …
Mar 8, 2012
66d8073
Update Go Client to new version of Go; patched by AaronR; KAFKA-296
Mar 14, 2012
5e0e0b1
reverting previous commit for KAFKA-296 because patch didn't apply cl…
Mar 15, 2012
7b39d7e
kafka-console-producer does not take in customized values of --batch-…
Mar 21, 2012
e180e68
Dead code in the Log4j appender; patched by Jose Quinteiro; reviewed …
Mar 21, 2012
2bcc911
KAFKA-310 Incomplete message set validation checks in Log's append AP…
Mar 22, 2012
ba8fd9f
KAFKA-309 Bug in FileMessageSet's append API can corrupt on disk log;…
Mar 22, 2012
f834623
CallbackHandler.afterDequeuingExistingData is not called during event…
Apr 6, 2012
d9441f0
enable shallow iterator in ByteBufferMessageSet to allow mirroing dat…
Apr 6, 2012
c0e190c
Separate out Kafka mirroring into a stand-alone app; patched by Joel …
Apr 7, 2012
d97c557
KAFKA-320 testZKSendWithDeadBroker fails intermittently due to ZKNode…
Apr 8, 2012
d6b1de3
Mirroring should use multiple producers; add producer retries to Defa…
Apr 25, 2012
2a59ad7
Minor fix: Turning on TCP NODELAY in the Simple Consumer. This fix ha…
May 18, 2012
f8ce071
KAFKA-365 change copyright in NOTICE to current year, reviewed by Jun…
Jun 14, 2012
16b600d
add jmx beans in broker to track # bytes in consumer; patched by Jun …
Jun 19, 2012
1af23bb
KAFKA-368 use the pig core jar from maven instead of distributing it …
Jun 20, 2012
489b09c
KAFKA-373 Fix trunk broker failure test to work with mirror maker; pa…
Jul 6, 2012
9a84e40
message size not checked at the server; patched by Swapnil Ghike; rev…
Aug 24, 2012
21326cb
Time based log segment rollout; patched by Swapnil Ghike; reviewed by…
Aug 24, 2012
749665e
Expose JMX operation to set logger level dynamically; patched by Jun …
Aug 25, 2012
f2c901b
Require values in Utils.getTopic* methods to be positive; patched by …
Aug 25, 2012
695a8d4
Message size not checked at the server (patch v3); patched by Swapnil…
Aug 29, 2012
9e54dad
Handle topic names with / on Kafka server; patched by Swapnil Ghike; …
Sep 7, 2012
d37eb7f
TopicCount.constructTopicCount isn't thread-safe; patched by Jun Rao;…
Sep 18, 2012
e9d07d7
KAFKA-534 remove client library directory
Sep 27, 2012
2a62bdb
KAFKA-533 changes to NOTICE and LICENSE related to KAFKA-534 removing…
Sep 27, 2012
80d5710
KAFKA-538 missing apache license header in sbt and util.h
Sep 29, 2012
7294dd3
ConsumerOffsetChecker now works with hostnames (in addition to IP) in…
Oct 8, 2012
3819adc
The ConsumerStats MBean name should include the groupid; patched by M…
Oct 9, 2012
dd21b35
Fix wildcard consumption to work with greater than one stream; KAFKA-…
Oct 10, 2012
3f432cd
copy branch 0.8 to trunk
Nov 26, 2012
45ba101
Kafka has become a TLP
gmcdonald Nov 28, 2012
4be0b1b
KAFKA-521 Refactor the log subsystem. Patch reviewed by Neha.
Dec 2, 2012
4947069
KAFKA-521 Missing files on last commit.
Dec 2, 2012
a10be4b
KAFKA-597 Refactor scheduler. Fixes a couple of bugs, and adds the ab…
Dec 10, 2012
ac35ae1
KAFKA-636 Make log segment delete an asynchronous background action d…
Dec 11, 2012
739b2df
KAFKA-374 Move off the default java crc implementation to the crc cod…
jkreps Dec 16, 2012
32dae95
Merge branch '0.8' into trunk
jkreps Dec 18, 2012
a39c34a
Merge remote branch 'origin/0.8' into trunk
junrao Jan 4, 2013
222c0e4
KAFKA-657 Add APIs for the consumer to commit and fetch offsets on th…
mumrah Jan 4, 2013
274cd02
KAFKA-657 Change property name to offset.metadata.max.bytes for consi…
jkreps Jan 4, 2013
dc9edc4
fixed incubation url
Jan 5, 2013
ed36a7f
KAFKA-133 publish kafka to maven - patch by Maxime Brugidou with upda…
Jan 7, 2013
9249b76
merge from 0.8 and resolve conflicts
junrao Jan 12, 2013
d7f4109
Merge remote branch 'origin/0.8' into trunk
junrao Jan 13, 2013
b052e80
Merge remote branch 'origin/0.8' into trunk
junrao Jan 14, 2013
362eba9
Merge remote branch 'origin/0.8' into trunk
junrao Jan 15, 2013
9ee795a
merge from 0.8 and resolve conflict in Log
junrao Jan 17, 2013
9998138
Merge remote branch 'origin/0.8' into trunk
junrao Jan 21, 2013
92f177b
merge 0.8 to trunk and resolve conflicts
junrao Jan 26, 2013
e7edb5e
KAFKA-631 Implement a log cleaner for Kafka. Reviewed by Neha.
jkreps Jan 29, 2013
218e6a5
KAFKA-771 NPE in handleOffsetCommitRequest; reviewed by Neha Narkhede
mumrah Feb 25, 2013
82b11aa
KAFKA-759 Commit/FetchOffset APIs should not return versionId; review…
nehanarkhede Mar 1, 2013
4f2742d
merge from 0.8 and resolve conflicts
junrao Mar 4, 2013
c1ed12e
KAFKA-554 Dynamic per-topic configuration. This patch adds a mechanis…
jkreps Mar 8, 2013
9ff4e8e
KAFKA-739 Handle null message payloads in messages and in the log cle…
jkreps Mar 12, 2013
731ba90
kafka-823; merge 0.8 (51421fcc0111031bb77f779a6f6c00520d526a34) to tr…
junrao Apr 18, 2013
3b470f5
kafka-891; NullPointerException in ConsoleConsumer; patched by Colin …
May 30, 2013
c98bdd3
kafka-896; merge 0.8 (988d4d8e65a14390abd748318a64e281e4a37c19) to tr…
junrao Jul 8, 2013
2cda5d1
Merge branch 'trunk' of https://git-wip-us.apache.org/repos/asf/kafka…
junrao Jul 8, 2013
db37ed0
kafka-965; merge c39d37e9dd97bf2462ffbd1a96c0b2cb05034bae from 0.8 to…
junrao Jul 11, 2013
c27c768
KAFKA-852, remove clientId from Offset{Fetch,Commit}Response. Reviewe…
mumrah Jul 11, 2013
d285e26
KAFKA-925 Add a partition key that overrides the message's stored key…
jkreps Jul 29, 2013
bdb2fdc
KAFKA-995 Ensure that replica fetch size is > max message size on ser…
jkreps Aug 3, 2013
493a466
KAFKA-985 integer overflow in log time configuration values. Patch fr…
jkreps Aug 3, 2013
df18fe1
KAFKA-615 fsync asynchronous from log roll. Patch reviewed by Jun and…
jkreps Jul 17, 2013
ff62929
KAFKA-1009 DumpLogSegments tool should return error on non-existing f…
Aug 19, 2013
75d95d9
merge from 0.8 da4512174b6f7c395ffe053a86d2c6bb19d2538a and resolve c…
junrao Sep 11, 2013
8e554c4
KAFKA-1046 Added support for Scala 2.10 builds while maintaining comp…
cdfreeman Sep 13, 2013
fed901c
KAFKA-1046 New files
nehanarkhede Sep 13, 2013
3249366
merge from 0.8 c12d2ea9e5b4bdcf9aeb07c89c69553a9f270c82 to trunk
junrao Sep 13, 2013
9feef9f
Trivial commit: Fix whitespace in Utils.rm.
jkreps Sep 15, 2013
8959690
KAFKA-1053 Kafka patch review tool that integrates JIRA and reviewboa…
nehanarkhede Sep 18, 2013
bfc4ba4
Merge remote branch 'origin/0.8' into trunk
junrao Oct 7, 2013
343a1e2
Merge remote-tracking branch 'origin/0.8' into trunk
junrao Oct 8, 2013
8d4dbe6
kafka-1052; integrate add-partitions command into topicCommand; patch…
CGSriram Oct 10, 2013
ace95c4
trivial change to remove unused command bin/kafka-add-partitions.sh
junrao Oct 10, 2013
b0fecac
KAFKA-1018 tidy up the pom, 0.8.0 release, build the test jars now too
joestein Oct 11, 2013
3e7c9c6
KAFKA-1081 Clean up shell scripts. Removed re-run of failed command. …
jkreps Oct 14, 2013
062d910
KAFKA-1087 Empty topic list causes consumer to fetch metadata of all …
Oct 15, 2013
e351039
kafka-1084; Validate properties for custom serializers; patched by Fr…
fsaintjacques Oct 15, 2013
a160f10
KAFKA-1086 Improve GetOffsetShell to find metadata automatically; rev…
nehanarkhede Oct 15, 2013
c98b6de
KAFKA-1008 Lock around unmap on windows.
jkreps Oct 9, 2013
ccdb562
KAFKA-1036 Close checkpoint file before renaming it for Windows compa…
jkreps Oct 9, 2013
d5dfa28
KAFKA-1089; Fix run-class and log4j for migration tool system test; r…
jjkoshy Oct 16, 2013
b448d4e
KAFKA-1086 Improve GetOffsetShell to find metadata automatically; rev…
nehanarkhede Oct 16, 2013
c66e4d5
kafka-1091; full topic list can be read from metadata cache in the br…
junrao Oct 17, 2013
d0e948c
kafka-1090; testPipelinedRequestOrdering has transient failures; patc…
junrao Oct 17, 2013
d030778
KAFKA-1042 logSegments(from, to) Misses first segment.
jkreps Oct 18, 2013
b61d147
KAFKA-1094 Configure reviewboard url in kafka-patch-review tool; revi…
Oct 19, 2013
0198e67
KAFKA-1042 follow up compilation fix; reviewed by Neha Narkhede
jmlvanre Oct 21, 2013
0e90c24
KAFKA-1098 Fix failing test in LogCleaner.
jkreps Oct 25, 2013
274b12f
kafka-918; Change log.retention.hours to be log.retention.mins; patch…
alinvasile Oct 25, 2013
bd49e4f
KAFKA-1001; Handle follower transition in batch; patched by Guozhang …
Oct 29, 2013
bf4dbd5
KAFKA-1060 Break-down sendTime into responseQueueTime and the real se…
Oct 30, 2013
a55ec06
kafka-1092; Add server config parameter to separate bind address and …
theduderog Oct 31, 2013
ec54773
KAFKA-1107 Broker unnecessarily recovers all logs when upgrading from…
nehanarkhede Nov 1, 2013
a4fafef
KAFKA-1107 Follow up review cleanup comments
nehanarkhede Nov 1, 2013
e602ed0
KAFKA-1113 log.cleanup.interval.mins property should be renamed; Triv…
nehanarkhede Nov 1, 2013
df7f7a2
KAFKA-1097 Race condition while reassigning low throughput partition …
nehanarkhede Nov 1, 2013
7d1ac1d
Minor logging improvement
nehanarkhede Nov 4, 2013
9861618
KAFKA-1121 DumpLogSegments tool should print absolute file name to re…
Nov 6, 2013
a700c99
KAFKA-1126 Remove the DISCLAIMER it is left over from incubation revi…
joestein Nov 8, 2013
eedbea6
KAFKA-1119 Kafka 0.8.1 overwrites previous per topic config changes; …
nehanarkhede Nov 8, 2013
7c54e39
KAFKA-1112; broker can not start itself after kafka is killed with -9…
junrao Nov 19, 2013
58789d7
kafka-1127; kafka and zookeeper server should start in daemon mode an…
junrao Nov 19, 2013
440e45e
kafka-1117; tool for checking the consistency among replicas; patched…
junrao Nov 20, 2013
9b0776d
kafka-1135; Code cleanup - use Json.encode() to write json data to zk…
Nov 20, 2013
c2dd071
KAFKA-1131 copy license and notice to the release files, reviewed by …
joestein Nov 20, 2013
cd81d37
fix for scala 2.10.1 compilation issued introduced in kafka-1117
junrao Nov 21, 2013
99dd94c
kafka-933; Hadoop example running DataGenerator causes kafka.message.…
whitelilis Nov 22, 2013
2477a74
kafka-1136; Add subAppend in Log4jAppender for generic usage; patched…
Nov 22, 2013
87efda7
kafka-1103; Consumer uses two zkclients; patched by Guozhang Wang; re…
Nov 22, 2013
bb2dc49
KAFKA-1133 LICENSE and NOTICE files need to get into META-INF when ja…
joestein Nov 25, 2013
583044c
recommit kafka-1112 since it's inadvently reverted in the commit of k…
junrao Nov 25, 2013
ac239da
Update description of num.partitions config in sample server properti…
jjkoshy Nov 26, 2013
df288b7
kafka-1140; Move the decoding logic from ConsumerIterator.makeNext to…
Nov 28, 2013
224f192
kafka-1152; ReplicaManager's handling of the leaderAndIsrRequest shou…
Nov 29, 2013
7c79514
kafka-1154; replicas may not have consistent data after becoming foll…
junrao Dec 2, 2013
b638b0f
kafka-1157; Clean up Per-topic Configuration from Kafka properties; p…
Dec 3, 2013
ea3961f
KAFKA-1156 Improve reassignment tool to output the existing assignmen…
nehanarkhede Dec 4, 2013
6c36bee
minor fix for KAFKA-1152; ReplicaManager's handling of the leaderAndI…
Dec 4, 2013
8a2ba3f
kafka-1168; OfflinePartitionCount in JMX can be incorrect during cont…
junrao Dec 4, 2013
7dee06e
kafka-1169; missing synchronization in access to leaderCache in Kafka…
junrao Dec 5, 2013
876cfdb
KAFKA-1167 Improve the kafka-topics tool to list the topics with over…
nehanarkhede Dec 6, 2013
32aae72
KAFKA-1170 ISR can be inconsistent during partition reassignment for …
nehanarkhede Dec 7, 2013
6bc290f
KAFKA-1178 Replica fetcher thread dies while becoming follower; revie…
nehanarkhede Dec 11, 2013
169a79e
KAFKA-1142 Patch review tool should take diff with origin from last d…
nehanarkhede Dec 12, 2013
dd58d75
KAFKA-1134 onControllerFailover function should be synchronized with …
nehanarkhede Dec 12, 2013
b5d1687
KAFKA-1139 Topic data change handling callback should not call synced…
nehanarkhede Dec 19, 2013
b23cf19
KAFKA-930 leader auto rebalance feature; reviewed by Neha Narkhede, J…
sriramsub Dec 20, 2013
10fa200
KAFKA-1185 Improve leader elector module to have a resign API; review…
nehanarkhede Dec 20, 2013
a119f53
Rebased from trunk to resolve conflicts between KAFKA-1185 and KAFKA-930
nehanarkhede Jan 3, 2014
3f88be6
KAFKA-1187 Controller should retry connecting to brokers to send stat…
nehanarkhede Jan 3, 2014
15f3c84
kafka-1198; NullPointerException in describe topic; patched by Guozha…
Jan 3, 2014
f63e3f7
kafka-1074; Reassign partitions should delete the old replicas from d…
junrao Jan 8, 2014
d2e2c60
KAFKA-1199 Add a reduced access log level; reviewed by Guozhang Wang …
nehanarkhede Jan 13, 2014
d401292
KAFKA-1200 inconsistent log levels when consumed offset is reset patc…
joestein Jan 14, 2014
855340a
kafka-1202; optimize ZK access in KafkaController; also incorporating…
junrao Jan 15, 2014
c2ed641
kafka-1208; Update system test still to use kafka-topics instead of k…
Jan 16, 2014
e1f7bea
kafka-1205; README in examples not update; patched by Ailing Zhang; r…
ailing-bot Jan 17, 2014
088cc3b
Adding rack-aware replication option. rack-id defaults to -1. use the…
jmlvanre Feb 1, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions DISCLAIMER

This file was deleted.

18 changes: 0 additions & 18 deletions bin/kafka-add-partitions.sh

This file was deleted.

2 changes: 1 addition & 1 deletion bin/kafka-console-consumer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# limitations under the License.

export KAFKA_HEAP_OPTS="-Xmx512M"
$(dirname $0)/kafka-run-class.sh kafka.consumer.ConsoleConsumer $@
exec $(dirname $0)/kafka-run-class.sh kafka.consumer.ConsoleConsumer $@
2 changes: 1 addition & 1 deletion bin/kafka-console-producer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# limitations under the License.

export KAFKA_HEAP_OPTS="-Xmx512M"
$(dirname $0)/kafka-run-class.sh kafka.producer.ConsoleProducer $@
exec $(dirname $0)/kafka-run-class.sh kafka.producer.ConsoleProducer $@
2 changes: 1 addition & 1 deletion bin/kafka-consumer-perf-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# limitations under the License.

export KAFKA_HEAP_OPTS="-Xmx512M"
$(dirname $0)/kafka-run-class.sh kafka.perf.ConsumerPerformance $@
exec $(dirname $0)/kafka-run-class.sh kafka.perf.ConsumerPerformance $@
17 changes: 0 additions & 17 deletions bin/kafka-create-topic.sh

This file was deleted.

2 changes: 1 addition & 1 deletion bin/kafka-preferred-replica-election.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

$(dirname $0)/kafka-run-class.sh kafka.admin.PreferredReplicaLeaderElectionCommand $@
exec $(dirname $0)/kafka-run-class.sh kafka.admin.PreferredReplicaLeaderElectionCommand $@
2 changes: 1 addition & 1 deletion bin/kafka-producer-perf-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# limitations under the License.

export KAFKA_HEAP_OPTS="-Xmx512M"
$(dirname $0)/kafka-run-class.sh kafka.perf.ProducerPerformance $@
exec $(dirname $0)/kafka-run-class.sh kafka.perf.ProducerPerformance $@
2 changes: 1 addition & 1 deletion bin/kafka-reassign-partitions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

$(dirname $0)/kafka-run-class.sh kafka.admin.ReassignPartitionsCommand $@
exec $(dirname $0)/kafka-run-class.sh kafka.admin.ReassignPartitionsCommand $@
2 changes: 1 addition & 1 deletion bin/kafka-replay-log-producer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

$(dirname $0)/kafka-run-class.sh kafka.tools.ReplayLogProducer $@
exec $(dirname $0)/kafka-run-class.sh kafka.tools.ReplayLogProducer $@
57 changes: 37 additions & 20 deletions bin/kafka-run-class.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

if [ $# -lt 1 ];
then
echo "USAGE: $0 classname [opts]"
echo "USAGE: $0 [-daemon] [-name servicename] [-loggc] classname [opts]"
exit 1
fi

Expand Down Expand Up @@ -69,6 +69,8 @@ if [ -z "$KAFKA_LOG4J_OPTS" ]; then
KAFKA_LOG4J_OPTS="-Dlog4j.configuration=file:$base_dir/config/tools-log4j.properties"
fi

KAFKA_LOG4J_OPTS="-Dkafka.logs.dir=$LOG_DIR $KAFKA_LOG4J_OPTS"

# Generic jvm settings you want to add
if [ -z "$KAFKA_OPTS" ]; then
KAFKA_OPTS=""
Expand All @@ -88,33 +90,48 @@ fi

# JVM performance options
if [ -z "$KAFKA_JVM_PERFORMANCE_OPTS" ]; then
KAFKA_JVM_PERFORMANCE_OPTS="-server -XX:+UseCompressedOops -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+CMSScavengeBeforeRemark -XX:+DisableExplicitGC"
KAFKA_JVM_PERFORMANCE_OPTS="-server -XX:+UseCompressedOops -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+CMSScavengeBeforeRemark -XX:+DisableExplicitGC -Djava.awt.headless=true"
fi


while [ $# -gt 0 ]; do
COMMAND=$1
case $COMMAND in
-name)
DAEMON_NAME=$2
CONSOLE_OUTPUT_FILE=$LOG_DIR/$DAEMON_NAME.out
shift 2
;;
-loggc)
if [ -z "$KAFKA_GC_LOG_OPTS"] ; then
GC_LOG_ENABLED="true"
fi
shift
;;
-daemon)
DAEMON_MODE="true"
shift
;;
*)
break
;;
esac
done

# GC options
GC_FILE_SUFFIX='-gc.log'
GC_LOG_FILE_NAME=''
if [ "$1" = "daemon" ] && [ -z "$KAFKA_GC_LOG_OPTS"] ; then
shift
GC_LOG_FILE_NAME=$1$GC_FILE_SUFFIX
shift
if [ "x$GC_LOG_ENABLED" = "xtrue" ]; then
GC_LOG_FILE_NAME=$DAEMON_NAME$GC_FILE_SUFFIX
KAFKA_GC_LOG_OPTS="-Xloggc:$LOG_DIR/$GC_LOG_FILE_NAME -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps "
fi

$JAVA $KAFKA_HEAP_OPTS $KAFKA_JVM_PERFORMANCE_OPTS $KAFKA_GC_LOG_OPTS $KAFKA_JMX_OPTS $KAFKA_LOG4J_OPTS -cp $CLASSPATH $KAFKA_OPTS "$@"

exitval=$?

if [ $exitval -eq "1" ] ; then
$JAVA $KAFKA_HEAP_OPTS $KAFKA_JVM_PERFORMANCE_OPTS $KAFKA_GC_LOG_OPTS $KAFKA_JMX_OPTS $KAFKA_LOG4J_OPTS -cp $CLASSPATH $KAFKA_OPTS "$@" >& exception.txt
exception=`cat exception.txt`
noBuildMessage='Please build the project using sbt. Documentation is available at http://kafka.apache.org/'
pattern="(Could not find or load main class)|(java\.lang\.NoClassDefFoundError)"
match=`echo $exception | grep -E "$pattern"`
if [[ -n "$match" ]]; then
echo $noBuildMessage
fi
rm exception.txt
# Launch mode
if [ "x$DAEMON_MODE" = "xtrue" ]; then
nohup $JAVA $KAFKA_HEAP_OPTS $KAFKA_JVM_PERFORMANCE_OPTS $KAFKA_GC_LOG_OPTS $KAFKA_JMX_OPTS $KAFKA_LOG4J_OPTS -cp $CLASSPATH $KAFKA_OPTS "$@" > "$CONSOLE_OUTPUT_FILE" 2>&1 < /dev/null &
else
exec $JAVA $KAFKA_HEAP_OPTS $KAFKA_JVM_PERFORMANCE_OPTS $KAFKA_GC_LOG_OPTS $KAFKA_JMX_OPTS $KAFKA_LOG4J_OPTS -cp $CLASSPATH $KAFKA_OPTS "$@"
fi



17 changes: 15 additions & 2 deletions bin/kafka-server-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,23 @@

if [ $# -lt 1 ];
then
echo "USAGE: $0 server.properties"
echo "USAGE: $0 [-daemon] server.properties"
exit 1
fi
base_dir=$(dirname $0)
export KAFKA_LOG4J_OPTS="-Dlog4j.configuration=file:$base_dir/../config/log4j.properties"
export KAFKA_HEAP_OPTS="-Xmx1G -Xms1G"
$base_dir/kafka-run-class.sh daemon kafkaServer kafka.Kafka $@

EXTRA_ARGS="-name kafkaServer -loggc"

COMMAND=$1
case $COMMAND in
-daemon)
EXTRA_ARGS="-daemon "$EXTRA_ARGS
shift
;;
*)
;;
esac

exec $base_dir/kafka-run-class.sh $EXTRA_ARGS kafka.Kafka $@
2 changes: 1 addition & 1 deletion bin/kafka-simple-consumer-perf-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# limitations under the License.

export KAFKA_HEAP_OPTS="-Xmx512M"
$(dirname $0)/kafka-run-class.sh kafka.perf.SimpleConsumerPerformance $@
exec $(dirname $0)/kafka-run-class.sh kafka.perf.SimpleConsumerPerformance $@
2 changes: 1 addition & 1 deletion bin/kafka-simple-consumer-shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

$(dirname $0)/kafka-run-class.sh kafka.tools.SimpleConsumerShell $@
exec $(dirname $0)/kafka-run-class.sh kafka.tools.SimpleConsumerShell $@
2 changes: 1 addition & 1 deletion bin/kafka-list-topic.sh → bin/kafka-topics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

$(dirname $0)/kafka-run-class.sh kafka.admin.ListTopicCommand $@
exec $(dirname $0)/kafka-run-class.sh kafka.admin.TopicCommand $@
17 changes: 15 additions & 2 deletions bin/zookeeper-server-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,26 @@
# See the License for the specific language governing permissions and
# limitations under the License.

if [ $# -ne 1 ];
if [ $# -lt 1 ];
then
echo "USAGE: $0 zookeeper.properties"
exit 1
fi
base_dir=$(dirname $0)
export KAFKA_LOG4J_OPTS="-Dlog4j.configuration=file:$base_dir/../config/log4j.properties"
export KAFKA_HEAP_OPTS="-Xmx512M -Xms512M"
$base_dir/kafka-run-class.sh daemon zookeeper org.apache.zookeeper.server.quorum.QuorumPeerMain $@

EXTRA_ARGS="-name zookeeper -loggc"

COMMAND=$1
case $COMMAND in
-daemon)
EXTRA_ARGS="-daemon "$EXTRA_ARGS
shift
;;
*)
;;
esac

exec $base_dir/kafka-run-class.sh $EXTRA_ARGS org.apache.zookeeper.server.quorum.QuorumPeerMain $@

2 changes: 1 addition & 1 deletion bin/zookeeper-shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ then
exit 1
fi

$(dirname $0)/kafka-run-class.sh org.apache.zookeeper.ZooKeeperMain -server $1
exec $(dirname $0)/kafka-run-class.sh org.apache.zookeeper.ZooKeeperMain -server $1
28 changes: 20 additions & 8 deletions config/log4j.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
# 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.

kafka.logs.dir=logs

log4j.rootLogger=INFO, stdout

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
Expand All @@ -20,25 +23,31 @@ log4j.appender.stdout.layout.ConversionPattern=[%d] %p %m (%c)%n

log4j.appender.kafkaAppender=org.apache.log4j.DailyRollingFileAppender
log4j.appender.kafkaAppender.DatePattern='.'yyyy-MM-dd-HH
log4j.appender.kafkaAppender.File=logs/server.log
log4j.appender.kafkaAppender.File=${kafka.logs.dir}/server.log
log4j.appender.kafkaAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.kafkaAppender.layout.ConversionPattern=[%d] %p %m (%c)%n

log4j.appender.stateChangeAppender=org.apache.log4j.DailyRollingFileAppender
log4j.appender.stateChangeAppender.DatePattern='.'yyyy-MM-dd-HH
log4j.appender.stateChangeAppender.File=logs/state-change.log
log4j.appender.stateChangeAppender.File=${kafka.logs.dir}/state-change.log
log4j.appender.stateChangeAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.stateChangeAppender.layout.ConversionPattern=[%d] %p %m (%c)%n

log4j.appender.requestAppender=org.apache.log4j.DailyRollingFileAppender
log4j.appender.requestAppender.DatePattern='.'yyyy-MM-dd-HH
log4j.appender.requestAppender.File=logs/kafka-request.log
log4j.appender.requestAppender.File=${kafka.logs.dir}/kafka-request.log
log4j.appender.requestAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.requestAppender.layout.ConversionPattern=[%d] %p %m (%c)%n

log4j.appender.cleanerAppender=org.apache.log4j.DailyRollingFileAppender
log4j.appender.cleanerAppender.DatePattern='.'yyyy-MM-dd-HH
log4j.appender.cleanerAppender.File=log-cleaner.log
log4j.appender.cleanerAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.cleanerAppender.layout.ConversionPattern=[%d] %p %m (%c)%n

log4j.appender.controllerAppender=org.apache.log4j.DailyRollingFileAppender
log4j.appender.controllerAppender.DatePattern='.'yyyy-MM-dd-HH
log4j.appender.controllerAppender.File=logs/controller.log
log4j.appender.controllerAppender.File=${kafka.logs.dir}/controller.log
log4j.appender.controllerAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.controllerAppender.layout.ConversionPattern=[%d] %p %m (%c)%n

Expand All @@ -50,19 +59,22 @@ log4j.appender.controllerAppender.layout.ConversionPattern=[%d] %p %m (%c)%n
#log4j.logger.org.I0Itec.zkclient.ZkClient=DEBUG
log4j.logger.kafka=INFO, kafkaAppender

log4j.logger.kafka.network.RequestChannel$=TRACE, requestAppender
log4j.logger.kafka.network.RequestChannel$=WARN, requestAppender
log4j.additivity.kafka.network.RequestChannel$=false

#log4j.logger.kafka.network.Processor=TRACE, requestAppender
#log4j.logger.kafka.server.KafkaApis=TRACE, requestAppender
#log4j.additivity.kafka.server.KafkaApis=false
log4j.logger.kafka.request.logger=TRACE, requestAppender
log4j.logger.kafka.request.logger=WARN, requestAppender
log4j.additivity.kafka.request.logger=false

log4j.logger.kafka.controller=TRACE, controllerAppender
log4j.additivity.kafka.controller=false

log4j.logger.kafka.log.LogCleaner=INFO, cleanerAppender
log4j.additivity.kafka.log.LogCleaner=false
log4j.logger.kafka.log.Cleaner=INFO, cleanerAppender
log4j.additivity.kafka.log.Cleaner=false

log4j.logger.state.change.logger=TRACE, stateChangeAppender
log4j.additivity.state.change.logger=false


Loading