Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
kb:solr:performance_tune [2017/10/25 13:23] – created yehuda | kb:solr:performance_tune [2022/01/03 16:03] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
see [[kb: | see [[kb: | ||
+ | |||
+ | ====== Conf ====== | ||
+ | < | ||
+ | |||
+ | Good Day!! | ||
+ | |||
+ | Thank You for your patience and co-ordination. | ||
+ | |||
+ | From the below solr logs we suspect that Indexed data in Shard " | ||
+ | |||
+ | {{ | ||
+ | 2017-10-22 14: | ||
+ | at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java: | ||
+ | at org.apache.solr.servlet.SolrDispatchFilter.httpSolrCall(SolrDispatchFilter.java: | ||
+ | at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java: | ||
+ | at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java: | ||
+ | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: | ||
+ | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: | ||
+ | at org.apache.solr.servlet.SolrHadoopAuthenticationFilter$2.doFilter(SolrHadoopAuthenticationFilter.java: | ||
+ | at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java: | ||
+ | at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticationFilter.doFilter(DelegationTokenAuthenticationFilter.java: | ||
+ | at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java: | ||
+ | at org.apache.solr.servlet.SolrHadoopAuthenticationFilter.doFilter(SolrHadoopAuthenticationFilter.java: | ||
+ | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: | ||
+ | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: | ||
+ | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: | ||
+ | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: | ||
+ | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: | ||
+ | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: | ||
+ | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: | ||
+ | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: | ||
+ | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: | ||
+ | at | ||
+ | Caused by: java.io.EOFException: | ||
+ | at org.apache.solr.store.blockcache.CustomBufferedIndexInput.refill | ||
+ | }} | ||
+ | |||
+ | In looking at your solr configs, solr.hdfs.blockcache.write.enabled is set to true, and that would definitely contribute to the issues we are seeing. | ||
+ | |||
+ | That is noted in the known release issues for Search https:// | ||
+ | |||
+ | It is recommended to turn off blockcache.write | ||
+ | |||
+ | To do so, you would need to do the following (where collection_name is the name of your: | ||
+ | |||
+ | 1. get the current instancedir from ZK: | ||
+ | solrctl instancedir --get CALSecurityLogs / | ||
+ | |||
+ | 2. Change the solr.hdfs.blockcache.write.enabled to false in solrconfig.xml: | ||
+ | <bool name=" | ||
+ | |||
+ | 3. upload your instancedir back to ZK after changing the value from true to false: | ||
+ | solrctl instancedir --update CALSecurityLogs / | ||
+ | |||
+ | 4. Reload the solr collection: | ||
+ | solrctl collection --reload CALSecurityLogs | ||
+ | |||
+ | 5. Verify through the Solr UI that the value is changed correctly: | ||
+ | Go to https:// | ||
+ | |||
+ | 6. Restart the solr instances (if you need to do a rolling restart, you can restart each one separately) | ||
+ | |||
+ | Once that is done, it would be helpful to monitor the logs to confirm there are no further issues. | ||
+ | |||
+ | ===================== | ||
+ | Enabling blockcache writing may result in unusable indexes | ||
+ | |||
+ | It is possible to create indexes with solr.hdfs.blockcache.write.enabled set to true. Such indexes may appear corrupt to readers, and reading these indexes may irrecoverably corrupt indexes. Blockcache writing is disabled by default. | ||
+ | |||
+ | Workaround: Do not enable blockcache writing. | ||
+ | |||
+ | Bug ID: CDH-17978 | ||
+ | </ |