Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
206 commits
Select commit Hold shift + click to select a range
f6e35de
KAFKA-3201: Added rolling upgrade system tests from 0.8 and 0.9 to 0.10
apovzner Mar 8, 2016
5afa166
KAFKA-3197; Fix producer sending records out of order
becketqin Mar 8, 2016
c428237
KAFKA-3343; Use NoTimestamp in GroupMetadataManager when message v0 i…
becketqin Mar 9, 2016
39f1c3f
MINOR: Ignoring streams tests until there is fix for KAFKA-3354
Mar 9, 2016
090d722
KAFKA-3237: Allow ConfigDef options with no default and validator
jcustenborder Mar 9, 2016
6893091
MINOR: Clean up of ProducerConfig documentation, including correction…
mjsax Mar 9, 2016
324b0c8
KAFKA-3279: Remove checks for JAAS system property
rajinisivaram Mar 9, 2016
59d19cf
MINOR: Update gradlew.bat as per latest gradle release
ijuma Mar 9, 2016
8180803
KAFKA-3352: Avoid DNS reverse lookups
ijuma Mar 9, 2016
ee99955
KAFKA-3357; Update to Scala 2.11.8
ijuma Mar 10, 2016
f0a4125
KAFKA-3361: Initial protocol documentation page and generation
granthenke Mar 10, 2016
df41bc5
MINOR: KAFKA-3361 follow up
granthenke Mar 10, 2016
83f714b
KAFKA-3344: Remove previous system test's leftover test-log4j.properties
Mar 10, 2016
1a451b4
MINOR: Add header and footer to protocol docs
granthenke Mar 10, 2016
6eb061f
MINOR: Fix system test broken by change of consumer group tool output…
gwenshap Mar 10, 2016
e403b3c
KAFKA-3318: clean up consumer logging and error messages
hachikuji Mar 10, 2016
04ef9c3
MINOR: Increased default EC2 instance size
enothereska Mar 10, 2016
9c4c5ae
MINOR: Add unit test for internal topics
guozhangwang Mar 10, 2016
287cce2
MINOR: update compression design doc to include lz4 protocol
omkreddy Mar 11, 2016
764d8ca
KAFKA-2073: migrate to client-side topic metadata request/response
hachikuji Mar 11, 2016
02d4da5
KAFKA-2960 KAFKA-1148; Clear purgatory for partitions before becoming…
becketqin Mar 11, 2016
a162f6b
KAFKA-3380; Add system test for GetOffsetShell tool
Mar 11, 2016
c9311d5
KAFKA-3047: Explicit offset assignment in Log.append can corrupt the log
ijuma Mar 12, 2016
ac7b2e9
KAFKA-2551; Update Unclean leader election docs
omkreddy Mar 14, 2016
c1a56c6
KAFKA-3395: prefix job id to internal topic names
Mar 14, 2016
cf40acc
MINOR: Remove unused method, redundant in interface definition and ad…
Ishiihara Mar 14, 2016
ffbe624
KAFKA-3373; add 'log' prefix to configurations in KIP-31/32
becketqin Mar 15, 2016
241c3eb
KAFKA-3375; Suppress deprecated warnings where reasonable and tweak c…
ijuma Mar 15, 2016
deb2b00
KAFKA-3013: Display the topic-partition in the exception message for …
MayureshGharat Mar 15, 2016
951e30a
KAFKA-1215; Rack-Aware replica assignment option
Mar 15, 2016
355076c
MINOR: kstream/ktable counting method with default long serdes
Mar 15, 2016
90c623d
MINOR: Add test that verifies fix for KAFKA-3047
ijuma Mar 15, 2016
fd6efbe
MINOR: Remove unused import in `WordCountJob` to fix checkstyle failure
ijuma Mar 15, 2016
6eacc0d
KAFKA-3260 - Added SourceTask.commitRecord
jcustenborder Mar 15, 2016
6834b91
MINOR: KAFKA-3260 follow up, fix commitRecord calls in tests
ewencp Mar 16, 2016
b0f8118
KAFKA-3371: ClientCompatibilityTest system test failing
enothereska Mar 16, 2016
cd8bd60
KAFKA-3403: Upgrade ZkClient to 0.8
granthenke Mar 16, 2016
858047a
KAFKA-3402; Restore behaviour of MetadataCache.getTopicMetadata when …
ijuma Mar 16, 2016
9a836d0
KAFKA-3303; Pass partial record metadata to ProducerInterceptor.onAck…
apovzner Mar 17, 2016
958e10c
KAFKA-3411: Streams: stop using "job" terminology, rename job.id to a…
Mar 17, 2016
dce0676
KAFKA-3392: ConsumerRecords iterator throws NoSuchElementException wh…
drausin Mar 17, 2016
30e78fa
KAFKA-2832: Add a consumer config option to exclude internal topics
edoardocomar Mar 17, 2016
a1eb12d
KAFKA-3188: Compatibility test for old and new clients with 0.10 broker
enothereska Mar 17, 2016
c07d017
KAFKA-3315: Add REST and Connector API to expose connector configuration
Ishiihara Mar 17, 2016
8ef804d
KAFKA-3414; Return of MetadataCache.getAliveBrokers should not be mut…
ijuma Mar 17, 2016
3f28d77
KAFKA-3373; MINOR: follow-up, a few val renames remaining
ijuma Mar 17, 2016
61281f5
KAFKA-3250: release tarball is unnecessarily large due to duplicate l…
granthenke Mar 17, 2016
579d473
KAFKA-3330; Truncate log cleaner offset checkpoint if the log is trun…
lindong28 Mar 17, 2016
f57dabb
KAFKA-3202: System test that changes message version on the fly
enothereska Mar 17, 2016
dea0719
KAFKA-3336: Unify Serializer and Deserializer into Serialization
guozhangwang Mar 17, 2016
e89a9ce
KAFKA-2982; Mark the old Scala producer and related classes as deprec…
ijuma Mar 18, 2016
0d8cbbc
HOTFIX: Renamed tests to match expected suffix
enothereska Mar 18, 2016
5d0cd76
KAFKA-3422: Add overloading functions without serdes in Streams DSL
guozhangwang Mar 18, 2016
d9bf551
KAFKA-3394; allow null offset metadata in commit API
hachikuji Mar 18, 2016
07360cb
KAFKA-3397: use -1(latest) as time default value for tools.GetOffsetS…
vesense Mar 18, 2016
4332175
KAFKA-3006: standardize KafkaConsumer API to use Collection
pyr Mar 18, 2016
b6c6291
KAFKA-3378; Client blocks forever if SocketChannel connects instantly
ijuma Mar 18, 2016
6553679
KAFKA-3427: broker can return incorrect version of fetch response whe…
junrao Mar 20, 2016
eb82328
KAFKA-3424: Add CORS support to Connect REST API
ewencp Mar 20, 2016
bfac36a
KAFKA-3328: SimpleAclAuthorizer can lose ACLs with frequent add/remov…
granthenke Mar 20, 2016
c188a68
MINOR: Add vagrant up wrapper for simple parallel bringup on aws
Mar 20, 2016
95eabc8
KAFKA-3378; Follow-up to ensure we `finishConnect` for immediately co…
ijuma Mar 21, 2016
4f048c4
MINOR: Fix FetchRequest.getErrorResponse for version 1
granthenke Mar 21, 2016
702d560
Changing version to 0.10.1.0-SNAPSHOT
gwenshap Mar 21, 2016
b6c29e3
MINOR: Add InterfaceStability.Unstable annotations to some Kafka Stre…
guozhangwang Mar 21, 2016
69df734
MINOR: fix documentation version
gwenshap Mar 21, 2016
4f04179
MINOR: update new version in additional places
gwenshap Mar 21, 2016
8d8e3aa
KAFKA-3412: multiple asynchronous commits causes send failures
hachikuji Mar 22, 2016
99cfb99
KAFKA-3435: Remove `Unstable` annotation from new Java Consumer
granthenke Mar 22, 2016
73470b0
MINOR: Remove the very misleading comment lines
gaob13 Mar 22, 2016
73c7900
KAFKA-3426; Improve protocol type errors when invalid sizes are received
ijuma Mar 22, 2016
ca77d67
KAFKA-3319: improve session timeout broker/client config documentation
hachikuji Mar 22, 2016
ad3dfc6
KAFKA-3219: Fix long topic name validation
vahidhashemian Mar 22, 2016
d6b450c
KAFKA-3435: Follow up to fix checkstyle
ewencp Mar 22, 2016
983e948
KAFKA-3301; CommonClientConfigs.METRICS_SAMPLE_WINDOW_MS_DOC is incor…
granthenke Mar 22, 2016
adca4d7
KAFKA-3447; partitionState in UpdateMetadataRequest not logged proper…
ijuma Mar 23, 2016
255b5e1
KAFKA-3431: Remove `o.a.k.common.BrokerEndPoint` in favour of `Node`
ijuma Mar 23, 2016
7af67ce
KAFKA-3442; Fix FileMessageSet iterator.
becketqin Mar 23, 2016
20c3135
KAFKA-3409: handle CommitFailedException in MirrorMaker
hachikuji Mar 23, 2016
d578476
KAFKA-3441: 0.10.0 documentation still says "0.9.0"
granthenke Mar 23, 2016
d4d5920
KAFKA-3432; Cluster.update() thread-safety
ijuma Mar 23, 2016
80d78f8
HOTFIX: fix NPE in changelogger
Mar 23, 2016
de06244
MINOR: remove streams-smoke-test.sh
Mar 23, 2016
cb78223
KAFKA-3434; add old constructor to ConsumerRecord
hachikuji Mar 24, 2016
419e268
KAFKA-3445: Validate TASKS_MAX_CONFIG's lower bound
rnpridgeon Mar 24, 2016
2dc1723
KAFKA-3407 - ErrorLoggingCallback trims helpful diagnostic information.
jcustenborder Mar 24, 2016
d3a66a6
KAFKA-3460: Remove old 0.7 KafkaMigrationTool
granthenke Mar 25, 2016
d691faf
KAFKA-3463: change default receive buffer size for consumer to 64K
hachikuji Mar 25, 2016
c1d8c38
KAFKA-3449: Rename filterOut() to filterNot() to achieve better termi…
oscerd Mar 25, 2016
23b5009
KAFKA-3454: add Kafka Streams web docs
guozhangwang Mar 25, 2016
78fa20e
KAFKA-3316: Add REST API for listing connector plugins
Ishiihara Mar 25, 2016
1fbe445
KAFKA-3388; Fix expiration of batches sitting in the accumulator
becketqin Mar 26, 2016
4c0660b
MINOR: Fix typo and tweak wording in `RecordAccumulator` comments
ijuma Mar 28, 2016
43d5078
MINOR: Remove a couple of redundant `CoreUtils.rm` methods
ijuma Mar 28, 2016
5089f54
HOTFIX: RocksDBStore must clear dirty flags after flush
Mar 29, 2016
2758395
KAFKA-3425: add missing upgrade notes
hachikuji Mar 29, 2016
aaafd23
MINOR: Advance system test ducktape dependency from 0.3.10 to 0.4.0
Mar 30, 2016
2788f2d
MINOR: a simple benchmark for Streams
Mar 30, 2016
78d91dc
KAFKA-3475; Introduce our own `MiniKdc`
ijuma Mar 31, 2016
9f6a6f9
KAFKA-3381: Add system test for SimpleConsumerShell
Mar 31, 2016
623ab1e
KAFKA-3451: Add basic HTML coverage report generation to gradle
granthenke Mar 31, 2016
77142f6
KAFKA-2910: Close Zookeeper clients in unit tests
rajinisivaram Apr 1, 2016
ae93946
MINOR: add null check for aggregate and reduce operators
guozhangwang Apr 1, 2016
b865413
MINOR: Fix BNF output for protocol arrays conataining primitives in docs
granthenke Apr 1, 2016
a4d6f1d
MINOR: Add check for empty topics iterator in ReplicaVerificationTool.
Apr 1, 2016
89fd97f
KAFKA-2844; Separate keytabs for sasl tests
ijuma Apr 1, 2016
75ec67e
KAFKA-2930: Update references to ZooKeeper in the docs.
fpj Apr 1, 2016
bd5325d
MINOR: small code optimizations in streams
Apr 2, 2016
dd5480a
KAFKA-3486: fix autocommit when partitions assigned manually
hachikuji Apr 3, 2016
ef3f053
KAFKA-3419: clarify difference between topic subscription and partiti…
hachikuji Apr 3, 2016
b94a781
KAFKA-3495; NetworkClient.blockingSendAndReceive` should rely on requ…
ijuma Apr 3, 2016
3a20ba3
MINOR: Fix small typo in design section
paulcavallaro Apr 4, 2016
83cf385
MINOR: Clean up of SourceTaskOffsetCommiter
Ishiihara Apr 4, 2016
45c585b
KAFKA-3483: Restructure ducktape tests to simplify running subsets of…
granthenke Apr 4, 2016
31e263e
HOTFIX: set timestamp in SinkNode
Apr 4, 2016
c3c9289
KAFKA-3464: Add system tests for Connect with Kafka security enabled
ewencp Apr 5, 2016
4ff6677
KAFKA-2998: log warnings when client is disconnected from bootstrap b…
hachikuji Apr 5, 2016
732b111
KAFKA-3384: Conform to POSIX kill usage
matthewlmcclure Apr 5, 2016
aee8ebb
KAFKA-3510; OffsetIndex thread safety
ijuma Apr 5, 2016
893e79a
KAFKA-3489; Update request metrics if a client closes a connection wh…
ijuma Apr 5, 2016
8218a4a
KAFKA-3508: Fix transient SimpleACLAuthorizerTest failures
granthenke Apr 5, 2016
99d2329
KAFKA-3477: extended KStream/KTable API to specify custom partitioner…
mjsax Apr 5, 2016
8dbd688
KAFKA-3497: Streams ProcessorContext should support forward() based o…
enothereska Apr 7, 2016
9c34df1
KAFKA-3488; Avoid failing of unsent requests in consumer where possible
rajinisivaram Apr 7, 2016
8b9b07e
MINOR: ensure original use of prop_file in verifiable producer
apovzner Apr 8, 2016
3a58407
KAFKA-3505: Fix punctuate generated record metadata
guozhangwang Apr 8, 2016
9beafae
KAFKA-3512: Added foreach operator
enothereska Apr 8, 2016
4d467c2
KAFKA-725: Return OffsetOutOfRange error from ReplicaManager when non…
Apr 8, 2016
cbdd70e
MINOR: improve logging of consumer system tests
hachikuji Apr 8, 2016
2a8fa28
KAFKA-3528: handle wakeups while rebalancing more gracefully
hachikuji Apr 8, 2016
8c59565
KAFKA-3521: validate null keys in Streams DSL implementations
guozhangwang Apr 8, 2016
7c27989
KAFKA-3338: Add print and writeAsText to KStream/KTable in Kafka Streams
bbejeck Apr 11, 2016
c76b6e6
HOTFIX: special handling first ever triggered punctuate
guozhangwang Apr 11, 2016
411b04a
MINOR: Make VerifiableProducer in system tests lookup security config…
ewencp Apr 11, 2016
1ec842a
MINOR: fix incorrect exception message in KafkaProducer
stepio Apr 11, 2016
40fd456
KAFKA-3519: Refactor Transformer's transform / punctuate to return nu…
guozhangwang Apr 11, 2016
319c6e7
MINOR: Add missing `@Override` to `KStreamImpl.through`
ijuma Apr 12, 2016
ba9456d
KAFKA-3439; Added exceptions thrown
enothereska Apr 12, 2016
34a5944
MINOR: Remove unused hadoop version
granthenke Apr 12, 2016
e79d9af
KAFKA-3461: Fix typos in Kafka web documentations.
dongjoon-hyun Apr 12, 2016
667ff7e
KAFKA-3504; Log compaction for changelog partition
enothereska Apr 13, 2016
c169483
KAFKA-3490; Multiple version support for ducktape performance tests
ijuma Apr 13, 2016
f4d3d28
KAFKA-3470: treat commits as member heartbeats
hachikuji Apr 14, 2016
4fa456b
KAFKA-3557; Update rocksdb to 4.4.1 and patch updates to snappy and s…
ijuma Apr 14, 2016
065ddf9
KAFKA-3549: Close consumers instantiated in consumer tests
granthenke Apr 15, 2016
5236bf6
KAFKA-3526: Return string instead of object in ConfigKeyInfo and Conf…
Ishiihara Apr 15, 2016
b1691cf
KAFKA-3430: Allow users to set key in KTable.toStream and in KStream.
bbejeck Apr 17, 2016
89c6772
KAFKA-3506: Kafka Connect restart APIs
hachikuji Apr 18, 2016
03817d5
KAFKA-3529: Fix transient failure in testCommitAsync
hachikuji Apr 18, 2016
a81ad25
KAFKA-3563: Maintain MessageAndMetadata constructor compatibility
granthenke Apr 18, 2016
a5f1158
KAFKA-3558; Add compression_type parameter to benchmarks in benchmark…
ijuma Apr 18, 2016
f89f5fb
KAFKA-3582; Remove references to Copcyat from Kafka Connect property …
Ishiihara Apr 19, 2016
501fa37
KAFKA-3421: Update docs with new connector features
Ishiihara Apr 19, 2016
0bf6103
MINOR: Fix typos in code comments
imandhan Apr 20, 2016
280efe7
MINOR: Remove RollingBounceTest since its functionality is covered by…
ewencp Apr 20, 2016
c9485b7
KAFKA-2370: kafka connect pause/resume API
hachikuji Apr 20, 2016
8a863ec
KAFKA-3117: handle metadata updates during consumer rebalance
hachikuji Apr 21, 2016
f213625
MINOR: Fix comment in DistributedHerder
Ishiihara Apr 21, 2016
9d71489
KAFKA-3548: Use root locale for case transformation of constant strings
rajinisivaram Apr 21, 2016
5c54747
KAFKA-3337: Extract selector as a separate groupBy operator for KTabl…
mjsax Apr 21, 2016
74e6dc8
KAFKA-3589: set inner serializer for ChangedSerde upon initialization
guozhangwang Apr 21, 2016
3274004
KAFKA-3594; After calling MemoryRecords.close() method, hasRoomFor() …
omkreddy Apr 21, 2016
c7f9bd2
KAFKA-3606: Traverse CLASSPATH during herder start
Ishiihara Apr 22, 2016
bc50515
KAFKA-3605: Return error if connector config includes mismatching con…
ewencp Apr 22, 2016
1b764c5
MINOR: add unit test for KGroupedTable.count
dguy Apr 25, 2016
996e29c
KAFKA-3619: File handles are leaked on .lock files of ProcessorStateM…
gfodor Apr 25, 2016
b3847f7
KAFKA-3270; Added some Happy Path Tests for the Reassign Partitions C…
benstopford Apr 26, 2016
e7d04c2
KAFKA-3602; Rename RecordAccumulator dequeFor() and fix usage
hachikuji Apr 26, 2016
a02c8aa
KAFKA-3499: prevent array typed keys in KeyValueStore
guozhangwang Apr 26, 2016
18dd198
MINOR: Fix some copy-pasted Javadoc in StreamsConfig.java
jklukas Apr 26, 2016
088ab3e
KAFKA-3614: Consolidate duplicate code in KGroupedTableImpl
Apr 26, 2016
9d37b9f
KAKFA-3599: Move WindowStoreUtils to package "internals"
mjsax Apr 26, 2016
f60a3fa
MINOR: Typo fixes in ReplicaFetchMaxBytesDoc
Erethon Apr 26, 2016
1a73629
KAFKA-3607: Close KStreamTestDriver upon completing; follow-up fixes …
guozhangwang Apr 26, 2016
fbac525
MINOR: Fix zk path in KafkaHealthCheck comment
Apr 26, 2016
2790d0c
MINOR: Changed port of bootstrap server to default
raphw Apr 26, 2016
cd427c9
MINOR: Upgrade to Gradle 2.13
ijuma Apr 26, 2016
5b375d7
KAFKA-3149; Extend SASL implementation to support more mechanisms
rajinisivaram Apr 26, 2016
33d745e
KAFKA-3306: Change metadata response to include required additional fi…
granthenke Apr 27, 2016
77fa0b1
KAFKA-3406; Update CommonClientConfigs.RETRY_BACKOFF_MS_DOC doc string
omkreddy Apr 27, 2016
2885bc3
KAFKA-3580; Improve error logging in ReplicaFetchThread
omkreddy Apr 27, 2016
4c76b5f
KAFKA-3629; KStreamImpl.to(...) throws NPE when the value SerDe is null
dguy Apr 27, 2016
8407dac
KAFKA-3307; Add ApiVersions Request/Response and server side handling.
Apr 27, 2016
94aee21
KAFKA-3612: Added structure for integration tests
enothereska Apr 27, 2016
669be7f
KAFKA-3631; Fix Struct.toString for nullable arrayOf
granthenke Apr 28, 2016
57831a5
KAFKA-3621; Add tests for ApiVersionRequest/Response
Apr 28, 2016
316389d
KAFKA-3611: Remove warnings when using reflections
Ishiihara Apr 28, 2016
3a496f4
KAFKA-3617; Unit tests for SASL authenticator
rajinisivaram Apr 28, 2016
fdded2d
KAFKA-3636; Change default max session timeout to 5 minutes
hachikuji Apr 28, 2016
346df72
MINOR: Avoid compiler warnings when registering metrics in KafkaServer
Ishiihara Apr 28, 2016
0ada3b1
KAFKA-3382: Add system test for ReplicationVerificationTool
Apr 28, 2016
68433dc
KAFKA-3613: Consolidate TumblingWindows and HoppingWindows into TimeW…
Apr 29, 2016
4ab4e4a
KAFKA-3598: Improve JavaDoc of public API
mjsax Apr 29, 2016
cea01af
KAFKA-2693: Ducktape tests for SASL/PLAIN and multiple mechanisms
rajinisivaram Apr 29, 2016
fe6c481
KAFKA-3418: add javadoc section describing consumer failure detection
hachikuji Apr 29, 2016
eb50d2f
KAFKA-3615: Exclude test jars in kafka-run-class.sh
Ishiihara Apr 29, 2016
e29eac4
KAFKA-3597; Query ConsoleConsumer and VerifiableProducer if they shut…
apovzner Apr 29, 2016
e503273
KAFKA-3578: Allow cross origin HTTP requests on all HTTP methods
Ishiihara Apr 29, 2016
69d9a66
KAFKA-3618; Handle ApiVersionsRequest before SASL authentication
rajinisivaram Apr 29, 2016
3414d56
KAFKA-3440: Update streams javadocs
mjsax Apr 29, 2016
096b8b8
KAFKA-3641; Fix RecordMetadata constructor backward compatibility
granthenke Apr 29, 2016
d0dedc6
KAFKA-3459: Returning zero task configurations from a connector does …
Ishiihara Apr 29, 2016
60380e3
HOTFIX: Fix equality semantics of KeyValue
enothereska Apr 29, 2016
94d1878
MINOR: change initial value of Min stat to Double.MAX_VALUE (not MIN)
zackdever Apr 29, 2016
9eaf529
KAFKA-3644; Use Boolean protocol type for StopReplicaRequest delete_p…
granthenke Apr 30, 2016
1e4dd66
HOTFIX: Fix main classpath libs glob for release (fixup KAFKA-3615 re…
dpkp May 1, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,4 @@ tests/results
.ducktape
tests/.ducktape

docs/producer_config.html
docs/consumer_config.html
docs/kafka_config.html
docs/connect_config.html
docs/generated/
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ Change the log4j setting in either `clients/src/test/resources/log4j.properties`

./gradlew -i -Dtest.single=RequestResponseSerializationTest core:test

### Generating test coverage reports ###
./gradlew reportCoverage

### Building a binary release gzipped tar ball ###
./gradlew clean
./gradlew releaseTarGz
Expand All @@ -60,10 +63,10 @@ The release file can be found inside `./core/build/distributions/`.
### Cleaning the build ###
./gradlew clean

### Running a task on a particular version of Scala (either 2.10.6 or 2.11.7) ###
### Running a task on a particular version of Scala (either 2.10.6 or 2.11.8) ###
*Note that if building the jars with a version other than 2.10, you need to set the `SCALA_BINARY_VERSION` variable or change it in `bin/kafka-run-class.sh` to run the quick start.*

You can pass either the major version (eg 2.11) or the full version (eg 2.11.7):
You can pass either the major version (eg 2.11) or the full version (eg 2.11.8):

./gradlew -PscalaVersion=2.11 jar
./gradlew -PscalaVersion=2.11 test
Expand Down
4 changes: 3 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ VAGRANTFILE_API_VERSION = "2"

# General config
enable_dns = false
# Override to false when bringing up a cluster on AWS
enable_hostmanager = true
enable_jmx = false
num_zookeepers = 1
num_brokers = 3
Expand Down Expand Up @@ -55,7 +57,7 @@ end

# TODO(ksweeney): RAM requirements are not empirical and can probably be significantly lowered.
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.hostmanager.enabled = true
config.hostmanager.enabled = enable_hostmanager
config.hostmanager.manage_host = enable_dns
config.hostmanager.include_offline = false

Expand Down
63 changes: 51 additions & 12 deletions bin/kafka-run-class.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,24 @@ then
exit 1
fi

if [ -z "$INCLUDE_TEST_JARS" ]; then
INCLUDE_TEST_JARS=false
fi

# Exclude jars not necessary for running commands.
regex="(-(test|src|scaladoc|javadoc)\.jar|jar.asc)$"
should_include_file() {
if [ "$INCLUDE_TEST_JARS" = true ]; then
return 0
fi
file=$1
if [ -z "$(echo "$file" | egrep "$regex")" ] ; then
return 0
else
return 1
fi
}

base_dir=$(dirname $0)/..

if [ -z "$SCALA_VERSION" ]; then
Expand All @@ -34,27 +52,39 @@ fi
shopt -s nullglob
for dir in $base_dir/core/build/dependant-libs-${SCALA_VERSION}*;
do
CLASSPATH=$CLASSPATH:$dir/*
if [ -z $CLASSPATH ] ; then
CLASSPATH=$dir/*
else
CLASSPATH=$CLASSPATH:$dir/*
fi
done

for file in $base_dir/examples/build/libs//kafka-examples*.jar;
for file in $base_dir/examples/build/libs/kafka-examples*.jar;
do
CLASSPATH=$CLASSPATH:$file
if should_include_file "$file"; then
CLASSPATH=$CLASSPATH:$file
fi
done

for file in $base_dir/clients/build/libs/kafka-clients*.jar;
do
CLASSPATH=$CLASSPATH:$file
if should_include_file "$file"; then
CLASSPATH=$CLASSPATH:$file
fi
done

for file in $base_dir/streams/build/libs/kafka-streams*.jar;
do
CLASSPATH=$CLASSPATH:$file
if should_include_file "$file"; then
CLASSPATH=$CLASSPATH:$file
fi
done

for file in $base_dir/streams/examples/build/libs/kafka-streams-examples*.jar;
do
CLASSPATH=$CLASSPATH:$file
if should_include_file "$file"; then
CLASSPATH=$CLASSPATH:$file
fi
done

for file in $base_dir/streams/build/dependant-libs-${SCALA_VERSION}/rocksdb*.jar;
Expand All @@ -64,7 +94,9 @@ done

for file in $base_dir/tools/build/libs/kafka-tools*.jar;
do
CLASSPATH=$CLASSPATH:$file
if should_include_file "$file"; then
CLASSPATH=$CLASSPATH:$file
fi
done

for dir in $base_dir/tools/build/dependant-libs-${SCALA_VERSION}*;
Expand All @@ -76,19 +108,28 @@ for cc_pkg in "api" "runtime" "file" "json" "tools"
do
for file in $base_dir/connect/${cc_pkg}/build/libs/connect-${cc_pkg}*.jar;
do
CLASSPATH=$CLASSPATH:$file
if should_include_file "$file"; then
CLASSPATH=$CLASSPATH:$file
fi
done
if [ -d "$base_dir/connect/${cc_pkg}/build/dependant-libs" ] ; then
CLASSPATH=$CLASSPATH:$base_dir/connect/${cc_pkg}/build/dependant-libs/*
fi
done

# classpath addition for release
CLASSPATH=$CLASSPATH:$base_dir/libs/*
for file in $base_dir/libs/*;
do
if should_include_file "$file"; then
CLASSPATH=$CLASSPATH:$file
fi
done

for file in $base_dir/core/build/libs/kafka_${SCALA_BINARY_VERSION}*.jar;
do
CLASSPATH=$CLASSPATH:$file
if should_include_file "$file"; then
CLASSPATH=$CLASSPATH:$file
fi
done
shopt -u nullglob

Expand Down Expand Up @@ -141,8 +182,6 @@ if [ "x$KAFKA_DEBUG" != "x" ]; then
JAVA_DEBUG_OPTS="$DEFAULT_JAVA_DEBUG_OPTS"
fi



echo "Enabling Java debug options: $JAVA_DEBUG_OPTS"
KAFKA_OPTS="$JAVA_DEBUG_OPTS $KAFKA_OPTS"
fi
Expand Down
2 changes: 1 addition & 1 deletion bin/kafka-server-stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ if [ -z "$PIDS" ]; then
echo "No kafka server to stop"
exit 1
else
kill -SIGTERM $PIDS
kill -s TERM $PIDS
fi

2 changes: 1 addition & 1 deletion bin/zookeeper-server-stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ if [ -z "$PIDS" ]; then
echo "No zookeeper server to stop"
exit 1
else
kill -SIGTERM $PIDS
kill -s TERM $PIDS
fi

Loading