{"action":"created","issue":{"url":"https://api.github.com/repos/treasure-data/td/issues/117","labels_url":"https://api.github.com/repos/treasure-data/td/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/treasure-data/td/issues/117/comments","events_url":"https://api.github.com/repos/treasure-data/td/issues/117/events","html_url":"https://github.com/treasure-data/td/pull/117","id":100496492,"number":117,"title":"Create embulk config subcommand","user":{"login":"takkanm","id":43500,"avatar_url":"https://avatars.githubusercontent.com/u/43500?v=3","gravatar_id":"","url":"https://api.github.com/users/takkanm","html_url":"https://github.com/takkanm","followers_url":"https://api.github.com/users/takkanm/followers","following_url":"https://api.github.com/users/takkanm/following{/other_user}","gists_url":"https://api.github.com/users/takkanm/gists{/gist_id}","starred_url":"https://api.github.com/users/takkanm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takkanm/subscriptions","organizations_url":"https://api.github.com/users/takkanm/orgs","repos_url":"https://api.github.com/users/takkanm/repos","events_url":"https://api.github.com/users/takkanm/events{/privacy}","received_events_url":"https://api.github.com/users/takkanm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/treasure-data/td/labels/connector","name":"connector","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-12T08:53:18Z","updated_at":"2015-08-25T07:09:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/treasure-data/td/pulls/117","html_url":"https://github.com/treasure-data/td/pull/117","diff_url":"https://github.com/treasure-data/td/pull/117.diff","patch_url":"https://github.com/treasure-data/td/pull/117.patch"},"body":"ref #80 \r\n\r\nI implemented `connector:init` that creates a configuration file of 'connector:guess' from options similar to 'import:prepare', 'import:upload'.\r\n\r\nNow, supoprt format is S3 and mysql.\r\n\r\n```\r\n$ td connector:init \"s3://access_key:secret_key@/my_bucket/path/to/*.csv\" -o seed.yml\r\ninitialize configuration:\r\n\r\n---\r\nin:\r\n  type: s3\r\n  access_key_id: access_key\r\n  secret_access_key: secret_key\r\n  bucket: my_bucket\r\n  path_prefix: path/to/\r\nout:\r\n  mode: append\r\n\r\nCreated seed.yml file.\r\nIf you need to change, please modify seed.yml.\r\nUse 'td connector:guess seed.yml' to create bulk load configuration.\r\n\r\n$ td connector:init mytable --format mysql --db-url jdbc:mysql://localhost/mydb --db-user myuser --db-password mypass\r\ninitialize configuration:\r\n\r\n---\r\nin:\r\n  type: mysql\r\n  host: localhost\r\n  port: 3306\r\n  database: mydb\r\n  user: myuser\r\n  password: mypass\r\n  table: mytable\r\n  select: \"*\"\r\nout:\r\n  mode: append\r\n\r\nCreated td-bulkload.yml file.\r\nIf you need to change, please modify td-bulkload.yml.\r\nUse 'td connector:guess td-bulkload.yml' to create bulk load configuration.\r\n```"},"comment":{"url":"https://api.github.com/repos/treasure-data/td/issues/comments/134506104","html_url":"https://github.com/treasure-data/td/pull/117#issuecomment-134506104","issue_url":"https://api.github.com/repos/treasure-data/td/issues/117","id":134506104,"user":{"login":"takkanm","id":43500,"avatar_url":"https://avatars.githubusercontent.com/u/43500?v=3","gravatar_id":"","url":"https://api.github.com/users/takkanm","html_url":"https://github.com/takkanm","followers_url":"https://api.github.com/users/takkanm/followers","following_url":"https://api.github.com/users/takkanm/following{/other_user}","gists_url":"https://api.github.com/users/takkanm/gists{/gist_id}","starred_url":"https://api.github.com/users/takkanm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takkanm/subscriptions","organizations_url":"https://api.github.com/users/takkanm/orgs","repos_url":"https://api.github.com/users/takkanm/repos","events_url":"https://api.github.com/users/takkanm/events{/privacy}","received_events_url":"https://api.github.com/users/takkanm/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T07:09:23Z","updated_at":"2015-08-25T07:09:23Z","body":"I have one question. Should `td import:config` support `--column` option ?\r\n\r\n`td import:config` create configuration file for `guess` commands.\r\nI am understanding that `guess` commands create new column option from source file.\r\nTherefore, I will leave it to guess about the column, I think that it is good for the user to edit.\r\nHow about you ?"}}