{"action":"created","comment":{"url":"https://api.github.com/repos/locationtech/geomesa/pulls/comments/78431289","id":78431289,"diff_hunk":"@@ -0,0 +1,49 @@\n+/***********************************************************************\n+* Copyright (c) 2013-2016 Commonwealth Computer Research, Inc.\n+* All rights reserved. This program and the accompanying materials\n+* are made available under the terms of the Apache License, Version 2.0\n+* which accompanies this distribution and is available at\n+* http://www.opensource.org/licenses/apache2.0.php.\n+*************************************************************************/\n+\n+package org.locationtech.geomesa.kafka08\n+\n+import kafka.admin.AdminUtils\n+import kafka.client.ClientUtils\n+import kafka.consumer.AssignmentContext\n+import kafka.network.BlockingChannel\n+import org.I0Itec.zkclient.ZkClient\n+import org.apache.zookeeper.data.Stat\n+\n+case class ZkUtils08(zkClient: ZkClient){\n+  def channelToOffsetManager(groupId: String, socketTimeoutMs: Int, retryBackOffMs: Int): BlockingChannel =\n+    ClientUtils.channelToOffsetManager(groupId, zkClient, socketTimeoutMs, retryBackOffMs)\n+  def deleteTopic(topic: String): Unit = AdminUtils.deleteTopic(zkClient, topic)\n+  def topicExists(topic: String): Boolean = AdminUtils.topicExists(zkClient, topic)\n+  def getAllTopics: Seq[String] = kafka.utils.ZkUtils.getAllTopics(zkClient)\n+  def createTopic(topic: String, partitions: Int, replication: Int) = AdminUtils.createTopic(zkClient, topic, partitions, replication)\n+  def getLeaderForPartition(topic: String, partition: Int): Option[Int] = kafka.utils.ZkUtils.getLeaderForPartition(zkClient, topic, partition)\n+  def createEphemeralPathExpectConflict(path: String, data: String): Unit = kafka.utils.ZkUtils.createEphemeralPathExpectConflict(zkClient, path, data)\n+  def createEphemeralPathExpectConflictHandleZKBug(path: String,\n+                                                            data: String,\n+                                                            expectedCallerData: Any,\n+                                                            checker: (String, Any) => Boolean,\n+                                                            backoffTime: Int): Unit =\n+    kafka.utils.ZkUtils.createEphemeralPathExpectConflictHandleZKBug(zkClient, path, data, expectedCallerData, checker, backoffTime)\n+  def deletePath(path: String) = kafka.utils.ZkUtils.deletePath(zkClient, path)\n+  def getConsumerPartitionOwnerPath(groupId: String, topic: String, partition: Int): String =\n+    kafka.utils.ZkUtils.getConsumerPartitionOwnerPath(groupId, topic, partition)\n+  def getChildrenParentMayNotExist(path: String): Seq[String] = kafka.utils.ZkUtils.getChildrenParentMayNotExist(zkClient, path)\n+  def getAllBrokersInCluster: Seq[kafka.cluster.Broker] = kafka.utils.ZkUtils.getAllBrokersInCluster(zkClient)\n+  def createAssignmentContext(group: String, consumerId: String, excludeInternalTopics: Boolean): AssignmentContext =\n+    new AssignmentContext(group, consumerId, excludeInternalTopics, zkClient)\n+  def readData(path: String): (String, Stat) = kafka.utils.ZkUtils.readData(zkClient, path)\n+  def fetchTopicMetadataFromZk(topic: String) = {\n+    val metadata = AdminUtils.fetchTopicMetadataFromZk(topic, zkClient)\n+    KafkaTopicMetadata(metadata.topic, metadata.partitionsMetadata.size)\n+  }\n+\n+  def close(): Unit = zkClient.close()\n+}\n+\n+case class KafkaTopicMetadata(topicName: String, numberOfPartitions: Int)","path":"geomesa-kafka/geomesa-kafka-08-datastore/src/main/scala/org/locationtech/geomesa/kafka08/ZkUtils08.scala","position":49,"original_position":49,"commit_id":"60f8fe378a0f87525dcb4e7f869e597da5c2fc7f","original_commit_id":"60f8fe378a0f87525dcb4e7f869e597da5c2fc7f","user":{"login":"cne1x","id":1149270,"avatar_url":"https://avatars.githubusercontent.com/u/1149270?v=3","gravatar_id":"","url":"https://api.github.com/users/cne1x","html_url":"https://github.com/cne1x","followers_url":"https://api.github.com/users/cne1x/followers","following_url":"https://api.github.com/users/cne1x/following{/other_user}","gists_url":"https://api.github.com/users/cne1x/gists{/gist_id}","starred_url":"https://api.github.com/users/cne1x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cne1x/subscriptions","organizations_url":"https://api.github.com/users/cne1x/orgs","repos_url":"https://api.github.com/users/cne1x/repos","events_url":"https://api.github.com/users/cne1x/events{/privacy}","received_events_url":"https://api.github.com/users/cne1x/received_events","type":"User","site_admin":false},"body":"Is this case class re-used among the Kafka 8, 9, and 10 modules?","created_at":"2016-09-12T18:48:14Z","updated_at":"2016-09-12T18:48:14Z","html_url":"https://github.com/locationtech/geomesa/pull/1085#discussion_r78431289","pull_request_url":"https://api.github.com/repos/locationtech/geomesa/pulls/1085","_links":{"self":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/comments/78431289"},"html":{"href":"https://github.com/locationtech/geomesa/pull/1085#discussion_r78431289"},"pull_request":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/1085"}}},"pull_request":{"url":"https://api.github.com/repos/locationtech/geomesa/pulls/1085","id":84920744,"html_url":"https://github.com/locationtech/geomesa/pull/1085","diff_url":"https://github.com/locationtech/geomesa/pull/1085.diff","patch_url":"https://github.com/locationtech/geomesa/pull/1085.patch","issue_url":"https://api.github.com/repos/locationtech/geomesa/issues/1085","number":1085,"state":"open","locked":false,"title":"GEOMESA-1382, GEOMESA-1428: Add support for Kafka 0.10.0.1; Users should have separate GeoMesa JARs for Kafka 8, 9, and 10","user":{"login":"cfkelly","id":12864740,"avatar_url":"https://avatars.githubusercontent.com/u/12864740?v=3","gravatar_id":"","url":"https://api.github.com/users/cfkelly","html_url":"https://github.com/cfkelly","followers_url":"https://api.github.com/users/cfkelly/followers","following_url":"https://api.github.com/users/cfkelly/following{/other_user}","gists_url":"https://api.github.com/users/cfkelly/gists{/gist_id}","starred_url":"https://api.github.com/users/cfkelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfkelly/subscriptions","organizations_url":"https://api.github.com/users/cfkelly/orgs","repos_url":"https://api.github.com/users/cfkelly/repos","events_url":"https://api.github.com/users/cfkelly/events{/privacy}","received_events_url":"https://api.github.com/users/cfkelly/received_events","type":"User","site_admin":false},"body":"* The change in geomegeomesa-dist/src/main/assemblies/component.xmlsa-dist/src/main/assemblies/component.xml was a quick fix and may need to be changed\r\n* Chris mentioned that the methods for each KDS's KafkaUtils should probably be static, and they are currently not\r\n\r\nSigned-off-by: Charles Kelly <charles.kelly@ccri.com>","created_at":"2016-09-12T18:30:52Z","updated_at":"2016-09-12T18:48:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae5323bb717051127d195f64358a991e138776a3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/locationtech/geomesa/pulls/1085/commits","review_comments_url":"https://api.github.com/repos/locationtech/geomesa/pulls/1085/comments","review_comment_url":"https://api.github.com/repos/locationtech/geomesa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/locationtech/geomesa/issues/1085/comments","statuses_url":"https://api.github.com/repos/locationtech/geomesa/statuses/60f8fe378a0f87525dcb4e7f869e597da5c2fc7f","head":{"label":"ccri:fcr_geomesa13_kafka10","ref":"fcr_geomesa13_kafka10","sha":"60f8fe378a0f87525dcb4e7f869e597da5c2fc7f","user":{"login":"ccri","id":1089783,"avatar_url":"https://avatars.githubusercontent.com/u/1089783?v=3","gravatar_id":"","url":"https://api.github.com/users/ccri","html_url":"https://github.com/ccri","followers_url":"https://api.github.com/users/ccri/followers","following_url":"https://api.github.com/users/ccri/following{/other_user}","gists_url":"https://api.github.com/users/ccri/gists{/gist_id}","starred_url":"https://api.github.com/users/ccri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccri/subscriptions","organizations_url":"https://api.github.com/users/ccri/orgs","repos_url":"https://api.github.com/users/ccri/repos","events_url":"https://api.github.com/users/ccri/events{/privacy}","received_events_url":"https://api.github.com/users/ccri/received_events","type":"Organization","site_admin":false},"repo":{"id":16865543,"name":"geomesa","full_name":"ccri/geomesa","owner":{"login":"ccri","id":1089783,"avatar_url":"https://avatars.githubusercontent.com/u/1089783?v=3","gravatar_id":"","url":"https://api.github.com/users/ccri","html_url":"https://github.com/ccri","followers_url":"https://api.github.com/users/ccri/followers","following_url":"https://api.github.com/users/ccri/following{/other_user}","gists_url":"https://api.github.com/users/ccri/gists{/gist_id}","starred_url":"https://api.github.com/users/ccri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccri/subscriptions","organizations_url":"https://api.github.com/users/ccri/orgs","repos_url":"https://api.github.com/users/ccri/repos","events_url":"https://api.github.com/users/ccri/events{/privacy}","received_events_url":"https://api.github.com/users/ccri/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ccri/geomesa","description":"docs","fork":true,"url":"https://api.github.com/repos/ccri/geomesa","forks_url":"https://api.github.com/repos/ccri/geomesa/forks","keys_url":"https://api.github.com/repos/ccri/geomesa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ccri/geomesa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ccri/geomesa/teams","hooks_url":"https://api.github.com/repos/ccri/geomesa/hooks","issue_events_url":"https://api.github.com/repos/ccri/geomesa/issues/events{/number}","events_url":"https://api.github.com/repos/ccri/geomesa/events","assignees_url":"https://api.github.com/repos/ccri/geomesa/assignees{/user}","branches_url":"https://api.github.com/repos/ccri/geomesa/branches{/branch}","tags_url":"https://api.github.com/repos/ccri/geomesa/tags","blobs_url":"https://api.github.com/repos/ccri/geomesa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ccri/geomesa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ccri/geomesa/git/refs{/sha}","trees_url":"https://api.github.com/repos/ccri/geomesa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ccri/geomesa/statuses/{sha}","languages_url":"https://api.github.com/repos/ccri/geomesa/languages","stargazers_url":"https://api.github.com/repos/ccri/geomesa/stargazers","contributors_url":"https://api.github.com/repos/ccri/geomesa/contributors","subscribers_url":"https://api.github.com/repos/ccri/geomesa/subscribers","subscription_url":"https://api.github.com/repos/ccri/geomesa/subscription","commits_url":"https://api.github.com/repos/ccri/geomesa/commits{/sha}","git_commits_url":"https://api.github.com/repos/ccri/geomesa/git/commits{/sha}","comments_url":"https://api.github.com/repos/ccri/geomesa/comments{/number}","issue_comment_url":"https://api.github.com/repos/ccri/geomesa/issues/comments{/number}","contents_url":"https://api.github.com/repos/ccri/geomesa/contents/{+path}","compare_url":"https://api.github.com/repos/ccri/geomesa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ccri/geomesa/merges","archive_url":"https://api.github.com/repos/ccri/geomesa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ccri/geomesa/downloads","issues_url":"https://api.github.com/repos/ccri/geomesa/issues{/number}","pulls_url":"https://api.github.com/repos/ccri/geomesa/pulls{/number}","milestones_url":"https://api.github.com/repos/ccri/geomesa/milestones{/number}","notifications_url":"https://api.github.com/repos/ccri/geomesa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ccri/geomesa/labels{/name}","releases_url":"https://api.github.com/repos/ccri/geomesa/releases{/id}","deployments_url":"https://api.github.com/repos/ccri/geomesa/deployments","created_at":"2014-02-15T15:39:50Z","updated_at":"2016-02-17T20:03:55Z","pushed_at":"2016-09-12T18:20:10Z","git_url":"git://github.com/ccri/geomesa.git","ssh_url":"git@github.com:ccri/geomesa.git","clone_url":"https://github.com/ccri/geomesa.git","svn_url":"https://github.com/ccri/geomesa","homepage":"","size":42324,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"locationtech:master","ref":"master","sha":"53f705bf2b703f7c017bf1f9f04e26e1ebc2e866","user":{"login":"locationtech","id":1991411,"avatar_url":"https://avatars.githubusercontent.com/u/1991411?v=3","gravatar_id":"","url":"https://api.github.com/users/locationtech","html_url":"https://github.com/locationtech","followers_url":"https://api.github.com/users/locationtech/followers","following_url":"https://api.github.com/users/locationtech/following{/other_user}","gists_url":"https://api.github.com/users/locationtech/gists{/gist_id}","starred_url":"https://api.github.com/users/locationtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locationtech/subscriptions","organizations_url":"https://api.github.com/users/locationtech/orgs","repos_url":"https://api.github.com/users/locationtech/repos","events_url":"https://api.github.com/users/locationtech/events{/privacy}","received_events_url":"https://api.github.com/users/locationtech/received_events","type":"Organization","site_admin":false},"repo":{"id":13226069,"name":"geomesa","full_name":"locationtech/geomesa","owner":{"login":"locationtech","id":1991411,"avatar_url":"https://avatars.githubusercontent.com/u/1991411?v=3","gravatar_id":"","url":"https://api.github.com/users/locationtech","html_url":"https://github.com/locationtech","followers_url":"https://api.github.com/users/locationtech/followers","following_url":"https://api.github.com/users/locationtech/following{/other_user}","gists_url":"https://api.github.com/users/locationtech/gists{/gist_id}","starred_url":"https://api.github.com/users/locationtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locationtech/subscriptions","organizations_url":"https://api.github.com/users/locationtech/orgs","repos_url":"https://api.github.com/users/locationtech/repos","events_url":"https://api.github.com/users/locationtech/events{/privacy}","received_events_url":"https://api.github.com/users/locationtech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/locationtech/geomesa","description":"GeoMesa is a suite of tools for working with big geo-spatial data in a distributed fashion.","fork":false,"url":"https://api.github.com/repos/locationtech/geomesa","forks_url":"https://api.github.com/repos/locationtech/geomesa/forks","keys_url":"https://api.github.com/repos/locationtech/geomesa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/locationtech/geomesa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/locationtech/geomesa/teams","hooks_url":"https://api.github.com/repos/locationtech/geomesa/hooks","issue_events_url":"https://api.github.com/repos/locationtech/geomesa/issues/events{/number}","events_url":"https://api.github.com/repos/locationtech/geomesa/events","assignees_url":"https://api.github.com/repos/locationtech/geomesa/assignees{/user}","branches_url":"https://api.github.com/repos/locationtech/geomesa/branches{/branch}","tags_url":"https://api.github.com/repos/locationtech/geomesa/tags","blobs_url":"https://api.github.com/repos/locationtech/geomesa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/locationtech/geomesa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/locationtech/geomesa/git/refs{/sha}","trees_url":"https://api.github.com/repos/locationtech/geomesa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/locationtech/geomesa/statuses/{sha}","languages_url":"https://api.github.com/repos/locationtech/geomesa/languages","stargazers_url":"https://api.github.com/repos/locationtech/geomesa/stargazers","contributors_url":"https://api.github.com/repos/locationtech/geomesa/contributors","subscribers_url":"https://api.github.com/repos/locationtech/geomesa/subscribers","subscription_url":"https://api.github.com/repos/locationtech/geomesa/subscription","commits_url":"https://api.github.com/repos/locationtech/geomesa/commits{/sha}","git_commits_url":"https://api.github.com/repos/locationtech/geomesa/git/commits{/sha}","comments_url":"https://api.github.com/repos/locationtech/geomesa/comments{/number}","issue_comment_url":"https://api.github.com/repos/locationtech/geomesa/issues/comments{/number}","contents_url":"https://api.github.com/repos/locationtech/geomesa/contents/{+path}","compare_url":"https://api.github.com/repos/locationtech/geomesa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/locationtech/geomesa/merges","archive_url":"https://api.github.com/repos/locationtech/geomesa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/locationtech/geomesa/downloads","issues_url":"https://api.github.com/repos/locationtech/geomesa/issues{/number}","pulls_url":"https://api.github.com/repos/locationtech/geomesa/pulls{/number}","milestones_url":"https://api.github.com/repos/locationtech/geomesa/milestones{/number}","notifications_url":"https://api.github.com/repos/locationtech/geomesa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/locationtech/geomesa/labels{/name}","releases_url":"https://api.github.com/repos/locationtech/geomesa/releases{/id}","deployments_url":"https://api.github.com/repos/locationtech/geomesa/deployments","created_at":"2013-09-30T20:13:46Z","updated_at":"2016-09-07T13:46:19Z","pushed_at":"2016-09-12T18:30:53Z","git_url":"git://github.com/locationtech/geomesa.git","ssh_url":"git@github.com:locationtech/geomesa.git","clone_url":"https://github.com/locationtech/geomesa.git","svn_url":"https://github.com/locationtech/geomesa","homepage":"https://www.locationtech.org/projects/technology.geomesa","size":46661,"stargazers_count":204,"watchers_count":204,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":107,"mirror_url":null,"open_issues_count":9,"forks":107,"open_issues":9,"watchers":204,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/1085"},"html":{"href":"https://github.com/locationtech/geomesa/pull/1085"},"issue":{"href":"https://api.github.com/repos/locationtech/geomesa/issues/1085"},"comments":{"href":"https://api.github.com/repos/locationtech/geomesa/issues/1085/comments"},"review_comments":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/1085/comments"},"review_comment":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/1085/commits"},"statuses":{"href":"https://api.github.com/repos/locationtech/geomesa/statuses/60f8fe378a0f87525dcb4e7f869e597da5c2fc7f"}}}}
{"actor":{"display_login":"cne1x"}}