You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2019/12/26 11:02:55 UTC

[GitHub] [skywalking] huangkaiyan10 opened a new issue #4136: I can shorten elasticsearch index name

huangkaiyan10 opened a new issue #4136: I can shorten elasticsearch index name
URL: https://github.com/apache/skywalking/issues/4136
 
 
   I wanted to use elassandra's elasticsearch feature on this project and integrate skywalking link tracking to discover this problem.I used the skywalking version is apache-skywalking-apm-6.5.0.
   
   [cassandra] Both keyspace and table name should be comprised of only alphanumeric characters, cannot be empty and are limited in size to 48 characters (that limit exists mostly to avoid filenames (which may include the keyspace and table name) to go over the limits of certain file systems). By default, keyspace and table names are case insensitive (myTable is equivalent to mytable) but case sensitivity can be forced by using double-quotes ("myTable" is different from mytable).
   
   Below is the error log
   
   2019-12-26 16:38:15,547 - org.apache.skywalking.oap.server.starter.OAPServerStartUp - 55 [main] ERROR [] - Elasticsearch exception [type=invalid_request_exception, reason=Keyspace names shouldn't be more than 48 characters long (got "instance_clr_available_completion_port_threads_hour_20191226")]
   org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=invalid_request_exception, reason=Keyspace names shouldn't be more than 48 characters long (got "instance_clr_available_completion_port_threads_hour_20191226")]
   at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:177) ~[elasticsearch-6.3.2.jar:6.3.2]
   at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:653) ~[elasticsearch-rest-high-level-client-6.3.2.jar:6.3.2]
   at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:628) ~[elasticsearch-rest-high-level-client-6.3.2.jar:6.3.2]
   at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:535) ~[elasticsearch-rest-high-level-client-6.3.2.jar:6.3.2]
   at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:508) ~[elasticsearch-rest-high-level-client-6.3.2.jar:6.3.2]
   at org.elasticsearch.client.IndicesClient.create(IndicesClient.java:99) ~[elasticsearch-rest-high-level-client-6.3.2.jar:6.3.2]
   at org.apache.skywalking.oap.server.library.client.elasticsearch.ElasticSearchClient.createIndex(ElasticSearchClient.java:168) ~[library-client-6.5.0.jar:6.5.0]
   at org.apache.skywalking.oap.server.storage.plugin.elasticsearch.base.StorageEsInstaller.createTable(StorageEsInstaller.java:82) ~[storage-elasticsearch-plugin-6.5.0.jar:6.5.0]
   at org.apache.skywalking.oap.server.core.storage.model.ModelInstaller.install(ModelInstaller.java:61) ~[server-core-6.5.0.jar:6.5.0]
   at org.apache.skywalking.oap.server.storage.plugin.elasticsearch.StorageModuleElasticsearchProvider.start(StorageModuleElasticsearchProvider.java:136) ~[storage-elasticsearch-plugin-6.5.0.jar:6.5.0]
   at org.apache.skywalking.oap.server.library.module.BootstrapFlow.start(BootstrapFlow.java:61) ~[library-module-6.5.0.jar:6.5.0]
   at org.apache.skywalking.oap.server.library.module.ModuleManager.init(ModuleManager.java:67) ~[library-module-6.5.0.jar:6.5.0]
   at org.apache.skywalking.oap.server.starter.OAPServerStartUp.main(OAPServerStartUp.java:43) [server-starter-6.5.0.jar:6.5.0]

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] huangkaiyan10 commented on issue #4136: I can shorten elasticsearch index name

