{"action":"created","comment":{"url":"https://api.github.com/repos/linkedin/gobblin/pulls/comments/30447591","id":30447591,"diff_hunk":"@@ -167,6 +168,24 @@ public void commit()\n     if (!this.fs.rename(this.stagingFile, this.outputFile)) {\n       throw new IOException(\"Failed to commit data from \" + this.stagingFile + \" to \" + this.outputFile);\n     }\n+","path":"gobblin-core/src/main/java/gobblin/writer/AvroHdfsDataWriter.java","position":12,"original_position":12,"commit_id":"a009cd60a209b94cdef4e05f3de4c8f7c4b42120","original_commit_id":"a009cd60a209b94cdef4e05f3de4c8f7c4b42120","user":{"login":"liyinan926","id":3709137,"avatar_url":"https://avatars.githubusercontent.com/u/3709137?v=3","gravatar_id":"","url":"https://api.github.com/users/liyinan926","html_url":"https://github.com/liyinan926","followers_url":"https://api.github.com/users/liyinan926/followers","following_url":"https://api.github.com/users/liyinan926/following{/other_user}","gists_url":"https://api.github.com/users/liyinan926/gists{/gist_id}","starred_url":"https://api.github.com/users/liyinan926/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liyinan926/subscriptions","organizations_url":"https://api.github.com/users/liyinan926/orgs","repos_url":"https://api.github.com/users/liyinan926/repos","events_url":"https://api.github.com/users/liyinan926/events{/privacy}","received_events_url":"https://api.github.com/users/liyinan926/received_events","type":"User","site_admin":false},"body":"I suggest abstracting the following code into a utility method into `gobblin.util.HadoopUtils`, say, `public static void keepSourceFileAttributes(FileSystem fs, Path file, State properties)`.","created_at":"2015-05-15T21:28:19Z","updated_at":"2015-05-15T21:28:19Z","html_url":"https://github.com/linkedin/gobblin/pull/131#discussion_r30447591","pull_request_url":"https://api.github.com/repos/linkedin/gobblin/pulls/131","_links":{"self":{"href":"https://api.github.com/repos/linkedin/gobblin/pulls/comments/30447591"},"html":{"href":"https://github.com/linkedin/gobblin/pull/131#discussion_r30447591"},"pull_request":{"href":"https://api.github.com/repos/linkedin/gobblin/pulls/131"}}},"pull_request":{"url":"https://api.github.com/repos/linkedin/gobblin/pulls/131","id":35552054,"html_url":"https://github.com/linkedin/gobblin/pull/131","diff_url":"https://github.com/linkedin/gobblin/pull/131.diff","patch_url":"https://github.com/linkedin/gobblin/pull/131.patch","issue_url":"https://api.github.com/repos/linkedin/gobblin/issues/131","number":131,"state":"open","locked":false,"title":"Support for having file attributes in the State object","user":{"login":"suvodeep-pyne","id":2577714,"avatar_url":"https://avatars.githubusercontent.com/u/2577714?v=3","gravatar_id":"","url":"https://api.github.com/users/suvodeep-pyne","html_url":"https://github.com/suvodeep-pyne","followers_url":"https://api.github.com/users/suvodeep-pyne/followers","following_url":"https://api.github.com/users/suvodeep-pyne/following{/other_user}","gists_url":"https://api.github.com/users/suvodeep-pyne/gists{/gist_id}","starred_url":"https://api.github.com/users/suvodeep-pyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suvodeep-pyne/subscriptions","organizations_url":"https://api.github.com/users/suvodeep-pyne/orgs","repos_url":"https://api.github.com/users/suvodeep-pyne/repos","events_url":"https://api.github.com/users/suvodeep-pyne/events{/privacy}","received_events_url":"https://api.github.com/users/suvodeep-pyne/received_events","type":"User","site_admin":false},"body":"Gobblin now preserves the owner, group, permissions and replication factor for files. The state object now supports the following configuration keys which may be used to capture these attributes and pass them on to the output file.\r\n\r\n- HDFS_FILE_OWNER\r\n- HDFS_FILE_GROUP\r\n- HDFS_FILE_REPLICATION_FACTOR\r\n- HDFS_FILE_PERMISSIONS","created_at":"2015-05-15T21:21:59Z","updated_at":"2015-05-15T21:28:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fb122b63c0731460362799cc4cb12aa0739373be","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/linkedin/gobblin/pulls/131/commits","review_comments_url":"https://api.github.com/repos/linkedin/gobblin/pulls/131/comments","review_comment_url":"https://api.github.com/repos/linkedin/gobblin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/linkedin/gobblin/issues/131/comments","statuses_url":"https://api.github.com/repos/linkedin/gobblin/statuses/a009cd60a209b94cdef4e05f3de4c8f7c4b42120","head":{"label":"suvodeep-pyne:master","ref":"master","sha":"a009cd60a209b94cdef4e05f3de4c8f7c4b42120","user":{"login":"suvodeep-pyne","id":2577714,"avatar_url":"https://avatars.githubusercontent.com/u/2577714?v=3","gravatar_id":"","url":"https://api.github.com/users/suvodeep-pyne","html_url":"https://github.com/suvodeep-pyne","followers_url":"https://api.github.com/users/suvodeep-pyne/followers","following_url":"https://api.github.com/users/suvodeep-pyne/following{/other_user}","gists_url":"https://api.github.com/users/suvodeep-pyne/gists{/gist_id}","starred_url":"https://api.github.com/users/suvodeep-pyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suvodeep-pyne/subscriptions","organizations_url":"https://api.github.com/users/suvodeep-pyne/orgs","repos_url":"https://api.github.com/users/suvodeep-pyne/repos","events_url":"https://api.github.com/users/suvodeep-pyne/events{/privacy}","received_events_url":"https://api.github.com/users/suvodeep-pyne/received_events","type":"User","site_admin":false},"repo":{"id":35694555,"name":"gobblin","full_name":"suvodeep-pyne/gobblin","owner":{"login":"suvodeep-pyne","id":2577714,"avatar_url":"https://avatars.githubusercontent.com/u/2577714?v=3","gravatar_id":"","url":"https://api.github.com/users/suvodeep-pyne","html_url":"https://github.com/suvodeep-pyne","followers_url":"https://api.github.com/users/suvodeep-pyne/followers","following_url":"https://api.github.com/users/suvodeep-pyne/following{/other_user}","gists_url":"https://api.github.com/users/suvodeep-pyne/gists{/gist_id}","starred_url":"https://api.github.com/users/suvodeep-pyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suvodeep-pyne/subscriptions","organizations_url":"https://api.github.com/users/suvodeep-pyne/orgs","repos_url":"https://api.github.com/users/suvodeep-pyne/repos","events_url":"https://api.github.com/users/suvodeep-pyne/events{/privacy}","received_events_url":"https://api.github.com/users/suvodeep-pyne/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/suvodeep-pyne/gobblin","description":"","fork":true,"url":"https://api.github.com/repos/suvodeep-pyne/gobblin","forks_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/forks","keys_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/teams","hooks_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/hooks","issue_events_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/issues/events{/number}","events_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/events","assignees_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/assignees{/user}","branches_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/branches{/branch}","tags_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/tags","blobs_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/git/refs{/sha}","trees_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/statuses/{sha}","languages_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/languages","stargazers_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/stargazers","contributors_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/contributors","subscribers_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/subscribers","subscription_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/subscription","commits_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/commits{/sha}","git_commits_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/git/commits{/sha}","comments_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/comments{/number}","issue_comment_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/issues/comments{/number}","contents_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/contents/{+path}","compare_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/merges","archive_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/downloads","issues_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/issues{/number}","pulls_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/pulls{/number}","milestones_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/milestones{/number}","notifications_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/labels{/name}","releases_url":"https://api.github.com/repos/suvodeep-pyne/gobblin/releases{/id}","created_at":"2015-05-15T20:16:07Z","updated_at":"2015-05-15T20:16:09Z","pushed_at":"2015-05-15T21:19:54Z","git_url":"git://github.com/suvodeep-pyne/gobblin.git","ssh_url":"git@github.com:suvodeep-pyne/gobblin.git","clone_url":"https://github.com/suvodeep-pyne/gobblin.git","svn_url":"https://github.com/suvodeep-pyne/gobblin","homepage":null,"size":157009,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"linkedin:master","ref":"master","sha":"ed4b4d5a61abcb23037dbb69ab63aa1422720bf9","user":{"login":"linkedin","id":357098,"avatar_url":"https://avatars.githubusercontent.com/u/357098?v=3","gravatar_id":"","url":"https://api.github.com/users/linkedin","html_url":"https://github.com/linkedin","followers_url":"https://api.github.com/users/linkedin/followers","following_url":"https://api.github.com/users/linkedin/following{/other_user}","gists_url":"https://api.github.com/users/linkedin/gists{/gist_id}","starred_url":"https://api.github.com/users/linkedin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linkedin/subscriptions","organizations_url":"https://api.github.com/users/linkedin/orgs","repos_url":"https://api.github.com/users/linkedin/repos","events_url":"https://api.github.com/users/linkedin/events{/privacy}","received_events_url":"https://api.github.com/users/linkedin/received_events","type":"Organization","site_admin":false},"repo":{"id":27392543,"name":"gobblin","full_name":"linkedin/gobblin","owner":{"login":"linkedin","id":357098,"avatar_url":"https://avatars.githubusercontent.com/u/357098?v=3","gravatar_id":"","url":"https://api.github.com/users/linkedin","html_url":"https://github.com/linkedin","followers_url":"https://api.github.com/users/linkedin/followers","following_url":"https://api.github.com/users/linkedin/following{/other_user}","gists_url":"https://api.github.com/users/linkedin/gists{/gist_id}","starred_url":"https://api.github.com/users/linkedin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linkedin/subscriptions","organizations_url":"https://api.github.com/users/linkedin/orgs","repos_url":"https://api.github.com/users/linkedin/repos","events_url":"https://api.github.com/users/linkedin/events{/privacy}","received_events_url":"https://api.github.com/users/linkedin/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/linkedin/gobblin","description":"","fork":false,"url":"https://api.github.com/repos/linkedin/gobblin","forks_url":"https://api.github.com/repos/linkedin/gobblin/forks","keys_url":"https://api.github.com/repos/linkedin/gobblin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linkedin/gobblin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linkedin/gobblin/teams","hooks_url":"https://api.github.com/repos/linkedin/gobblin/hooks","issue_events_url":"https://api.github.com/repos/linkedin/gobblin/issues/events{/number}","events_url":"https://api.github.com/repos/linkedin/gobblin/events","assignees_url":"https://api.github.com/repos/linkedin/gobblin/assignees{/user}","branches_url":"https://api.github.com/repos/linkedin/gobblin/branches{/branch}","tags_url":"https://api.github.com/repos/linkedin/gobblin/tags","blobs_url":"https://api.github.com/repos/linkedin/gobblin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linkedin/gobblin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linkedin/gobblin/git/refs{/sha}","trees_url":"https://api.github.com/repos/linkedin/gobblin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linkedin/gobblin/statuses/{sha}","languages_url":"https://api.github.com/repos/linkedin/gobblin/languages","stargazers_url":"https://api.github.com/repos/linkedin/gobblin/stargazers","contributors_url":"https://api.github.com/repos/linkedin/gobblin/contributors","subscribers_url":"https://api.github.com/repos/linkedin/gobblin/subscribers","subscription_url":"https://api.github.com/repos/linkedin/gobblin/subscription","commits_url":"https://api.github.com/repos/linkedin/gobblin/commits{/sha}","git_commits_url":"https://api.github.com/repos/linkedin/gobblin/git/commits{/sha}","comments_url":"https://api.github.com/repos/linkedin/gobblin/comments{/number}","issue_comment_url":"https://api.github.com/repos/linkedin/gobblin/issues/comments{/number}","contents_url":"https://api.github.com/repos/linkedin/gobblin/contents/{+path}","compare_url":"https://api.github.com/repos/linkedin/gobblin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linkedin/gobblin/merges","archive_url":"https://api.github.com/repos/linkedin/gobblin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linkedin/gobblin/downloads","issues_url":"https://api.github.com/repos/linkedin/gobblin/issues{/number}","pulls_url":"https://api.github.com/repos/linkedin/gobblin/pulls{/number}","milestones_url":"https://api.github.com/repos/linkedin/gobblin/milestones{/number}","notifications_url":"https://api.github.com/repos/linkedin/gobblin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linkedin/gobblin/labels{/name}","releases_url":"https://api.github.com/repos/linkedin/gobblin/releases{/id}","created_at":"2014-12-01T18:10:50Z","updated_at":"2015-05-07T20:00:41Z","pushed_at":"2015-05-15T21:21:59Z","git_url":"git://github.com/linkedin/gobblin.git","ssh_url":"git@github.com:linkedin/gobblin.git","clone_url":"https://github.com/linkedin/gobblin.git","svn_url":"https://github.com/linkedin/gobblin","homepage":null,"size":157009,"stargazers_count":37,"watchers_count":37,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":4,"forks":25,"open_issues":4,"watchers":37,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/linkedin/gobblin/pulls/131"},"html":{"href":"https://github.com/linkedin/gobblin/pull/131"},"issue":{"href":"https://api.github.com/repos/linkedin/gobblin/issues/131"},"comments":{"href":"https://api.github.com/repos/linkedin/gobblin/issues/131/comments"},"review_comments":{"href":"https://api.github.com/repos/linkedin/gobblin/pulls/131/comments"},"review_comment":{"href":"https://api.github.com/repos/linkedin/gobblin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/linkedin/gobblin/pulls/131/commits"},"statuses":{"href":"https://api.github.com/repos/linkedin/gobblin/statuses/a009cd60a209b94cdef4e05f3de4c8f7c4b42120"}}}}