{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/issues/458","labels_url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/issues/458/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/issues/458/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/issues/458/events","html_url":"https://github.com/elastic/elasticsearch-hadoop/issues/458","id":80912684,"number":458,"title":"ISO8601 dates with timezone offset considered invalid","user":{"login":"bobrik","id":89186,"avatar_url":"https://avatars.githubusercontent.com/u/89186?v=3","gravatar_id":"","url":"https://api.github.com/users/bobrik","html_url":"https://github.com/bobrik","followers_url":"https://api.github.com/users/bobrik/followers","following_url":"https://api.github.com/users/bobrik/following{/other_user}","gists_url":"https://api.github.com/users/bobrik/gists{/gist_id}","starred_url":"https://api.github.com/users/bobrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobrik/subscriptions","organizations_url":"https://api.github.com/users/bobrik/orgs","repos_url":"https://api.github.com/users/bobrik/repos","events_url":"https://api.github.com/users/bobrik/events{/privacy}","received_events_url":"https://api.github.com/users/bobrik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/labels/v2.1.0.Beta5","name":"v2.1.0.Beta5","color":"bfdadc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-05-26T11:03:49Z","updated_at":"2015-06-03T18:34:13Z","closed_at":"2015-06-03T18:34:13Z","body":"I'm using 2.1.0Beta4 and Spark 1.3.1:\r\n\r\n```scala\r\nJavaEsSparkSQL.esDF().saveAsParquetFile()\r\n```\r\n\r\nFails with error:\r\n\r\n```\r\n15/05/26 14:55:49 ERROR Executor: Exception in task 4.0 in stage 0.0 (TID 4)\r\njava.lang.IllegalArgumentException: 2015-05-25T22:30:00+0300\r\n\tat com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl$Parser.skip(XMLGregorianCalendarImpl.java:2844)\r\n\tat com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl$Parser.parse(XMLGregorianCalendarImpl.java:2808)\r\n\tat com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl.<init>(XMLGregorianCalendarImpl.java:435)\r\n\tat com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl.newXMLGregorianCalendar(DatatypeFactoryImpl.java:536)\r\n\tat javax.xml.bind.DatatypeConverterImpl._parseDateTime(DatatypeConverterImpl.java:422)\r\n\tat javax.xml.bind.DatatypeConverterImpl.parseDateTime(DatatypeConverterImpl.java:417)\r\n\tat javax.xml.bind.DatatypeConverter.parseDateTime(DatatypeConverter.java:327)\r\n\tat org.elasticsearch.spark.serialization.ScalaValueReader.parseDate(ScalaValueReader.scala:113)\r\n\tat org.elasticsearch.spark.serialization.ScalaValueReader$$anonfun$date$1.apply(ScalaValueReader.scala:106)\r\n\tat org.elasticsearch.spark.serialization.ScalaValueReader$$anonfun$date$1.apply(ScalaValueReader.scala:106)\r\n\tat org.elasticsearch.spark.serialization.ScalaValueReader.checkNull(ScalaValueReader.scala:58)\r\n\tat org.elasticsearch.spark.serialization.ScalaValueReader.date(ScalaValueReader.scala:106)\r\n\tat org.elasticsearch.spark.serialization.ScalaValueReader.readValue(ScalaValueReader.scala:46)\r\n\tat org.elasticsearch.hadoop.serialization.ScrollReader.parseValue(ScrollReader.java:540)\r\n\tat org.elasticsearch.hadoop.serialization.ScrollReader.read(ScrollReader.java:528)\r\n\tat org.elasticsearch.hadoop.serialization.ScrollReader.map(ScrollReader.java:596)\r\n\tat org.elasticsearch.hadoop.serialization.ScrollReader.read(ScrollReader.java:519)\r\n\tat org.elasticsearch.hadoop.serialization.ScrollReader.readHitAsMap(ScrollReader.java:339)\r\n\tat org.elasticsearch.hadoop.serialization.ScrollReader.readHit(ScrollReader.java:290)\r\n\tat org.elasticsearch.hadoop.serialization.ScrollReader.read(ScrollReader.java:185)\r\n\tat org.elasticsearch.hadoop.serialization.ScrollReader.read(ScrollReader.java:164)\r\n\tat org.elasticsearch.hadoop.rest.RestRepository.scroll(RestRepository.java:403)\r\n\tat org.elasticsearch.hadoop.rest.ScrollQuery.hasNext(ScrollQuery.java:76)\r\n\tat org.elasticsearch.spark.rdd.AbstractEsRDDIterator.hasNext(AbstractEsRDDIterator.scala:46)\r\n\tat scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:369)\r\n\tat scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:369)\r\n\tat org.apache.spark.sql.parquet.ParquetRelation2.org$apache$spark$sql$parquet$ParquetRelation2$$writeShard$1(newParquet.scala:669)\r\n\tat org.apache.spark.sql.parquet.ParquetRelation2$$anonfun$insert$2.apply(newParquet.scala:689)\r\n\tat org.apache.spark.sql.parquet.ParquetRelation2$$anonfun$insert$2.apply(newParquet.scala:689)\r\n\tat org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:61)\r\n\tat org.apache.spark.scheduler.Task.run(Task.scala:64)\r\n\tat org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:203)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n```"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/issues/comments/108566547","html_url":"https://github.com/elastic/elasticsearch-hadoop/issues/458#issuecomment-108566547","issue_url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/issues/458","id":108566547,"user":{"login":"costin","id":76245,"avatar_url":"https://avatars.githubusercontent.com/u/76245?v=3","gravatar_id":"","url":"https://api.github.com/users/costin","html_url":"https://github.com/costin","followers_url":"https://api.github.com/users/costin/followers","following_url":"https://api.github.com/users/costin/following{/other_user}","gists_url":"https://api.github.com/users/costin/gists{/gist_id}","starred_url":"https://api.github.com/users/costin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/costin/subscriptions","organizations_url":"https://api.github.com/users/costin/orgs","repos_url":"https://api.github.com/users/costin/repos","events_url":"https://api.github.com/users/costin/events{/privacy}","received_events_url":"https://api.github.com/users/costin/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T18:34:13Z","updated_at":"2015-06-03T18:34:13Z","body":"For the record, after talking on the IRC the initial problem was fixed. There is a separate one raised #464 but this one can be closed."}}