Hi,
':' has a special meaning in an URI, which is what HDFS uses. You basically have to either escape the character (%3A) or
use a different character.
Potentially you can rename the file to the desired name by running a separate
command after the job has been completed.
However, no URI/URL can be constructed from your file-name, in the format you desire, so you'll have to encode/decode
the location every-time.
On 9/1/14 8:10 PM, Mateusz Kaczynski wrote:
Whenever I try to take a snapshot of an index which contains a ':' colon in its
name,I end up with the following trace:
{
"error":"IllegalArgumentException[java.net.URISyntaxException: Relative
path in absolute URI: crawl:1]; nested:
URISyntaxException[Relative path in absolute URI: crawl:1]; ",
"status":500
}
It does not matter if the 'indices' argument is provided or not, the snapshot
name is set to 'snapshot'. I have tried to
specify the index escaping the sign with '%3a' but in this case the name does
not fit any available indices.
I assume this is related to https://issues.apache.org/jira/browse/HDFS-13
filenames with ':' colon throws
java.lang.IllegalArgumentException?
The question is, is there a way to somehow escape the character (if not within
the request then perhaps code itself?)
and if so, would creating a feature request make sense?
Many thanks,
Mateusz
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
[email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/ce4b5ffb-f473-4862-8b67-bec1f08bd840%40googlegroups.com
<https://groups.google.com/d/msgid/elasticsearch/ce4b5ffb-f473-4862-8b67-bec1f08bd840%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
Costin
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/5404AE44.3010800%40gmail.com.
For more options, visit https://groups.google.com/d/optout.