Posted by GitBox <gi...@apache.org>.
huangkaiyan10 commented on issue #4136: I can shorten elasticsearch index name
URL: https://github.com/apache/skywalking/issues/4136#issuecomment-569162857
 
 
   @wu-sheng use Cassandra as a store for elasticsearch.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] wu-sheng commented on issue #4136: I can shorten elasticsearch index name

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4136: I can shorten elasticsearch index name
URL: https://github.com/apache/skywalking/issues/4136#issuecomment-569169461
 
 
   I have already known that. But my question is, what do you want from us? Clearly, we are impossible to change all names to follow your requirements, they are bounded in the codes everywhere.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] wu-sheng commented on issue #4136: I can shorten elasticsearch index name

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4136: I can shorten elasticsearch index name
URL: https://github.com/apache/skywalking/issues/4136#issuecomment-569599554
 
 
   Any further discussion?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] wu-sheng commented on issue #4136: I can shorten elasticsearch index name

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4136: I can shorten elasticsearch index name
URL: https://github.com/apache/skywalking/issues/4136#issuecomment-569162038
 
 
   We don't have that, as we even don't know this use case. But how do you expect to make the name shorter? Most names are defined in OAL and widely used UI, CLI and many 3rd party systems, even commercial production. 
   
   Could you indicate what you want to do?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] wu-sheng commented on issue #4136: I can shorten elasticsearch index name

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4136: I can shorten elasticsearch index name
URL: https://github.com/apache/skywalking/issues/4136#issuecomment-569163282
 
 
   I know that part, I mean what do you want to change in your mind? Simply changing the name is very hard to be accepted by the community. And you will break a lot of things.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] wu-sheng closed issue #4136: I can shorten elasticsearch index name

Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #4136: I can shorten elasticsearch index name
URL: https://github.com/apache/skywalking/issues/4136
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] huangkaiyan10 commented on issue #4136: I can shorten elasticsearch index name

Posted by GitBox <gi...@apache.org>.
huangkaiyan10 commented on issue #4136: I can shorten elasticsearch index name
URL: https://github.com/apache/skywalking/issues/4136#issuecomment-569166122
 
 
   if I want use  Cassandra as a store ,the name is limited in size to 48 characters 。cassandra's Keyspace and table names are limited in size to 48 characters .

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] huangkaiyan10 removed a comment on issue #4136: I can shorten elasticsearch index name

Posted by GitBox <gi...@apache.org>.
huangkaiyan10 removed a comment on issue #4136: I can shorten elasticsearch index name
URL: https://github.com/apache/skywalking/issues/4136#issuecomment-569166122
 
 
   if I want use  Cassandra as a store ,the name is limited in size to 48 characters 。cassandra's Keyspace and table names are limited in size to 48 characters .

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] huangkaiyan10 commented on issue #4136: I can shorten elasticsearch index name

Posted by GitBox <gi...@apache.org>.
huangkaiyan10 commented on issue #4136: I can shorten elasticsearch index name
URL: https://github.com/apache/skywalking/issues/4136#issuecomment-569166186
 
 
   @wu-sheng if I want use Cassandra as a store ,the name is limited in size to 48 characters 。cassandra's Keyspace and table names are limited in size to 48 characters .

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] wu-sheng commented on issue #4136: I can shorten elasticsearch index name

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4136: I can shorten elasticsearch index name
URL: https://github.com/apache/skywalking/issues/4136#issuecomment-569070037
 
 
   Could you share which storage are you using?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] kezhenxu94 commented on issue #4136: I can shorten elasticsearch index name

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on issue #4136: I can shorten elasticsearch index name
URL: https://github.com/apache/skywalking/issues/4136#issuecomment-569076993
 
 
   @huangkaiyan10 so Cassandra ElasticSearch is a variation of ElasticSearch? If you must use Cassandra ElasticSearch, I think you may need to find out how to cancel the limitations on key space length on Cassandra side, at least, I don’t think we’ll provide another storage type specifically for this variation, will we @wu-sheng ? If the only difference is indices name length, maybe a config item to shorten the names, but it really needs investigation on the differences. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] huangkaiyan10 commented on issue #4136: I can shorten elasticsearch index name

Posted by GitBox <gi...@apache.org>.
huangkaiyan10 commented on issue #4136: I can shorten elasticsearch index name
URL: https://github.com/apache/skywalking/issues/4136#issuecomment-569157497
 
 
   > Could you share which storage are you using?
   
   Cassandra as a store for elasticsearch. Cassandra has a limitation, Keyspace and table name are limited in size to 48 characters (that limit exists mostly to avoid filenames (which may include the keyspace and table name) to go over the limits of certain file systems)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] huangkaiyan10 commented on issue #4136: I can shorten elasticsearch index name

Posted by GitBox <gi...@apache.org>.
huangkaiyan10 commented on issue #4136: I can shorten elasticsearch index name
URL: https://github.com/apache/skywalking/issues/4136#issuecomment-569157670
 
 
   @kezhenxu94  Cassandra as a store for elasticsearch. Cassandra has a limitation, Keyspace and table names are limited in size to 48 characters (that limit exists mostly to avoid filenames (which may include the keyspace and table name) to go over the limits of certain files Systems). Settings are not currently provided to resolve this issue

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services