Description
Data source for MySql.
Parameters
Name | Description | Type | Required? | Default Value |
---|---|---|---|---|
inputTableName | input table name | String | ✓ | |
dbName | db name | String | ✓ | |
ip | ip | String | ✓ | |
password | password | String | ✓ | |
port | port | String | ✓ | |
username | username | String | ✓ |
Script Example
mysql batch source
data = MySqlSourceBatchOp()\
.setDbName("alink")\
.setUsername("alink")\
.setPassword(passwd)\
.setIp("***")\
.setPort("20001")\
.setInputTableName("test")
mysql stream source
data = MySqlSourceStreamOp()\
.setDbName("alink")\
.setUsername("alink")\
.setPassword(passwd)\
.setIp("***")\
.setPort("20001")\
.setInputTableName("test")
mysql batch sink
data = MySqlSourceBatchOp()\
.setDbName("alink")\
.setUsername("alink")\
.setPassword(passwd)\
.setIp("***")\
.setPort("20001")\
.setOutputTableName("test_out")
mysql stream sink
data = MySqlSourceStreamOp()\
.setDbName("alink")\
.setUsername("alink")\
.setPassword(passwd)\
.setIp("***")\
.setPort("20001")\
.setOutputTableName("test_out")