{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/ind9/hadoop-s3/pulls/2","id":45471699,"html_url":"https://github.com/ind9/hadoop-s3/pull/2","diff_url":"https://github.com/ind9/hadoop-s3/pull/2.diff","patch_url":"https://github.com/ind9/hadoop-s3/pull/2.patch","issue_url":"https://api.github.com/repos/ind9/hadoop-s3/issues/2","number":2,"state":"open","locked":false,"title":"Adding support for specifing storage class for IxS3FileSystem","user":{"login":"ashwanthkumar","id":600279,"avatar_url":"https://avatars.githubusercontent.com/u/600279?v=3","gravatar_id":"","url":"https://api.github.com/users/ashwanthkumar","html_url":"https://github.com/ashwanthkumar","followers_url":"https://api.github.com/users/ashwanthkumar/followers","following_url":"https://api.github.com/users/ashwanthkumar/following{/other_user}","gists_url":"https://api.github.com/users/ashwanthkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/ashwanthkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashwanthkumar/subscriptions","organizations_url":"https://api.github.com/users/ashwanthkumar/orgs","repos_url":"https://api.github.com/users/ashwanthkumar/repos","events_url":"https://api.github.com/users/ashwanthkumar/events{/privacy}","received_events_url":"https://api.github.com/users/ashwanthkumar/received_events","type":"User","site_admin":false},"body":"We can specify the storage class using `fs.s3n.storage.class` config property. Acceptable values are\r\n- standard\r\n- rrs\r\n- glacier\r\n- standard_ia\r\n\r\nIf none is specified the default is Standard storage class. \r\n\r\nChanges include \r\n- Upgraded Hadoop versions to our CDH5 installation, because the CDH4 came with 2 years old jets3t libraries which doesn't support storage classes at all. I had an option to choose between shading newer version of jets3t into the module or keep the artifact light and use the one that came along with Hadoop. I choose this approach since I don't see us this on the older clusters.\r\n- Wrote an extension to Jets3tNativeFileSystemStore to proxy all put requests to add storage class. \r\n\r\nI would have liked to move to S3AFileSystem instead of S3NativeFileSystem, but looks like s3a still has some issues (https://issues.apache.org/jira/browse/HADOOP-11694) and would take some time to evolve and stabilise.\r\n\r\nI'll test these changes and post the result soon. ","created_at":"2015-09-19T07:02:42Z","updated_at":"2015-09-19T07:02:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ind9/hadoop-s3/pulls/2/commits","review_comments_url":"https://api.github.com/repos/ind9/hadoop-s3/pulls/2/comments","review_comment_url":"https://api.github.com/repos/ind9/hadoop-s3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ind9/hadoop-s3/issues/2/comments","statuses_url":"https://api.github.com/repos/ind9/hadoop-s3/statuses/03a6ff5095078da570bfb4e10fab7dbdb14b6835","head":{"label":"ind9:storage-class-support","ref":"storage-class-support","sha":"03a6ff5095078da570bfb4e10fab7dbdb14b6835","user":{"login":"ind9","id":1300730,"avatar_url":"https://avatars.githubusercontent.com/u/1300730?v=3","gravatar_id":"","url":"https://api.github.com/users/ind9","html_url":"https://github.com/ind9","followers_url":"https://api.github.com/users/ind9/followers","following_url":"https://api.github.com/users/ind9/following{/other_user}","gists_url":"https://api.github.com/users/ind9/gists{/gist_id}","starred_url":"https://api.github.com/users/ind9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ind9/subscriptions","organizations_url":"https://api.github.com/users/ind9/orgs","repos_url":"https://api.github.com/users/ind9/repos","events_url":"https://api.github.com/users/ind9/events{/privacy}","received_events_url":"https://api.github.com/users/ind9/received_events","type":"Organization","site_admin":false},"repo":{"id":39932420,"name":"hadoop-s3","full_name":"ind9/hadoop-s3","owner":{"login":"ind9","id":1300730,"avatar_url":"https://avatars.githubusercontent.com/u/1300730?v=3","gravatar_id":"","url":"https://api.github.com/users/ind9","html_url":"https://github.com/ind9","followers_url":"https://api.github.com/users/ind9/followers","following_url":"https://api.github.com/users/ind9/following{/other_user}","gists_url":"https://api.github.com/users/ind9/gists{/gist_id}","starred_url":"https://api.github.com/users/ind9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ind9/subscriptions","organizations_url":"https://api.github.com/users/ind9/orgs","repos_url":"https://api.github.com/users/ind9/repos","events_url":"https://api.github.com/users/ind9/events{/privacy}","received_events_url":"https://api.github.com/users/ind9/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ind9/hadoop-s3","description":"Bunch of Hadoop framework related classes that are specific to S3 that needs improvement","fork":false,"url":"https://api.github.com/repos/ind9/hadoop-s3","forks_url":"https://api.github.com/repos/ind9/hadoop-s3/forks","keys_url":"https://api.github.com/repos/ind9/hadoop-s3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ind9/hadoop-s3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ind9/hadoop-s3/teams","hooks_url":"https://api.github.com/repos/ind9/hadoop-s3/hooks","issue_events_url":"https://api.github.com/repos/ind9/hadoop-s3/issues/events{/number}","events_url":"https://api.github.com/repos/ind9/hadoop-s3/events","assignees_url":"https://api.github.com/repos/ind9/hadoop-s3/assignees{/user}","branches_url":"https://api.github.com/repos/ind9/hadoop-s3/branches{/branch}","tags_url":"https://api.github.com/repos/ind9/hadoop-s3/tags","blobs_url":"https://api.github.com/repos/ind9/hadoop-s3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ind9/hadoop-s3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ind9/hadoop-s3/git/refs{/sha}","trees_url":"https://api.github.com/repos/ind9/hadoop-s3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ind9/hadoop-s3/statuses/{sha}","languages_url":"https://api.github.com/repos/ind9/hadoop-s3/languages","stargazers_url":"https://api.github.com/repos/ind9/hadoop-s3/stargazers","contributors_url":"https://api.github.com/repos/ind9/hadoop-s3/contributors","subscribers_url":"https://api.github.com/repos/ind9/hadoop-s3/subscribers","subscription_url":"https://api.github.com/repos/ind9/hadoop-s3/subscription","commits_url":"https://api.github.com/repos/ind9/hadoop-s3/commits{/sha}","git_commits_url":"https://api.github.com/repos/ind9/hadoop-s3/git/commits{/sha}","comments_url":"https://api.github.com/repos/ind9/hadoop-s3/comments{/number}","issue_comment_url":"https://api.github.com/repos/ind9/hadoop-s3/issues/comments{/number}","contents_url":"https://api.github.com/repos/ind9/hadoop-s3/contents/{+path}","compare_url":"https://api.github.com/repos/ind9/hadoop-s3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ind9/hadoop-s3/merges","archive_url":"https://api.github.com/repos/ind9/hadoop-s3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ind9/hadoop-s3/downloads","issues_url":"https://api.github.com/repos/ind9/hadoop-s3/issues{/number}","pulls_url":"https://api.github.com/repos/ind9/hadoop-s3/pulls{/number}","milestones_url":"https://api.github.com/repos/ind9/hadoop-s3/milestones{/number}","notifications_url":"https://api.github.com/repos/ind9/hadoop-s3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ind9/hadoop-s3/labels{/name}","releases_url":"https://api.github.com/repos/ind9/hadoop-s3/releases{/id}","created_at":"2015-07-30T05:10:24Z","updated_at":"2015-07-30T06:44:17Z","pushed_at":"2015-09-19T07:02:05Z","git_url":"git://github.com/ind9/hadoop-s3.git","ssh_url":"git@github.com:ind9/hadoop-s3.git","clone_url":"https://github.com/ind9/hadoop-s3.git","svn_url":"https://github.com/ind9/hadoop-s3","homepage":null,"size":204,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"ind9:master","ref":"master","sha":"ac784b7cbb1a8ee0df28dbb48dbc1450235933b8","user":{"login":"ind9","id":1300730,"avatar_url":"https://avatars.githubusercontent.com/u/1300730?v=3","gravatar_id":"","url":"https://api.github.com/users/ind9","html_url":"https://github.com/ind9","followers_url":"https://api.github.com/users/ind9/followers","following_url":"https://api.github.com/users/ind9/following{/other_user}","gists_url":"https://api.github.com/users/ind9/gists{/gist_id}","starred_url":"https://api.github.com/users/ind9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ind9/subscriptions","organizations_url":"https://api.github.com/users/ind9/orgs","repos_url":"https://api.github.com/users/ind9/repos","events_url":"https://api.github.com/users/ind9/events{/privacy}","received_events_url":"https://api.github.com/users/ind9/received_events","type":"Organization","site_admin":false},"repo":{"id":39932420,"name":"hadoop-s3","full_name":"ind9/hadoop-s3","owner":{"login":"ind9","id":1300730,"avatar_url":"https://avatars.githubusercontent.com/u/1300730?v=3","gravatar_id":"","url":"https://api.github.com/users/ind9","html_url":"https://github.com/ind9","followers_url":"https://api.github.com/users/ind9/followers","following_url":"https://api.github.com/users/ind9/following{/other_user}","gists_url":"https://api.github.com/users/ind9/gists{/gist_id}","starred_url":"https://api.github.com/users/ind9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ind9/subscriptions","organizations_url":"https://api.github.com/users/ind9/orgs","repos_url":"https://api.github.com/users/ind9/repos","events_url":"https://api.github.com/users/ind9/events{/privacy}","received_events_url":"https://api.github.com/users/ind9/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ind9/hadoop-s3","description":"Bunch of Hadoop framework related classes that are specific to S3 that needs improvement","fork":false,"url":"https://api.github.com/repos/ind9/hadoop-s3","forks_url":"https://api.github.com/repos/ind9/hadoop-s3/forks","keys_url":"https://api.github.com/repos/ind9/hadoop-s3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ind9/hadoop-s3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ind9/hadoop-s3/teams","hooks_url":"https://api.github.com/repos/ind9/hadoop-s3/hooks","issue_events_url":"https://api.github.com/repos/ind9/hadoop-s3/issues/events{/number}","events_url":"https://api.github.com/repos/ind9/hadoop-s3/events","assignees_url":"https://api.github.com/repos/ind9/hadoop-s3/assignees{/user}","branches_url":"https://api.github.com/repos/ind9/hadoop-s3/branches{/branch}","tags_url":"https://api.github.com/repos/ind9/hadoop-s3/tags","blobs_url":"https://api.github.com/repos/ind9/hadoop-s3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ind9/hadoop-s3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ind9/hadoop-s3/git/refs{/sha}","trees_url":"https://api.github.com/repos/ind9/hadoop-s3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ind9/hadoop-s3/statuses/{sha}","languages_url":"https://api.github.com/repos/ind9/hadoop-s3/languages","stargazers_url":"https://api.github.com/repos/ind9/hadoop-s3/stargazers","contributors_url":"https://api.github.com/repos/ind9/hadoop-s3/contributors","subscribers_url":"https://api.github.com/repos/ind9/hadoop-s3/subscribers","subscription_url":"https://api.github.com/repos/ind9/hadoop-s3/subscription","commits_url":"https://api.github.com/repos/ind9/hadoop-s3/commits{/sha}","git_commits_url":"https://api.github.com/repos/ind9/hadoop-s3/git/commits{/sha}","comments_url":"https://api.github.com/repos/ind9/hadoop-s3/comments{/number}","issue_comment_url":"https://api.github.com/repos/ind9/hadoop-s3/issues/comments{/number}","contents_url":"https://api.github.com/repos/ind9/hadoop-s3/contents/{+path}","compare_url":"https://api.github.com/repos/ind9/hadoop-s3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ind9/hadoop-s3/merges","archive_url":"https://api.github.com/repos/ind9/hadoop-s3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ind9/hadoop-s3/downloads","issues_url":"https://api.github.com/repos/ind9/hadoop-s3/issues{/number}","pulls_url":"https://api.github.com/repos/ind9/hadoop-s3/pulls{/number}","milestones_url":"https://api.github.com/repos/ind9/hadoop-s3/milestones{/number}","notifications_url":"https://api.github.com/repos/ind9/hadoop-s3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ind9/hadoop-s3/labels{/name}","releases_url":"https://api.github.com/repos/ind9/hadoop-s3/releases{/id}","created_at":"2015-07-30T05:10:24Z","updated_at":"2015-07-30T06:44:17Z","pushed_at":"2015-09-19T07:02:05Z","git_url":"git://github.com/ind9/hadoop-s3.git","ssh_url":"git@github.com:ind9/hadoop-s3.git","clone_url":"https://github.com/ind9/hadoop-s3.git","svn_url":"https://github.com/ind9/hadoop-s3","homepage":null,"size":204,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ind9/hadoop-s3/pulls/2"},"html":{"href":"https://github.com/ind9/hadoop-s3/pull/2"},"issue":{"href":"https://api.github.com/repos/ind9/hadoop-s3/issues/2"},"comments":{"href":"https://api.github.com/repos/ind9/hadoop-s3/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/ind9/hadoop-s3/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/ind9/hadoop-s3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ind9/hadoop-s3/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/ind9/hadoop-s3/statuses/03a6ff5095078da570bfb4e10fab7dbdb14b6835"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":349,"deletions":12,"changed_files":5}}