Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elasticsearchERROR Illegal char <:> at index 6: zipkin:span-2019-03-06 windows7 elasticsearch-2.3.1 #2428

Closed
brightvip opened this issue Mar 6, 2019 · 7 comments
Labels
elasticsearch Elasticsearch storage component

Comments

@codefromthecrypt
Copy link
Member

codefromthecrypt commented Mar 6, 2019 via email

@shakuzen shakuzen added the elasticsearch Elasticsearch storage component label Mar 6, 2019
@brightvip
Copy link
Author

@adriancole
elasticsearch.log

Hello
 
Zipkin + elasticsearch-2.3.1 +WIN7 error
Zipkin + elasticsearch-2.3.1 + centos6.5 success
I don't think it is an elasticsearch error because win7 can't use a colon as a folder name.

@shakuzen
Copy link
Member

shakuzen commented Mar 6, 2019

Is your Elasticsearch server run on Windows and does it need to be? If it is just to test locally, maybe you can use Docker to run Elasticsearch?

@brightvip
Copy link
Author

I hope this colon can be specified with a different symbol such as ES_DATE_SEPARATOR so I can specify @

@codefromthecrypt
Copy link
Member

codefromthecrypt commented Mar 6, 2019

@brightvip this sounds like a bug in ES. let's please verify that first

@openzipkin/elasticsearch does anyone know if ES intentionally has a constraint about colons in index names in windows, or if this was a bug fixed.

I want to separate this from the other issue about ES 7 as we've gone multiple years with no problems reported on colons and need to conserve time as making a change here also implies one in other places.

@xeraa
Copy link
Member

xeraa commented Mar 6, 2019

2.x is really old and I don't have a Windows machine at hand, so I cannot try it out, but I have a hunch: We used the index name as the folder name in Elasticsearch's data directory. I think with 5.0 this was changed to use a UUID to avoid any issues with file systems and special naming patterns in them (like calling an index .., etc). Is : generally not allowed on Windows and you are trying to create a folder with such a name?

From Elasticsearch's point of view the colon will only be disallowed in 7.0 and you can see the current rules for disallowed characters in https://github.com/elastic/elasticsearch/blob/master/server/src/main/java/org/elasticsearch/cluster/metadata/MetaDataCreateIndexService.java#L162-L188.

@codefromthecrypt
Copy link
Member

thanks for the advice @xeraa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
elasticsearch Elasticsearch storage component
Projects
None yet
Development

No branches or pull requests

4 participants