Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datax生成job文本到ftp的模板错误 #80

Open
ye13jian opened this issue May 2, 2018 · 1 comment
Open

Datax生成job文本到ftp的模板错误 #80

ye13jian opened this issue May 2, 2018 · 1 comment

Comments

@ye13jian
Copy link

ye13jian commented May 2, 2018

$ ./bin/datax.py -r txtfilereader -w ftpwriter
如下
{
"job": {
"content": [
{
"reader": {
"name": "txtfilereader",
"parameter": {
"column": [],
"encoding": "",
"fieldDelimiter": "",
"path": []
}
},
"writer": {
"name": "ftpwriter",
"parameter": {
"name": "ftpwriter",
"parameter": {
"connectPattern": "",
"dateFormat": "",
"encoding": "",
"fieldDelimiter": "",
"fileFormat": "",
"fileName": "",
"header": [],
"host": "",
"nullFormat": "",
"password": "",
"path": "",
"port": "",
"protocol": "",
"timeout": "",
"username": "",
"writeMode": ""
}
}

}
}
],
"setting": {
"speed": {
"channel": ""
}
}
}
}
多套用一层name和parameter。被误导了。

@ljluestc
Copy link

下面是修正过的用于将数据写入FTP服务器的DataX JSON配置示例:

{
  "job": {
    "content": [
      {
        "reader": {
          "name": "txtfilereader",
          "parameter": {
            "column": [],
            "encoding": "",
            "fieldDelimiter": "",
            "path": []
          }
        },
        "writer": {
          "name": "ftpwriter",
          "parameter": {
            "host": "",
            "port": "",
            "username": "",
            "password": "",
            "protocol": "",
            "path": "",
            "fileName": "",
            "fileFormat": "",
            "writeMode": "",
            "fieldDelimiter": "",
            "dateFormat": "",
            "nullFormat": "",
            "header": []
          }
        }
      }
    ],
    "setting": {
      "speed": {
        "channel": ""
      }
    }
  }
}

请确保填写适当的值,例如 "host"、"port"、"username"、"password"、"protocol"、"path" 等

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants