{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/issues/1092","repository_url":"https://api.github.com/repos/elastic/elasticsearch-hadoop","labels_url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/issues/1092/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/issues/1092/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/issues/1092/events","html_url":"https://github.com/elastic/elasticsearch-hadoop/issues/1092","id":287012151,"node_id":"MDU6SXNzdWUyODcwMTIxNTE=","number":1092,"title":"Invalid port error when using IPv6 endpoint","user":{"login":"adriancole","id":64215,"node_id":"MDQ6VXNlcjY0MjE1","avatar_url":"https://avatars2.githubusercontent.com/u/64215?v=4","gravatar_id":"","url":"https://api.github.com/users/adriancole","html_url":"https://github.com/adriancole","followers_url":"https://api.github.com/users/adriancole/followers","following_url":"https://api.github.com/users/adriancole/following{/other_user}","gists_url":"https://api.github.com/users/adriancole/gists{/gist_id}","starred_url":"https://api.github.com/users/adriancole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adriancole/subscriptions","organizations_url":"https://api.github.com/users/adriancole/orgs","repos_url":"https://api.github.com/users/adriancole/repos","events_url":"https://api.github.com/users/adriancole/events{/privacy}","received_events_url":"https://api.github.com/users/adriancole/received_events","type":"User","site_admin":false},"labels":[{"id":34168699,"node_id":"MDU6TGFiZWwzNDE2ODY5OQ==","url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/labels/:Rest","name":":Rest","color":"009800","default":false},{"id":31506632,"node_id":"MDU6TGFiZWwzMTUwNjYzMg==","url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-01-09T08:51:48Z","updated_at":"2018-12-12T22:37:26Z","closed_at":"2018-12-12T22:37:26Z","author_association":"NONE","body":"### What kind an issue is this?\r\n\r\n- [x] Bug report. If you’ve found a bug, please provide a code snippet or test to reproduce it below.   \r\n    The easier it is to track down the bug, the faster it is solved. \r\n- [ ] Feature Request. Start by telling us what problem you’re trying to solve.  \r\n    Often a solution already exists! Don’t send pull requests to implement new features without \r\n    first getting our support. Sometimes we leave features out on purpose to keep the project small.\r\n\r\n### Issue description\r\n\r\nIt appears that Ipv6 address is being mistaken for an Ipv4 address.\r\n\r\n### Steps to reproduce\r\n\r\nCode:\r\n\r\nThis is using latest [zipkin-dependencies](https://github.com/openzipkin/zipkin-dependencies/tree/master/elasticsearch) which uses version 6.1.0\r\n```\r\nSPARK_LOCAL_HOSTNAME=localhost STORAGE_TYPE=elasticsearch ES_HOSTS=elastic.server java -Djava.net.preferIPv6Addresses=true -jar zipkin-dependencies.jar\r\n```\r\n\r\nStack trace:\r\n\r\n```\r\nuser@server ~ $ SPARK_LOCAL_HOSTNAME=localhost STORAGE_TYPE=elasticsearch ES_HOSTS=elastic.server java -Djava.net.preferIPv6Addresses=true -jar zipkin-dependencies.jar\r\n18/01/09 11:24:12 INFO ElasticsearchDependenciesJob: Processing spans from zipkin-2018-01-09/span                                     \r\n18/01/09 11:24:12 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable                                                                                                                              \r\n18/01/09 11:24:13 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: Invalid target URI 2a00:1:2:3:0:0:0:1       \r\n        at org.elasticsearch.hadoop.rest.commonshttp.CommonsHttpTransport.<init>(CommonsHttpTransport.java:178)                       \r\n        at org.elasticsearch.hadoop.rest.commonshttp.CommonsHttpTransportFactory.create(CommonsHttpTransportFactory.java:39)          \r\n        at org.elasticsearch.hadoop.rest.NetworkClient.selectNextNode(NetworkClient.java:99)                                          \r\n        at org.elasticsearch.hadoop.rest.NetworkClient.<init>(NetworkClient.java:82)                                                  \r\n        at org.elasticsearch.hadoop.rest.NetworkClient.<init>(NetworkClient.java:59)                                                  \r\n        at org.elasticsearch.hadoop.rest.RestClient.<init>(RestClient.java:92)                                                        \r\n        at org.elasticsearch.hadoop.rest.InitializationUtils.checkIndexStatus(InitializationUtils.java:69)                            \r\n        at org.elasticsearch.hadoop.rest.InitializationUtils.validateSettingsForReading(InitializationUtils.java:271)                 \r\n        at org.elasticsearch.hadoop.rest.RestService.findPartitions(RestService.java:218)                                             \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: org.apache.commons.httpclient.URIException: invalid port number\r\n        at org.apache.commons.httpclient.URI.parseAuthority(URI.java:2248)\r\n        at org.apache.commons.httpclient.URI.parseUriReference(URI.java:1978)\r\n        at org.apache.commons.httpclient.URI.<init>(URI.java:167)\r\n        at org.elasticsearch.hadoop.rest.commonshttp.CommonsHttpTransport.<init>(CommonsHttpTransport.java:176)\r\n        ... 34 more\r\n``` \r\n\r\n### Version Info\r\n\r\n@pznamensky please fill this in if you can \r\nOS:         :  \r\nJVM         :  \r\nHadoop/Spark:  \r\nES-Hadoop   :  \r\nES          :  \r\n\r\n<!--\r\nIf you are filing a feature request, please remove the above bug\r\nreport block and provide responses for all of the below items.\r\n-->\r\n\r\n### Feature description\r\n\r\nSee https://github.com/openzipkin/zipkin-dependencies/issues/97#issuecomment-356215766"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/issues/comments/446770712","html_url":"https://github.com/elastic/elasticsearch-hadoop/issues/1092#issuecomment-446770712","issue_url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/issues/1092","id":446770712,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Njc3MDcxMg==","user":{"login":"jbaiera","id":875779,"node_id":"MDQ6VXNlcjg3NTc3OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/875779?v=4","gravatar_id":"","url":"https://api.github.com/users/jbaiera","html_url":"https://github.com/jbaiera","followers_url":"https://api.github.com/users/jbaiera/followers","following_url":"https://api.github.com/users/jbaiera/following{/other_user}","gists_url":"https://api.github.com/users/jbaiera/gists{/gist_id}","starred_url":"https://api.github.com/users/jbaiera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbaiera/subscriptions","organizations_url":"https://api.github.com/users/jbaiera/orgs","repos_url":"https://api.github.com/users/jbaiera/repos","events_url":"https://api.github.com/users/jbaiera/events{/privacy}","received_events_url":"https://api.github.com/users/jbaiera/received_events","type":"User","site_admin":false},"created_at":"2018-12-12T22:37:26Z","updated_at":"2018-12-12T22:37:26Z","author_association":"CONTRIBUTOR","body":"Grooming the backlog - the issues for this are captured in issue #1105. I'll close this out to keep everything in one place."}}
{"actor":{"display_login":"jbaiera"}}