[ 
https://issues.apache.org/jira/browse/SPARK-5592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Cheng Lian resolved SPARK-5592.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 1.3.0

Issue resolved by pull request 4368
[https://github.com/apache/spark/pull/4368]

> java.net.URISyntaxException when insert data to a partitioned table  
> ---------------------------------------------------------------------
>
>                 Key: SPARK-5592
>                 URL: https://issues.apache.org/jira/browse/SPARK-5592
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 1.2.0
>            Reporter: wangfei
>             Fix For: 1.3.0
>
>
> create table sc as select * 
> from (select '2011-01-11', '2011-01-11+14:18:26' from src tablesample (1 rows)
>       union all 
>       select '2011-01-11', '2011-01-11+15:18:26' from src tablesample (1 rows)
>       union all 
>       select '2011-01-11', '2011-01-11+16:18:26' from src tablesample (1 
> rows) ) s;
> create table sc_part (key string) partitioned by (ts string) stored as rcfile;
> set hive.exec.dynamic.partition=true;
> set hive.exec.dynamic.partition.mode=nonstrict;
> insert overwrite table sc_part partition(ts) select * from sc;
> java.net.URISyntaxException: Relative path in absolute URI: 
> ts=2011-01-11+15:18:26
>         at org.apache.hadoop.fs.Path.initialize(Path.java:206)
>         at org.apache.hadoop.fs.Path.<init>(Path.java:172)
>         at org.apache.hadoop.fs.Path.<init>(Path.java:94)
>         at 
> org.apache.spark.sql.hive.SparkHiveDynamicPartitionWriterContainer.org$apache$spark$sql$hive$SparkHiveDynamicPartitionWriterContainer$$newWriter$1(hiveWriterContainers.scala:230)
>         at 
> org.apache.spark.sql.hive.SparkHiveDynamicPartitionWriterContainer$$anonfun$getLocalFileWriter$1.apply(hiveWriterContainers.scala:243)
>         at 
> org.apache.spark.sql.hive.SparkHiveDynamicPartitionWriterContainer$$anonfun$getLocalFileWriter$1.apply(hiveWriterContainers.scala:243)
>         at 
> scala.collection.mutable.MapLike$class.getOrElseUpdate(MapLike.scala:189)
>         at scala.collection.mutable.AbstractMap.getOrElseUpdate(Map.scala:91)
>         at 
> org.apache.spark.sql.hive.SparkHiveDynamicPartitionWriterContainer.getLocalFileWriter(hiveWriterContainers.scala:243)
>         at 
> org.apache.spark.sql.hive.execution.InsertIntoHiveTable$$anonfun$org$apache$spark$sql$hive$execution$InsertIntoHiveTable$$writeToFile$1$1.apply(InsertIntoHiveTable.scala:113)
>         at 
> org.apache.spark.sql.hive.execution.InsertIntoHiveTable$$anonfun$org$apache$spark$sql$hive$execution$InsertIntoHiveTable$$writeToFile$1$1.apply(InsertIntoHiveTable.scala:105)
>         at scala.collection.Iterator$class.foreach(Iterator.scala:727)
>         at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
>         at 
> org.apache.spark.sql.hive.execution.InsertIntoHiveTable.org$apache$spark$sql$hive$execution$InsertIntoHiveTable$$writeToFile$1(InsertIntoHiveTable.scala:105)
>         at 
> org.apache.spark.sql.hive.execution.InsertIntoHiveTable$$anonfun$saveAsHiveFile$3.apply(InsertIntoHiveTable.scala:87)
>         at 
> org.apache.spark.sql.hive.execution.InsertIntoHiveTable$$anonfun$saveAsHiveFile$3.apply(InsertIntoHiveTable.scala:87)
>         at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:61)
>         at org.apache.spark.scheduler.Task.run(Task.scala:64)
>         at 
> org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:194)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:722)
> Caused by: java.net.URISyntaxException: Relative path in absolute URI: 
> ts=2011-01-11+15:18:26
>         at java.net.URI.checkPath(URI.java:1804)
>         at java.net.URI.<init>(URI.java:752)
>         at org.apache.hadoop.fs.Path.initialize(Path.java:203)
>         ... 21 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to