blob: 7182071336e0a88cd1edfc7a956f6d79633cd64e [file] [log] [blame]
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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.
#
env {
execution.parallelism = 3
job.mode = "BATCH"
}
source{
jdbc{
url = "jdbc:mysql://mysql:3306/test"
driver = "com.mysql.cj.jdbc.Driver"
user = "root"
password = "test"
query = "select user_id, name , age from source"
partition_column= "user_id"
result_table_name = "jdbc"
}
}
transform {
sql {
sql = "select name,age from jdbc"
}
}
sink {
jdbc {
url = "jdbc:mysql://mysql:3306/test"
driver = "com.mysql.cj.jdbc.Driver"
user = "root"
password = "test"
connection_check_timeout_sec = 100
query = "insert into sink(name,age) values(?,?)"
}
}