{"action":"created","comment":{"url":"https://api.github.com/repos/ddf-project/DDF/pulls/comments/28472935","id":28472935,"diff_hunk":"@@ -22,7 +22,12 @@ import io.ddf.etl.{TransformationHandler ⇒ CoreTransformationHandler}\n import io.ddf.exception.DDFException\n import io.spark.ddf.SparkDDF\n \n+import java.io.PrintStream\n+import com.google.api.client.util.LoggingOutputStream\n+\n class TransformationHandler(mDDF: DDF) extends CoreTransformationHandler(mDDF) {\n+  // Rsession to use\n+  val rsess = Rsession.newInstanceTry(new PrintStream(new LoggingOutputStream(mLog, false), true), null)","path":"spark/src/main/scala/io/spark/ddf/etl/TransformationHandler.scala","position":18,"original_position":18,"commit_id":"d0e3acfae80a1182af369a52f980ef2e4bdb5c33","original_commit_id":"d0e3acfae80a1182af369a52f980ef2e4bdb5c33","user":{"login":"dabaitu","id":3894166,"avatar_url":"https://avatars.githubusercontent.com/u/3894166?v=3","gravatar_id":"","url":"https://api.github.com/users/dabaitu","html_url":"https://github.com/dabaitu","followers_url":"https://api.github.com/users/dabaitu/followers","following_url":"https://api.github.com/users/dabaitu/following{/other_user}","gists_url":"https://api.github.com/users/dabaitu/gists{/gist_id}","starred_url":"https://api.github.com/users/dabaitu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dabaitu/subscriptions","organizations_url":"https://api.github.com/users/dabaitu/orgs","repos_url":"https://api.github.com/users/dabaitu/repos","events_url":"https://api.github.com/users/dabaitu/events{/privacy}","received_events_url":"https://api.github.com/users/dabaitu/received_events","type":"User","site_admin":false},"body":"@nhanitvn @Huandao0812 this is where I use LoggingOutputStream that comes from com.google.api-client. I have to redirect Rsession's log to go to mLog.","created_at":"2015-04-15T23:25:05Z","updated_at":"2015-04-15T23:25:05Z","html_url":"https://github.com/ddf-project/DDF/pull/81#discussion_r28472935","pull_request_url":"https://api.github.com/repos/ddf-project/DDF/pulls/81","_links":{"self":{"href":"https://api.github.com/repos/ddf-project/DDF/pulls/comments/28472935"},"html":{"href":"https://github.com/ddf-project/DDF/pull/81#discussion_r28472935"},"pull_request":{"href":"https://api.github.com/repos/ddf-project/DDF/pulls/81"}}},"pull_request":{"url":"https://api.github.com/repos/ddf-project/DDF/pulls/81","id":33384409,"html_url":"https://github.com/ddf-project/DDF/pull/81","diff_url":"https://github.com/ddf-project/DDF/pull/81.diff","patch_url":"https://github.com/ddf-project/DDF/pull/81.patch","issue_url":"https://api.github.com/repos/ddf-project/DDF/issues/81","number":81,"state":"open","locked":false,"title":"Use Rsession instead of RConnection/RServe","user":{"login":"dabaitu","id":3894166,"avatar_url":"https://avatars.githubusercontent.com/u/3894166?v=3","gravatar_id":"","url":"https://api.github.com/users/dabaitu","html_url":"https://github.com/dabaitu","followers_url":"https://api.github.com/users/dabaitu/followers","following_url":"https://api.github.com/users/dabaitu/following{/other_user}","gists_url":"https://api.github.com/users/dabaitu/gists{/gist_id}","starred_url":"https://api.github.com/users/dabaitu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dabaitu/subscriptions","organizations_url":"https://api.github.com/users/dabaitu/orgs","repos_url":"https://api.github.com/users/dabaitu/repos","events_url":"https://api.github.com/users/dabaitu/events{/privacy}","received_events_url":"https://api.github.com/users/dabaitu/received_events","type":"User","site_admin":false},"body":"@nhanitvn @mbbui please check this out lightly as I proceed, call me out on bad approach as early as possible. Thanks!","created_at":"2015-04-15T18:46:46Z","updated_at":"2015-04-15T23:25:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"65001628665bbfe2336c400dcc0dae14f9a6cecc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ddf-project/DDF/pulls/81/commits","review_comments_url":"https://api.github.com/repos/ddf-project/DDF/pulls/81/comments","review_comment_url":"https://api.github.com/repos/ddf-project/DDF/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ddf-project/DDF/issues/81/comments","statuses_url":"https://api.github.com/repos/ddf-project/DDF/statuses/d0e3acfae80a1182af369a52f980ef2e4bdb5c33","head":{"label":"ddf-project:rsession","ref":"rsession","sha":"d0e3acfae80a1182af369a52f980ef2e4bdb5c33","user":{"login":"ddf-project","id":8108779,"avatar_url":"https://avatars.githubusercontent.com/u/8108779?v=3","gravatar_id":"","url":"https://api.github.com/users/ddf-project","html_url":"https://github.com/ddf-project","followers_url":"https://api.github.com/users/ddf-project/followers","following_url":"https://api.github.com/users/ddf-project/following{/other_user}","gists_url":"https://api.github.com/users/ddf-project/gists{/gist_id}","starred_url":"https://api.github.com/users/ddf-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddf-project/subscriptions","organizations_url":"https://api.github.com/users/ddf-project/orgs","repos_url":"https://api.github.com/users/ddf-project/repos","events_url":"https://api.github.com/users/ddf-project/events{/privacy}","received_events_url":"https://api.github.com/users/ddf-project/received_events","type":"Organization","site_admin":false},"repo":{"id":21636061,"name":"DDF","full_name":"ddf-project/DDF","owner":{"login":"ddf-project","id":8108779,"avatar_url":"https://avatars.githubusercontent.com/u/8108779?v=3","gravatar_id":"","url":"https://api.github.com/users/ddf-project","html_url":"https://github.com/ddf-project","followers_url":"https://api.github.com/users/ddf-project/followers","following_url":"https://api.github.com/users/ddf-project/following{/other_user}","gists_url":"https://api.github.com/users/ddf-project/gists{/gist_id}","starred_url":"https://api.github.com/users/ddf-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddf-project/subscriptions","organizations_url":"https://api.github.com/users/ddf-project/orgs","repos_url":"https://api.github.com/users/ddf-project/repos","events_url":"https://api.github.com/users/ddf-project/events{/privacy}","received_events_url":"https://api.github.com/users/ddf-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ddf-project/DDF","description":"Distributed DataFrame: Productivity = Power x Simplicity For Big Data Scientists & Engineers","fork":false,"url":"https://api.github.com/repos/ddf-project/DDF","forks_url":"https://api.github.com/repos/ddf-project/DDF/forks","keys_url":"https://api.github.com/repos/ddf-project/DDF/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ddf-project/DDF/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ddf-project/DDF/teams","hooks_url":"https://api.github.com/repos/ddf-project/DDF/hooks","issue_events_url":"https://api.github.com/repos/ddf-project/DDF/issues/events{/number}","events_url":"https://api.github.com/repos/ddf-project/DDF/events","assignees_url":"https://api.github.com/repos/ddf-project/DDF/assignees{/user}","branches_url":"https://api.github.com/repos/ddf-project/DDF/branches{/branch}","tags_url":"https://api.github.com/repos/ddf-project/DDF/tags","blobs_url":"https://api.github.com/repos/ddf-project/DDF/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ddf-project/DDF/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ddf-project/DDF/git/refs{/sha}","trees_url":"https://api.github.com/repos/ddf-project/DDF/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ddf-project/DDF/statuses/{sha}","languages_url":"https://api.github.com/repos/ddf-project/DDF/languages","stargazers_url":"https://api.github.com/repos/ddf-project/DDF/stargazers","contributors_url":"https://api.github.com/repos/ddf-project/DDF/contributors","subscribers_url":"https://api.github.com/repos/ddf-project/DDF/subscribers","subscription_url":"https://api.github.com/repos/ddf-project/DDF/subscription","commits_url":"https://api.github.com/repos/ddf-project/DDF/commits{/sha}","git_commits_url":"https://api.github.com/repos/ddf-project/DDF/git/commits{/sha}","comments_url":"https://api.github.com/repos/ddf-project/DDF/comments{/number}","issue_comment_url":"https://api.github.com/repos/ddf-project/DDF/issues/comments{/number}","contents_url":"https://api.github.com/repos/ddf-project/DDF/contents/{+path}","compare_url":"https://api.github.com/repos/ddf-project/DDF/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ddf-project/DDF/merges","archive_url":"https://api.github.com/repos/ddf-project/DDF/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ddf-project/DDF/downloads","issues_url":"https://api.github.com/repos/ddf-project/DDF/issues{/number}","pulls_url":"https://api.github.com/repos/ddf-project/DDF/pulls{/number}","milestones_url":"https://api.github.com/repos/ddf-project/DDF/milestones{/number}","notifications_url":"https://api.github.com/repos/ddf-project/DDF/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ddf-project/DDF/labels{/name}","releases_url":"https://api.github.com/repos/ddf-project/DDF/releases{/id}","created_at":"2014-07-09T02:16:59Z","updated_at":"2015-04-14T13:18:54Z","pushed_at":"2015-04-15T23:22:19Z","git_url":"git://github.com/ddf-project/DDF.git","ssh_url":"git@github.com:ddf-project/DDF.git","clone_url":"https://github.com/ddf-project/DDF.git","svn_url":"https://github.com/ddf-project/DDF","homepage":"http://ddf.io","size":162519,"stargazers_count":54,"watchers_count":54,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":18,"mirror_url":null,"open_issues_count":28,"forks":18,"open_issues":28,"watchers":54,"default_branch":"master"}},"base":{"label":"ddf-project:ddf-sparksql-adatao","ref":"ddf-sparksql-adatao","sha":"bfa49b8934fd82e45e33f1f5a9f2381d991fff38","user":{"login":"ddf-project","id":8108779,"avatar_url":"https://avatars.githubusercontent.com/u/8108779?v=3","gravatar_id":"","url":"https://api.github.com/users/ddf-project","html_url":"https://github.com/ddf-project","followers_url":"https://api.github.com/users/ddf-project/followers","following_url":"https://api.github.com/users/ddf-project/following{/other_user}","gists_url":"https://api.github.com/users/ddf-project/gists{/gist_id}","starred_url":"https://api.github.com/users/ddf-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddf-project/subscriptions","organizations_url":"https://api.github.com/users/ddf-project/orgs","repos_url":"https://api.github.com/users/ddf-project/repos","events_url":"https://api.github.com/users/ddf-project/events{/privacy}","received_events_url":"https://api.github.com/users/ddf-project/received_events","type":"Organization","site_admin":false},"repo":{"id":21636061,"name":"DDF","full_name":"ddf-project/DDF","owner":{"login":"ddf-project","id":8108779,"avatar_url":"https://avatars.githubusercontent.com/u/8108779?v=3","gravatar_id":"","url":"https://api.github.com/users/ddf-project","html_url":"https://github.com/ddf-project","followers_url":"https://api.github.com/users/ddf-project/followers","following_url":"https://api.github.com/users/ddf-project/following{/other_user}","gists_url":"https://api.github.com/users/ddf-project/gists{/gist_id}","starred_url":"https://api.github.com/users/ddf-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddf-project/subscriptions","organizations_url":"https://api.github.com/users/ddf-project/orgs","repos_url":"https://api.github.com/users/ddf-project/repos","events_url":"https://api.github.com/users/ddf-project/events{/privacy}","received_events_url":"https://api.github.com/users/ddf-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ddf-project/DDF","description":"Distributed DataFrame: Productivity = Power x Simplicity For Big Data Scientists & Engineers","fork":false,"url":"https://api.github.com/repos/ddf-project/DDF","forks_url":"https://api.github.com/repos/ddf-project/DDF/forks","keys_url":"https://api.github.com/repos/ddf-project/DDF/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ddf-project/DDF/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ddf-project/DDF/teams","hooks_url":"https://api.github.com/repos/ddf-project/DDF/hooks","issue_events_url":"https://api.github.com/repos/ddf-project/DDF/issues/events{/number}","events_url":"https://api.github.com/repos/ddf-project/DDF/events","assignees_url":"https://api.github.com/repos/ddf-project/DDF/assignees{/user}","branches_url":"https://api.github.com/repos/ddf-project/DDF/branches{/branch}","tags_url":"https://api.github.com/repos/ddf-project/DDF/tags","blobs_url":"https://api.github.com/repos/ddf-project/DDF/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ddf-project/DDF/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ddf-project/DDF/git/refs{/sha}","trees_url":"https://api.github.com/repos/ddf-project/DDF/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ddf-project/DDF/statuses/{sha}","languages_url":"https://api.github.com/repos/ddf-project/DDF/languages","stargazers_url":"https://api.github.com/repos/ddf-project/DDF/stargazers","contributors_url":"https://api.github.com/repos/ddf-project/DDF/contributors","subscribers_url":"https://api.github.com/repos/ddf-project/DDF/subscribers","subscription_url":"https://api.github.com/repos/ddf-project/DDF/subscription","commits_url":"https://api.github.com/repos/ddf-project/DDF/commits{/sha}","git_commits_url":"https://api.github.com/repos/ddf-project/DDF/git/commits{/sha}","comments_url":"https://api.github.com/repos/ddf-project/DDF/comments{/number}","issue_comment_url":"https://api.github.com/repos/ddf-project/DDF/issues/comments{/number}","contents_url":"https://api.github.com/repos/ddf-project/DDF/contents/{+path}","compare_url":"https://api.github.com/repos/ddf-project/DDF/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ddf-project/DDF/merges","archive_url":"https://api.github.com/repos/ddf-project/DDF/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ddf-project/DDF/downloads","issues_url":"https://api.github.com/repos/ddf-project/DDF/issues{/number}","pulls_url":"https://api.github.com/repos/ddf-project/DDF/pulls{/number}","milestones_url":"https://api.github.com/repos/ddf-project/DDF/milestones{/number}","notifications_url":"https://api.github.com/repos/ddf-project/DDF/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ddf-project/DDF/labels{/name}","releases_url":"https://api.github.com/repos/ddf-project/DDF/releases{/id}","created_at":"2014-07-09T02:16:59Z","updated_at":"2015-04-14T13:18:54Z","pushed_at":"2015-04-15T23:22:19Z","git_url":"git://github.com/ddf-project/DDF.git","ssh_url":"git@github.com:ddf-project/DDF.git","clone_url":"https://github.com/ddf-project/DDF.git","svn_url":"https://github.com/ddf-project/DDF","homepage":"http://ddf.io","size":162519,"stargazers_count":54,"watchers_count":54,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":18,"mirror_url":null,"open_issues_count":28,"forks":18,"open_issues":28,"watchers":54,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ddf-project/DDF/pulls/81"},"html":{"href":"https://github.com/ddf-project/DDF/pull/81"},"issue":{"href":"https://api.github.com/repos/ddf-project/DDF/issues/81"},"comments":{"href":"https://api.github.com/repos/ddf-project/DDF/issues/81/comments"},"review_comments":{"href":"https://api.github.com/repos/ddf-project/DDF/pulls/81/comments"},"review_comment":{"href":"https://api.github.com/repos/ddf-project/DDF/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ddf-project/DDF/pulls/81/commits"},"statuses":{"href":"https://api.github.com/repos/ddf-project/DDF/statuses/d0e3acfae80a1182af369a52f980ef2e4bdb5c33"}}}}