{"action":"created","issue":{"url":"https://api.github.com/repos/openzipkin/zipkin-dependencies/issues/97","repository_url":"https://api.github.com/repos/openzipkin/zipkin-dependencies","labels_url":"https://api.github.com/repos/openzipkin/zipkin-dependencies/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/openzipkin/zipkin-dependencies/issues/97/comments","events_url":"https://api.github.com/repos/openzipkin/zipkin-dependencies/issues/97/events","html_url":"https://github.com/openzipkin/zipkin-dependencies/issues/97","id":277391349,"node_id":"MDU6SXNzdWUyNzczOTEzNDk=","number":97,"title":"IPv6 support","user":{"login":"pznamensky","id":14976219,"node_id":"MDQ6VXNlcjE0OTc2MjE5","avatar_url":"https://avatars0.githubusercontent.com/u/14976219?v=4","gravatar_id":"","url":"https://api.github.com/users/pznamensky","html_url":"https://github.com/pznamensky","followers_url":"https://api.github.com/users/pznamensky/followers","following_url":"https://api.github.com/users/pznamensky/following{/other_user}","gists_url":"https://api.github.com/users/pznamensky/gists{/gist_id}","starred_url":"https://api.github.com/users/pznamensky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pznamensky/subscriptions","organizations_url":"https://api.github.com/users/pznamensky/orgs","repos_url":"https://api.github.com/users/pznamensky/repos","events_url":"https://api.github.com/users/pznamensky/events{/privacy}","received_events_url":"https://api.github.com/users/pznamensky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-11-28T13:50:20Z","updated_at":"2018-06-20T16:05:03Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nWe have an ES cluster which works in dual stack: IPv4 + IPv6.\r\nES publish_host publishes IPv6 address.\r\nAnd when we're trying to analyze dependencies error occurs:\r\n```\r\n~ $ STORAGE_TYPE=elasticsearch ES_CLUSTER=cluster1 ES_HOSTS=es1,es2 -jar zipkin-dependencies.jar\r\n\r\n17/11/28 15:56:02 INFO ElasticsearchDependenciesJob: Processing spans from zipkin-2017-11-28/span                                   17/11/28 15:56:03 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable                                                                                                                              \r\n17/11/28 15:56:04 WARN Java7Support: Unable to load JDK7 types (annotations, java.nio.file.Path): no Java7 support added              \r\nException in thread \"main\" org.elasticsearch.hadoop.rest.EsHadoopTransportException: java.net.UnknownHostException: [2a00             \r\n        at org.elasticsearch.hadoop.rest.NetworkClient.execute(NetworkClient.java:129)                                                \r\n        at org.elasticsearch.hadoop.rest.RestClient.execute(RestClient.java:466)                                                      \r\n        at org.elasticsearch.hadoop.rest.RestClient.execute(RestClient.java:430)                                                      \r\n        at org.elasticsearch.hadoop.rest.RestClient.execute(RestClient.java:434)                                                      \r\n        at org.elasticsearch.hadoop.rest.RestClient.get(RestClient.java:155)                                                          \r\n        at org.elasticsearch.hadoop.rest.RestClient.getHttpNodes(RestClient.java:112)                                                 \r\n        at org.elasticsearch.hadoop.rest.RestClient.getHttpDataNodes(RestClient.java:129)                                             \r\n        at org.elasticsearch.hadoop.rest.InitializationUtils.filterNonDataNodesIfNeeded(InitializationUtils.java:157)                 \r\n        at org.elasticsearch.hadoop.rest.RestService.findPartitions(RestService.java:223)                                             \r\n        at org.elasticsearch.spark.rdd.AbstractEsRDD.esPartitions$lzycompute(AbstractEsRDD.scala:73)                                  \r\n        at org.elasticsearch.spark.rdd.AbstractEsRDD.esPartitions(AbstractEsRDD.scala:72)                                             \r\n        at org.elasticsearch.spark.rdd.AbstractEsRDD.getPartitions(AbstractEsRDD.scala:44)\r\n        at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:252)\r\n        at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:250)\r\n        at scala.Option.getOrElse(Option.scala:121)\r\n        at org.apache.spark.rdd.RDD.partitions(RDD.scala:250)\r\n        at org.apache.spark.Partitioner$$anonfun$defaultPartitioner$2.apply(Partitioner.scala:66)\r\n        at org.apache.spark.Partitioner$$anonfun$defaultPartitioner$2.apply(Partitioner.scala:66)\r\n        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)\r\n        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)\r\n        at scala.collection.immutable.List.foreach(List.scala:381)\r\n        at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)\r\n        at scala.collection.immutable.List.map(List.scala:285)\r\n        at org.apache.spark.Partitioner$.defaultPartitioner(Partitioner.scala:66)\r\n        at org.apache.spark.rdd.RDD$$anonfun$groupBy$1.apply(RDD.scala:688)\r\n        at org.apache.spark.rdd.RDD$$anonfun$groupBy$1.apply(RDD.scala:688)\r\n        at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)\r\n        at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:112)\r\n        at org.apache.spark.rdd.RDD.withScope(RDD.scala:362)\r\n        at org.apache.spark.rdd.RDD.groupBy(RDD.scala:687)\r\n        at org.apache.spark.api.java.JavaRDDLike$class.groupBy(JavaRDDLike.scala:243)\r\n        at org.apache.spark.api.java.AbstractJavaRDDLike.groupBy(JavaRDDLike.scala:45)\r\n        at zipkin.dependencies.elasticsearch.ElasticsearchDependenciesJob.run(ElasticsearchDependenciesJob.java:207)\r\n        at zipkin.dependencies.elasticsearch.ElasticsearchDependenciesJob.run(ElasticsearchDependenciesJob.java:166)\r\n        at zipkin.dependencies.ZipkinDependenciesJob.main(ZipkinDependenciesJob.java:72)\r\nCaused by: java.net.UnknownHostException: [2a00\r\n        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)\r\n        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)\r\n        at java.net.Socket.connect(Socket.java:589)\r\n        at java.net.Socket.connect(Socket.java:538)\r\n        at java.net.Socket.<init>(Socket.java:434)\r\n        at java.net.Socket.<init>(Socket.java:286)\r\n        at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)\r\n        at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)\r\n        at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)\r\n        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)\r\n        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)\r\n        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)\r\n        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)\r\n        at org.elasticsearch.hadoop.rest.commonshttp.CommonsHttpTransport.execute(CommonsHttpTransport.java:478)\r\n        at org.elasticsearch.hadoop.rest.NetworkClient.execute(NetworkClient.java:112)\r\n        ... 34 more\r\n```\r\nIt seems that zipkin-dependencies fails when elasticsearch uses IPv6."},"comment":{"url":"https://api.github.com/repos/openzipkin/zipkin-dependencies/issues/comments/398805145","html_url":"https://github.com/openzipkin/zipkin-dependencies/issues/97#issuecomment-398805145","issue_url":"https://api.github.com/repos/openzipkin/zipkin-dependencies/issues/97","id":398805145,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODgwNTE0NQ==","user":{"login":"pznamensky","id":14976219,"node_id":"MDQ6VXNlcjE0OTc2MjE5","avatar_url":"https://avatars0.githubusercontent.com/u/14976219?v=4","gravatar_id":"","url":"https://api.github.com/users/pznamensky","html_url":"https://github.com/pznamensky","followers_url":"https://api.github.com/users/pznamensky/followers","following_url":"https://api.github.com/users/pznamensky/following{/other_user}","gists_url":"https://api.github.com/users/pznamensky/gists{/gist_id}","starred_url":"https://api.github.com/users/pznamensky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pznamensky/subscriptions","organizations_url":"https://api.github.com/users/pznamensky/orgs","repos_url":"https://api.github.com/users/pznamensky/repos","events_url":"https://api.github.com/users/pznamensky/events{/privacy}","received_events_url":"https://api.github.com/users/pznamensky/received_events","type":"User","site_admin":false},"created_at":"2018-06-20T16:05:03Z","updated_at":"2018-06-20T16:05:03Z","author_association":"NONE","body":"I've found simple workaround. Just can't believe I didn't find it earlier.\r\nAll I need is use `ES_NODES_WAN_ONLY` and run zipkin-dependencies on the same host as ES.\r\nIn this case it'll go to localhost and IPv6 advertise addresses will not be in use."}}
{"actor":{"display_login":"pznamensky"}}