-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactored to add support for json. Added experimental support for tracking offsets. Moved to require schemas to be supplied. * Modified scope to ensure that jackson is in target directory. * Updated the docker compose to the latest version * Updated data files with changes from offsets. * Added documentation test. * Bumped version to 0.10.2.0-cp1. * Added support to throw a contextual exception when a record cannot be parsed. This will throw the record and field. * Added support to write records with a timestamp. * Added description to connectors. * Added generators to aid in building schemas for the input files. Added a command line utility as well. * Added validation of character sets. * Added support to dynamically generate schemas if `schema.generation.enabled` is set to true. * Pulled out jfairy because it's no longer used. * Updated the documentation. * Modified so SimpleDateFormat is being set with the correct timezone. This was causing tests to fail in other timezones like UTC.
- Loading branch information
1 parent
2c1ce07
commit f14906f
Showing
78 changed files
with
50,716 additions
and
3,871 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
target | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,5 @@ | ||
#!groovy | ||
node { | ||
def mvnBuildNumber = "0.1.${env.BUILD_NUMBER}" | ||
@Library('jenkins-pipeline') import com.github.jcustenborder.jenkins.pipeline.KafkaConnectPipeline | ||
|
||
def mvnHome = tool 'M3' | ||
|
||
checkout scm | ||
|
||
if (env.BRANCH_NAME == 'master') { | ||
stage 'versioning' | ||
sh "${mvnHome}/bin/mvn -B versions:set -DgenerateBackupPoms=false -DnewVersion=${mvnBuildNumber}" | ||
} | ||
|
||
stage 'build' | ||
sh "${mvnHome}/bin/mvn -B -P maven-central clean verify package" | ||
|
||
junit '**/target/surefire-reports/TEST-*.xml' | ||
|
||
if (env.BRANCH_NAME == 'master') { | ||
stage 'publishing' | ||
sh "${mvnHome}/bin/mvn -B -P github,maven-central deploy" | ||
} | ||
} | ||
def pipe = new KafkaConnectPipeline() | ||
pipe.execute() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# | ||
# Copyright © 2016 Jeremy Custenborder ([email protected]) | ||
# | ||
# Licensed 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. | ||
# | ||
|
||
name=CsvSpoolDir | ||
tasks.max=1 | ||
connector.class=com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceConnector | ||
input.file.pattern=^.*\.csv$ | ||
finished.path=/tmp/spooldir/finished | ||
halt.on.error=false | ||
topic=testing | ||
key.schema={"name":"com.example.users.UserKey","type":"STRUCT","isOptional":false,"fieldSchemas":{"id":{"type":"INT64","isOptional":false}}} | ||
value.schema={"name":"com.example.users.User","type":"STRUCT","isOptional":false,"fieldSchemas":{"id":{"type":"INT64","isOptional":false},"first_name":{"type":"STRING","isOptional":true},"last_name":{"type":"STRING","isOptional":true},"email":{"type":"STRING","isOptional":true},"gender":{"type":"STRING","isOptional":true},"ip_address":{"type":"STRING","isOptional":true},"last_login":{"name":"org.apache.kafka.connect.data.Timestamp","type":"INT64","version":1,"isOptional":true},"account_balance":{"name":"org.apache.kafka.connect.data.Decimal","type":"BYTES","version":1,"parameters":{"scale":"2"},"isOptional":true},"country":{"type":"STRING","isOptional":true},"favorite_color":{"type":"STRING","isOptional":true}}} | ||
csv.first.row.as.header=true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# | ||
# Copyright © 2016 Jeremy Custenborder ([email protected]) | ||
# | ||
# Licensed 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. | ||
# | ||
|
||
name=JsonSpoolDir | ||
tasks.max=1 | ||
connector.class=com.github.jcustenborder.kafka.connect.spooldir.SpoolDirJsonSourceConnector | ||
input.file.pattern=^.*\.json$ | ||
finished.path=/tmp/spooldir/finished | ||
halt.on.error=false | ||
topic=testing | ||
key.schema={"name":"com.example.users.UserKey","type":"STRUCT","isOptional":false,"fieldSchemas":{"id":{"type":"INT64","isOptional":false}}} | ||
value.schema={"name":"com.example.users.User","type":"STRUCT","isOptional":false,"fieldSchemas":{"id":{"type":"INT64","isOptional":false},"first_name":{"type":"STRING","isOptional":true},"last_name":{"type":"STRING","isOptional":true},"email":{"type":"STRING","isOptional":true},"gender":{"type":"STRING","isOptional":true},"ip_address":{"type":"STRING","isOptional":true},"last_login":{"name":"org.apache.kafka.connect.data.Timestamp","type":"INT64","version":1,"isOptional":true},"account_balance":{"name":"org.apache.kafka.connect.data.Decimal","type":"BYTES","version":1,"parameters":{"scale":"2"},"isOptional":true},"country":{"type":"STRING","isOptional":true},"favorite_color":{"type":"STRING","isOptional":true}}} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.