{"action":"created","comment":{"url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/pulls/comments/184448225","pull_request_review_id":115648064,"id":184448225,"diff_hunk":"@@ -50,11 +50,16 @@ object KafkaHarvester extends AtlasEntityUtils with Logging {\n     // destination topic\n     var destTopic = None: Option[String]\n     try {\n-      destTopic = node.getClass.getMethod(\"topic\").invoke(node).asInstanceOf[Option[String]]\n+      val topicField = node.getClass.getDeclaredField(\"topic\")\n+      topicField.setAccessible(true)","path":"spark-atlas-connector/src/main/scala/org/apache/spark/sql/kafka010/atlas/KafkaHarvester.scala","position":6,"original_position":6,"commit_id":"5ec0bbb22af90a090202f2ebf2cbf949636e70d2","original_commit_id":"abaac4b6334600877043b64ad49a6363a923ebe7","user":{"login":"weiqingy","id":8546874,"avatar_url":"https://avatars2.githubusercontent.com/u/8546874?v=4","gravatar_id":"","url":"https://api.github.com/users/weiqingy","html_url":"https://github.com/weiqingy","followers_url":"https://api.github.com/users/weiqingy/followers","following_url":"https://api.github.com/users/weiqingy/following{/other_user}","gists_url":"https://api.github.com/users/weiqingy/gists{/gist_id}","starred_url":"https://api.github.com/users/weiqingy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weiqingy/subscriptions","organizations_url":"https://api.github.com/users/weiqingy/orgs","repos_url":"https://api.github.com/users/weiqingy/repos","events_url":"https://api.github.com/users/weiqingy/events{/privacy}","received_events_url":"https://api.github.com/users/weiqingy/received_events","type":"User","site_admin":false},"body":"The internal commit to Spark repo also modified the right to access \"writer\" information:                     https://github.com/hortonworks-spark/spark-atlas-connector/blob/master/spark-atlas-connector/src/main/scala/com/hortonworks/spark/atlas/sql/SparkExecutionPlanTracker.scala#L134\r\n\r\nIt's wired. If SAC is able to get \"writer\" info, why it is unable to get \"topic\" info?? They are the same issue...\r\n","created_at":"2018-04-26T16:14:47Z","updated_at":"2018-04-26T16:14:47Z","html_url":"https://github.com/hortonworks-spark/spark-atlas-connector/pull/41#discussion_r184448225","pull_request_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/pulls/41","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/pulls/comments/184448225"},"html":{"href":"https://github.com/hortonworks-spark/spark-atlas-connector/pull/41#discussion_r184448225"},"pull_request":{"href":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/pulls/41"}},"in_reply_to_id":184285368},"pull_request":{"url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/pulls/41","id":184239907,"html_url":"https://github.com/hortonworks-spark/spark-atlas-connector/pull/41","diff_url":"https://github.com/hortonworks-spark/spark-atlas-connector/pull/41.diff","patch_url":"https://github.com/hortonworks-spark/spark-atlas-connector/pull/41.patch","issue_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/issues/41","number":41,"state":"open","locked":false,"title":"[SAC-40] kafka output topic fail to get","user":{"login":"merlintang","id":1431801,"avatar_url":"https://avatars1.githubusercontent.com/u/1431801?v=4","gravatar_id":"","url":"https://api.github.com/users/merlintang","html_url":"https://github.com/merlintang","followers_url":"https://api.github.com/users/merlintang/followers","following_url":"https://api.github.com/users/merlintang/following{/other_user}","gists_url":"https://api.github.com/users/merlintang/gists{/gist_id}","starred_url":"https://api.github.com/users/merlintang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/merlintang/subscriptions","organizations_url":"https://api.github.com/users/merlintang/orgs","repos_url":"https://api.github.com/users/merlintang/repos","events_url":"https://api.github.com/users/merlintang/events{/privacy}","received_events_url":"https://api.github.com/users/merlintang/received_events","type":"User","site_admin":false},"body":"Update KafkaHarvester get output topic method\r\n\r\n## Before this patch:\r\n<img width=\"415\" alt=\"screen shot 2018-04-25 at 11 39 05 pm\" src=\"https://user-images.githubusercontent.com/1431801/39289679-f6b873b4-48e1-11e8-8c66-4de437a1431d.png\">\r\n\r\n## After this patch: \r\n<img width=\"705\" alt=\"screen shot 2018-04-25 at 11 18 10 pm\" src=\"https://user-images.githubusercontent.com/1431801/39289685-fed3e678-48e1-11e8-9c74-423ddd15ea16.png\">\r\n\r\n<img width=\"475\" alt=\"screen shot 2018-04-25 at 11 36 56 pm\" src=\"https://user-images.githubusercontent.com/1431801/39289692-0660534a-48e2-11e8-845d-fcf47d85c460.png\">\r\n\r\n\r\n","created_at":"2018-04-26T06:41:01Z","updated_at":"2018-04-26T16:14:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"798d0202423fbfd79fe743f2ff1ccbd108d71a6c","assignee":null,"assignees":[],"requested_reviewers":[{"login":"weiqingy","id":8546874,"avatar_url":"https://avatars2.githubusercontent.com/u/8546874?v=4","gravatar_id":"","url":"https://api.github.com/users/weiqingy","html_url":"https://github.com/weiqingy","followers_url":"https://api.github.com/users/weiqingy/followers","following_url":"https://api.github.com/users/weiqingy/following{/other_user}","gists_url":"https://api.github.com/users/weiqingy/gists{/gist_id}","starred_url":"https://api.github.com/users/weiqingy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weiqingy/subscriptions","organizations_url":"https://api.github.com/users/weiqingy/orgs","repos_url":"https://api.github.com/users/weiqingy/repos","events_url":"https://api.github.com/users/weiqingy/events{/privacy}","received_events_url":"https://api.github.com/users/weiqingy/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/pulls/41/commits","review_comments_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/pulls/41/comments","review_comment_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/issues/41/comments","statuses_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/statuses/5ec0bbb22af90a090202f2ebf2cbf949636e70d2","head":{"label":"merlintang:SAC-40","ref":"SAC-40","sha":"5ec0bbb22af90a090202f2ebf2cbf949636e70d2","user":{"login":"merlintang","id":1431801,"avatar_url":"https://avatars1.githubusercontent.com/u/1431801?v=4","gravatar_id":"","url":"https://api.github.com/users/merlintang","html_url":"https://github.com/merlintang","followers_url":"https://api.github.com/users/merlintang/followers","following_url":"https://api.github.com/users/merlintang/following{/other_user}","gists_url":"https://api.github.com/users/merlintang/gists{/gist_id}","starred_url":"https://api.github.com/users/merlintang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/merlintang/subscriptions","organizations_url":"https://api.github.com/users/merlintang/orgs","repos_url":"https://api.github.com/users/merlintang/repos","events_url":"https://api.github.com/users/merlintang/events{/privacy}","received_events_url":"https://api.github.com/users/merlintang/received_events","type":"User","site_admin":false},"repo":{"id":114045215,"name":"spark-atlas-connector","full_name":"merlintang/spark-atlas-connector","owner":{"login":"merlintang","id":1431801,"avatar_url":"https://avatars1.githubusercontent.com/u/1431801?v=4","gravatar_id":"","url":"https://api.github.com/users/merlintang","html_url":"https://github.com/merlintang","followers_url":"https://api.github.com/users/merlintang/followers","following_url":"https://api.github.com/users/merlintang/following{/other_user}","gists_url":"https://api.github.com/users/merlintang/gists{/gist_id}","starred_url":"https://api.github.com/users/merlintang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/merlintang/subscriptions","organizations_url":"https://api.github.com/users/merlintang/orgs","repos_url":"https://api.github.com/users/merlintang/repos","events_url":"https://api.github.com/users/merlintang/events{/privacy}","received_events_url":"https://api.github.com/users/merlintang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/merlintang/spark-atlas-connector","description":"A Spark Atlas connector to track data lineage in Apache Atlas","fork":true,"url":"https://api.github.com/repos/merlintang/spark-atlas-connector","forks_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/forks","keys_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/teams","hooks_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/hooks","issue_events_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/issues/events{/number}","events_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/events","assignees_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/assignees{/user}","branches_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/branches{/branch}","tags_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/tags","blobs_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/git/refs{/sha}","trees_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/statuses/{sha}","languages_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/languages","stargazers_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/stargazers","contributors_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/contributors","subscribers_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/subscribers","subscription_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/subscription","commits_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/commits{/sha}","git_commits_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/git/commits{/sha}","comments_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/comments{/number}","issue_comment_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/issues/comments{/number}","contents_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/contents/{+path}","compare_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/merges","archive_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/downloads","issues_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/issues{/number}","pulls_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/pulls{/number}","milestones_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/milestones{/number}","notifications_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/labels{/name}","releases_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/releases{/id}","deployments_url":"https://api.github.com/repos/merlintang/spark-atlas-connector/deployments","created_at":"2017-12-12T22:21:44Z","updated_at":"2017-12-12T22:21:46Z","pushed_at":"2018-04-26T06:51:09Z","git_url":"git://github.com/merlintang/spark-atlas-connector.git","ssh_url":"git@github.com:merlintang/spark-atlas-connector.git","clone_url":"https://github.com/merlintang/spark-atlas-connector.git","svn_url":"https://github.com/merlintang/spark-atlas-connector","homepage":null,"size":289,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hortonworks-spark:master","ref":"master","sha":"251a437bc10fc74d5c7b875bd849c5be626324ee","user":{"login":"hortonworks-spark","id":21267662,"avatar_url":"https://avatars2.githubusercontent.com/u/21267662?v=4","gravatar_id":"","url":"https://api.github.com/users/hortonworks-spark","html_url":"https://github.com/hortonworks-spark","followers_url":"https://api.github.com/users/hortonworks-spark/followers","following_url":"https://api.github.com/users/hortonworks-spark/following{/other_user}","gists_url":"https://api.github.com/users/hortonworks-spark/gists{/gist_id}","starred_url":"https://api.github.com/users/hortonworks-spark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hortonworks-spark/subscriptions","organizations_url":"https://api.github.com/users/hortonworks-spark/orgs","repos_url":"https://api.github.com/users/hortonworks-spark/repos","events_url":"https://api.github.com/users/hortonworks-spark/events{/privacy}","received_events_url":"https://api.github.com/users/hortonworks-spark/received_events","type":"Organization","site_admin":false},"repo":{"id":111510376,"name":"spark-atlas-connector","full_name":"hortonworks-spark/spark-atlas-connector","owner":{"login":"hortonworks-spark","id":21267662,"avatar_url":"https://avatars2.githubusercontent.com/u/21267662?v=4","gravatar_id":"","url":"https://api.github.com/users/hortonworks-spark","html_url":"https://github.com/hortonworks-spark","followers_url":"https://api.github.com/users/hortonworks-spark/followers","following_url":"https://api.github.com/users/hortonworks-spark/following{/other_user}","gists_url":"https://api.github.com/users/hortonworks-spark/gists{/gist_id}","starred_url":"https://api.github.com/users/hortonworks-spark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hortonworks-spark/subscriptions","organizations_url":"https://api.github.com/users/hortonworks-spark/orgs","repos_url":"https://api.github.com/users/hortonworks-spark/repos","events_url":"https://api.github.com/users/hortonworks-spark/events{/privacy}","received_events_url":"https://api.github.com/users/hortonworks-spark/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hortonworks-spark/spark-atlas-connector","description":"A Spark Atlas connector to track data lineage in Apache Atlas","fork":false,"url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector","forks_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/forks","keys_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/teams","hooks_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/hooks","issue_events_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/issues/events{/number}","events_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/events","assignees_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/assignees{/user}","branches_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/branches{/branch}","tags_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/tags","blobs_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/git/refs{/sha}","trees_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/statuses/{sha}","languages_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/languages","stargazers_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/stargazers","contributors_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/contributors","subscribers_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/subscribers","subscription_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/subscription","commits_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/commits{/sha}","git_commits_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/git/commits{/sha}","comments_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/comments{/number}","issue_comment_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/issues/comments{/number}","contents_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/contents/{+path}","compare_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/merges","archive_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/downloads","issues_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/issues{/number}","pulls_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/pulls{/number}","milestones_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/milestones{/number}","notifications_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/labels{/name}","releases_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/releases{/id}","deployments_url":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/deployments","created_at":"2017-11-21T06:45:59Z","updated_at":"2018-04-10T07:06:00Z","pushed_at":"2018-04-26T06:51:10Z","git_url":"git://github.com/hortonworks-spark/spark-atlas-connector.git","ssh_url":"git@github.com:hortonworks-spark/spark-atlas-connector.git","clone_url":"https://github.com/hortonworks-spark/spark-atlas-connector.git","svn_url":"https://github.com/hortonworks-spark/spark-atlas-connector","homepage":null,"size":161,"stargazers_count":13,"watchers_count":13,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":6,"open_issues":4,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/pulls/41"},"html":{"href":"https://github.com/hortonworks-spark/spark-atlas-connector/pull/41"},"issue":{"href":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/issues/41"},"comments":{"href":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/hortonworks-spark/spark-atlas-connector/statuses/5ec0bbb22af90a090202f2ebf2cbf949636e70d2"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"weiqingy"}}