Streamlined DataX
table of Contents
Article Directory
Overview
Ali DataX
Lite, you can windows
lower rely only Java8
you can run. It recommends linux
the use of original lower DataX
. Sorry, I received a little point as a reward for the weekend work, thank you. Download link for the lite version: https://download.csdn.net/download/killingbow/12158389
1. Start quickly
Execution run.bat
can convert in
all the csv files in the out
directory to the directory, and csv
use tab
a comma as a separator to use as a csv
separator. This conversion job/csv2csv.json
is defined in.
Note:
csv2csv.json
Thewindows
version andlinux
version cannot be mixed. Asinputstream
ofcsv
theencoding
though is actuallyutf8
encoded in thewindows
version to be writtengbk
, it will have the correct output. This may be caused by a bug in DataX, but there is no problem if it is in Linux.
2. Advanced
job
There are several *.json files under the path, which can be realized by modifying the configuration to realize the mutual conversion of data between sqlserver
, text files, stream
and ftp
. The "csv2csv" run.bat
in the first line set JOB_NAME=csv2csv
of the job
file represents the name of the file csv2csv.json
, which run.bat
will run this csv2csv.json
configuration and output a log with this name. You JOB_NAME
can change the task to be run by modifying this .
Regarding job
the json
format configuration file, its content can be composed of setting
and content
two parts. setting
The partial channel
setting is "1". content
The reader
and writer
may refer to plugin
the directory reader
and writer
plug folder directory corresponding to the plugin_job_template.json
content. Detailed configuration documents can be found in datax
the github
official source code directory. Each reader
and writer
has very detailed attribute definitions including whether it is required, default values, enumerations, and value ranges.
Three, customized lite version
We want to add more modules to the Starter Edition, available from the official version of plugin
the copy reader
and writer
the lower corresponds to the current directory. These reader
and writer
the lib
directory to the public lib
in sharing and achieve the purpose of streamlining.
on
- Compose: tlw
- Log:
- 20200215: Created