[
https://issues.apache.org/jira/browse/SPARK-28841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16960460#comment-16960460
]
Sean R. Owen commented on SPARK-28841:
--------------------------------------
Yes, that input is ambiguous. You'd have to prefix with "file:" or "hdfs:', etc
This isn't a problem with Spark per se but just how anything interpreting input
as a potential URI faces.
I can't reproduce your issue [~zsxwing] - that works for me locally (when I fix
the ? to :). It happens to work as intended without file: because a scheme
can't have a slash.
> Spark cannot read a relative path containing ":"
> ------------------------------------------------
>
> Key: SPARK-28841
> URL: https://issues.apache.org/jira/browse/SPARK-28841
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.4.3
> Reporter: Shixiong Zhu
> Priority: Major
>
> Reproducer:
> {code}
> spark.read.parquet("test:test")
> {code}
> Error:
> {code}
> java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative
> path in absolute URI: test:test
> {code}
> This is actually a Hadoop issue since the error is thrown from "new
> Path("test:test")". I'm creating this ticket to see if we can work around
> this issue in Spark.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]