Unable to Create Collection on Solr Cloud 7.7.1

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Unable to Create Collection on Solr Cloud 7.7.1

iporritt
This post was updated on .
I am trying to create a collection on Solr Cloud. I have firstly uploaded
SolrConfig.xml and Schema.xml to Zookeeper. The SolrConfig.XML is as
follows:

<?xml version="1.0" encoding="UTF-8" ?>
<config>
  <luceneMatchVersion>7.7.1</luceneMatchVersion>
  <lib
dir="${solr.install.dir:../../../..}/contrib/prometheus-exporter/lucene-libs"
regex=".*\.jar" />       
  <lib dir="${solr.install.dir:../../../..}/contrib/extraction/lib"
regex=".*\.jar" />
  <lib dir="${solr.install.dir:../../../..}/dist/"
regex="solr-cell-\d.*\.jar" />

  <lib dir="${solr.install.dir:../../../..}/contrib/clustering/lib/"
regex=".*\.jar" />
  <lib dir="${solr.install.dir:../../../..}/dist/"
regex="solr-clustering-\d.*\.jar" />

  <lib dir="${solr.install.dir:../../../..}/contrib/langid/lib/"
regex=".*\.jar" />
  <lib dir="${solr.install.dir:../../../..}/dist/"
regex="solr-langid-\d.*\.jar" />

  <lib dir="${solr.install.dir:../../../..}/contrib/velocity/lib"
regex=".*\.jar" />
  <lib dir="${solr.install.dir:../../../..}/dist/"
regex="solr-velocity-\d.*\.jar" />
  <lib
dir="${solr.install.dir:../../../..}/contrib/prometheus-exporter/lucene-libs"
regex=".*\.jar" />
 
 
  <dataDir>${solr.data.dir:}</dataDir>

  <directoryFactory name="DirectoryFactory"
                   
class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"/>

  <codecFactory class="solr.SchemaCodecFactory"/>
  <indexConfig>
   

    <lockType>${solr.lock.type:native}</lockType>

  </indexConfig>

  <jmx />

  <updateHandler class="solr.DirectUpdateHandler2">

    <updateLog>
      <str name="dir">${solr.ulog.dir:}</str>
      <int
name="numVersionBuckets">${solr.ulog.numVersionBuckets:65536}</int>
    </updateLog>
    <autoCommit>
      <maxTime>${solr.autoCommit.maxTime:15000}</maxTime>
      <openSearcher>false</openSearcher>
    </autoCommit>
    <autoSoftCommit>
      <maxTime>${solr.autoSoftCommit.maxTime:-1}</maxTime>
    </autoSoftCommit>
  </updateHandler>

  <query>
   <maxBooleanClauses>${solr.max.booleanClauses:1024}</maxBooleanClauses>

    <filterCache class="solr.FastLRUCache"
                 size="512"
                 initialSize="512"
                 autowarmCount="0"/>

   
    <queryResultCache class="solr.LRUCache"
                      size="512"
                      initialSize="512"
                      autowarmCount="0"/>

   
    <documentCache class="solr.LRUCache"
                   size="512"
                   initialSize="512"
                   autowarmCount="0"/>
    <cache name="perSegFilter"
           class="solr.search.LRUCache"
           size="10"
           initialSize="0"
           autowarmCount="10"
           regenerator="solr.NoOpRegenerator" />

    <enableLazyFieldLoading>true</enableLazyFieldLoading>

    <queryResultWindowSize>20</queryResultWindowSize>
   
    <queryResultMaxDocsCached>200</queryResultMaxDocsCached>

    <listener event="newSearcher" class="solr.QuerySenderListener">
      <arr name="queries">
       
      </arr>
    </listener>
    <listener event="firstSearcher" class="solr.QuerySenderListener">
      <arr name="queries">
       
      </arr>
    </listener>

   
    <useColdSearcher>false</useColdSearcher>

  </query>

  <requestDispatcher>

    <httpCaching never304="true" />

  </requestDispatcher>

  <requestHandler name="/select" class="solr.SearchHandler">
   
    <lst name="defaults">
      <str name="echoParams">explicit</str>
      <int name="rows">10</int>
 
    </lst>

  </requestHandler>

  <requestHandler name="/query" class="solr.SearchHandler">
    <lst name="defaults">
      <str name="echoParams">explicit</str>
      <str name="wt">json</str>
      <str name="indent">true</str>
    </lst>
  </requestHandler>

  <requestHandler name="/browse" class="solr.SearchHandler"
useParams="query,facets,velocity,browse">
    <lst name="defaults">
      <str name="echoParams">explicit</str>
    </lst>
  </requestHandler>

  <initParams
path="/update/**,/query,/select,/tvrh,/elevate,/spell,/browse">
    <lst name="defaults">
      <str name="df">_text_</str>
    </lst>
  </initParams>

 
  <requestHandler name="/update/extract"
                  startup="lazy"
                  class="solr.extraction.ExtractingRequestHandler" >
    <lst name="defaults">
      <str name="lowernames">true</str>
      <str name="fmap.meta">ignored_</str>
      <str name="fmap.content">_text_</str>
    </lst>
  </requestHandler>


  <searchComponent name="spellcheck" class="solr.SpellCheckComponent">

    <str name="queryAnalyzerFieldType">text_general</str>


    <lst name="spellchecker">
      <str name="name">default</str>
      <str name="field">_text_</str>
      <str name="classname">solr.DirectSolrSpellChecker</str>
     
      <str name="distanceMeasure">internal</str>
     
      <float name="accuracy">0.5</float>
     
      <int name="maxEdits">2</int>
     
      <int name="minPrefix">1</int>
     
      <int name="maxInspections">5</int>
     
      <int name="minQueryLength">4</int>
     
      <float name="maxQueryFrequency">0.01</float>
     
    </lst>

  </searchComponent>

  <requestHandler name="/spell" class="solr.SearchHandler" startup="lazy">
    <lst name="defaults">
     
      <str name="spellcheck.dictionary">default</str>
      <str name="spellcheck">on</str>
      <str name="spellcheck.extendedResults">true</str>
      <str name="spellcheck.count">10</str>
      <str name="spellcheck.alternativeTermCount">5</str>
      <str name="spellcheck.maxResultsForSuggest">5</str>
      <str name="spellcheck.collate">true</str>
      <str name="spellcheck.collateExtendedResults">true</str>
      <str name="spellcheck.maxCollationTries">10</str>
      <str name="spellcheck.maxCollations">5</str>
    </lst>
    <arr name="last-components">
      <str>spellcheck</str>
    </arr>
  </requestHandler>

  <searchComponent name="tvComponent" class="solr.TermVectorComponent"/>

  <requestHandler name="/tvrh" class="solr.SearchHandler" startup="lazy">
    <lst name="defaults">
      <bool name="tv">true</bool>
    </lst>
    <arr name="last-components">
      <str>tvComponent</str>
    </arr>
  </requestHandler>

  <searchComponent name="terms" class="solr.TermsComponent"/>

  <requestHandler name="/terms" class="solr.SearchHandler" startup="lazy">
    <lst name="defaults">
      <bool name="terms">true</bool>
      <bool name="distrib">false</bool>
    </lst>
    <arr name="components">
      <str>terms</str>
    </arr>
  </requestHandler>

  <searchComponent name="elevator" class="solr.QueryElevationComponent" >
   
    <str name="queryFieldType">string</str>
  </searchComponent>

  <requestHandler name="/elevate" class="solr.SearchHandler" startup="lazy">
    <lst name="defaults">
      <str name="echoParams">explicit</str>
    </lst>
    <arr name="last-components">
      <str>elevator</str>
    </arr>
  </requestHandler>

 
  <searchComponent class="solr.HighlightComponent" name="highlight">
    <highlighting>

      <fragmenter name="gap"
                  default="true"
                  class="solr.highlight.GapFragmenter">
        <lst name="defaults">
          <int name="hl.fragsize">100</int>
        </lst>
      </fragmenter>

     
      <fragmenter name="regex"
                  class="solr.highlight.RegexFragmenter">
        <lst name="defaults">
         
          <int name="hl.fragsize">70</int>
         
          <float name="hl.regex.slop">0.5</float>
         
          <str name="hl.regex.pattern">[-\w ,/\n\"']{20,200}</str>
        </lst>
      </fragmenter>

     
      <formatter name="html"
                 default="true"
                 class="solr.highlight.HtmlFormatter">
        <lst name="defaults">
          <str name="hl.simple.pre"></str>
          <str name="hl.simple.post"></str>
        </lst>
      </formatter>

     
      <encoder name="html"
               class="solr.highlight.HtmlEncoder" />

     
      <fragListBuilder name="simple"
                       class="solr.highlight.SimpleFragListBuilder"/>

     
      <fragListBuilder name="single"
                       class="solr.highlight.SingleFragListBuilder"/>

     
      <fragListBuilder name="weighted"
                       default="true"
                       class="solr.highlight.WeightedFragListBuilder"/>

     
      <fragmentsBuilder name="default"
                        default="true"
                        class="solr.highlight.ScoreOrderFragmentsBuilder">
       
      </fragmentsBuilder>

     
      <fragmentsBuilder name="colored"
                        class="solr.highlight.ScoreOrderFragmentsBuilder">
        <lst name="defaults">
          <str name="hl.tag.pre"></str>
          <str name="hl.tag.post"></str>
        </lst>
      </fragmentsBuilder>

      <boundaryScanner name="default"
                       default="true"
                       class="solr.highlight.SimpleBoundaryScanner">
        <lst name="defaults">
          <str name="hl.bs.maxScan">10</str>
          <str name="hl.bs.chars">.,!? </str>
        </lst>
      </boundaryScanner>

      <boundaryScanner name="breakIterator"
                       class="solr.highlight.BreakIteratorBoundaryScanner">
        <lst name="defaults">
         
          <str name="hl.bs.type">WORD</str>
         
         
          <str name="hl.bs.language">en</str>
          <str name="hl.bs.country">US</str>
        </lst>
      </boundaryScanner>
    </highlighting>
  </searchComponent>

  <updateProcessor class="solr.UUIDUpdateProcessorFactory" name="uuid"/>
  <updateProcessor class="solr.RemoveBlankFieldUpdateProcessorFactory"
name="remove-blank"/>
  <updateProcessor class="solr.FieldNameMutatingUpdateProcessorFactory"
name="field-name-mutating">
    <str name="pattern">[^\w-\.]</str>
    <str name="replacement">_</str>
  </updateProcessor>
  <updateProcessor class="solr.ParseBooleanFieldUpdateProcessorFactory"
name="parse-boolean"/>
  <updateProcessor class="solr.ParseLongFieldUpdateProcessorFactory"
name="parse-long"/>
  <updateProcessor class="solr.ParseDoubleFieldUpdateProcessorFactory"
name="parse-double"/>
  <updateProcessor class="solr.ParseDateFieldUpdateProcessorFactory"
name="parse-date">
    <arr name="format">
      <str>yyyy-MM-dd'T'HH:mm:ss.SSSZ</str>
      <str>yyyy-MM-dd'T'HH:mm:ss,SSSZ</str>
      <str>yyyy-MM-dd'T'HH:mm:ss.SSS</str>
      <str>yyyy-MM-dd'T'HH:mm:ss,SSS</str>
      <str>yyyy-MM-dd'T'HH:mm:ssZ</str>
      <str>yyyy-MM-dd'T'HH:mm:ss</str>
      <str>yyyy-MM-dd'T'HH:mmZ</str>
      <str>yyyy-MM-dd'T'HH:mm</str>
      <str>yyyy-MM-dd HH:mm:ss.SSSZ</str>
      <str>yyyy-MM-dd HH:mm:ss,SSSZ</str>
      <str>yyyy-MM-dd HH:mm:ss.SSS</str>
      <str>yyyy-MM-dd HH:mm:ss,SSS</str>
      <str>yyyy-MM-dd HH:mm:ssZ</str>
      <str>yyyy-MM-dd HH:mm:ss</str>
      <str>yyyy-MM-dd HH:mmZ</str>
      <str>yyyy-MM-dd HH:mm</str>
      <str>yyyy-MM-dd</str>
    </arr>
  </updateProcessor>
  <updateProcessor class="solr.AddSchemaFieldsUpdateProcessorFactory"
name="add-schema-fields">
    <lst name="typeMapping">
      <str name="valueClass">java.lang.String</str>
      <str name="fieldType">text_general</str>
      <lst name="copyField">
        <str name="dest">*_str</str>
        <int name="maxChars">256</int>
      </lst>
     
      <bool name="default">true</bool>
    </lst>
    <lst name="typeMapping">
      <str name="valueClass">java.lang.Boolean</str>
      <str name="fieldType">booleans</str>
    </lst>
    <lst name="typeMapping">
      <str name="valueClass">java.util.Date</str>
      <str name="fieldType">pdates</str>
    </lst>
    <lst name="typeMapping">
      <str name="valueClass">java.lang.Long</str>
      <str name="valueClass">java.lang.Integer</str>
      <str name="fieldType">plongs</str>
    </lst>
    <lst name="typeMapping">
      <str name="valueClass">java.lang.Number</str>
      <str name="fieldType">pdoubles</str>
    </lst>
  </updateProcessor>

 
  <updateRequestProcessorChain name="add-unknown-fields-to-the-schema"
default="${update.autoCreateFields:true}"
         
processor="uuid,remove-blank,field-name-mutating,parse-boolean,parse-long,parse-double,parse-date,add-schema-fields">
    <processor class="solr.LogUpdateProcessorFactory"/>
    <processor class="solr.DistributedUpdateProcessorFactory"/>
    <processor class="solr.RunUpdateProcessorFactory"/>
  </updateRequestProcessorChain>

  <queryResponseWriter name="json" class="solr.JSONResponseWriter">
   
    <str name="content-type">text/plain; charset=UTF-8</str>
  </queryResponseWriter>

 
  <queryResponseWriter name="velocity" class="solr.VelocityResponseWriter"
startup="lazy">
    <str name="template.base.dir">${velocity.template.base.dir:}</str>
    <str
name="solr.resource.loader.enabled">${velocity.solr.resource.loader.enabled:true}</str>
    <str
name="params.resource.loader.enabled">${velocity.params.resource.loader.enabled:false}</str>
  </queryResponseWriter>

 
  <queryResponseWriter name="xslt" class="solr.XSLTResponseWriter">
    <int name="xsltCacheLifetimeSeconds">5</int>
  </queryResponseWriter>


 
    <schemaFactory class="ClassicIndexSchemaFactory"/>
</config>


The only difference between this one and the _default one is the
SchemaFactory class at the bottom.

When trying to create a collection via Web Request
http://localhost:8983/solr/admin/collections?action=CREATE&name=test&collection.configName=test&numShards=1&replicationFactor=1
I get the following error output:

{
  "responseHeader":{
    "status":0,
    "QTime":1863},
  "failure":{
   
"192.168.56.1:8983_solr":"org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:Error
from server at http://192.168.56.1:8983/solr: Expected mime type
application/octet-stream but got text/html. <html>\n<head>\n<meta
http-equiv=\"Content-Type\"
content=\"text/html;charset=utf-8\"/>\n<title>Error 500 Server
Error</title>\n</head>\n<body>
HTTP ERROR 500
\n<p>Problem accessing /solr/admin/cores. Reason:\n<pre>    Server
Error</pre></p>
Caused by:
<pre>java.lang.NoClassDefFoundError:
org/apache/lucene/analysis/util/TokenizerFactory\r\n\tat
java.lang.ClassLoader.defineClass1(Native Method)\r\n\tat
java.lang.ClassLoader.defineClass(ClassLoader.java:763)\r\n\tat
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)\r\n\tat
java.net.URLClassLoader.defineClass(URLClassLoader.java:468)\r\n\tat
java.net.URLClassLoader.access$100(URLClassLoader.java:74)\r\n\tat
java.net.URLClassLoader$1.run(URLClassLoader.java:369)\r\n\tat
java.net.URLClassLoader$1.run(URLClassLoader.java:363)\r\n\tat
java.security.AccessController.doPrivileged(Native Method)\r\n\tat
java.net.URLClassLoader.findClass(URLClassLoader.java:362)\r\n\tat
java.lang.ClassLoader.loadClass(ClassLoader.java:424)\r\n\tat
java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n\tat
org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:556)\r\n\tat
java.lang.ClassLoader.loadClass(ClassLoader.java:411)\r\n\tat
java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:817)\r\n\tat
java.lang.ClassLoader.loadClass(ClassLoader.java:411)\r\n\tat
java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:817)\r\n\tat
java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n\tat
java.lang.Class.forName0(Native Method)\r\n\tat
java.lang.Class.forName(Class.java:348)\r\n\tat
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:541)\r\n\tat
org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:626)\r\n\tat
org.apache.solr.schema.FieldTypePluginLoader$2.create(FieldTypePluginLoader.java:356)\r\n\tat
org.apache.solr.schema.FieldTypePluginLoader$2.create(FieldTypePluginLoader.java:349)\r\n\tat
org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:152)\r\n\tat
org.apache.solr.schema.FieldTypePluginLoader.readAnalyzer(FieldTypePluginLoader.java:376)\r\n\tat
org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:95)\r\n\tat
org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:53)\r\n\tat
org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:152)\r\n\tat
org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:481)\r\n\tat
org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:180)\r\n\tat
org.apache.solr.schema.IndexSchemaFactory.create(IndexSchemaFactory.java:56)\r\n\tat
org.apache.solr.schema.IndexSchemaFactory.buildIndexSchema(IndexSchemaFactory.java:75)\r\n\tat
org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:119)\r\n\tat
org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:92)\r\n\tat
org.apache.solr.core.CoreContainer.getConfigSet(CoreContainer.java:1227)\r\n\tat
org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1174)\r\n\tat
org.apache.solr.core.CoreContainer.create(CoreContainer.java:1088)\r\n\tat
org.apache.solr.handler.admin.CoreAdminOperation.lambda$static$0(CoreAdminOperation.java:92)\r\n\tat
org.apache.solr.handler.admin.CoreAdminOperation.execute(CoreAdminOperation.java:360)\r\n\tat
org.apache.solr.handler.admin.CoreAdminHandler$CallInfo.call(CoreAdminHandler.java:395)\r\n\tat
org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:180)\r\n\tat
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199)\r\n\tat
org.apache.solr.servlet.HttpSolrCall.handleAdmin(HttpSolrCall.java:735)\r\n\tat
org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:716)\r\n\tat
org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:496)\r\n\tat
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:395)\r\n\tat
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:341)\r\n\tat
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1602)\r\n\tat
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)\r\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)\r\n\tat
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)\r\n\tat
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\r\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)\r\n\tat
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1588)\r\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)\r\n\tat
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)\r\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)\r\n\tat
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)\r\n\tat
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1557)\r\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)\r\n\tat
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)\r\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)\r\n\tat
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220)\r\n\tat
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)\r\n\tat
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\r\n\tat
org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335)\r\n\tat
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\r\n\tat
org.eclipse.jetty.server.Server.handle(Server.java:502)\r\n\tat
org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364)\r\n\tat
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)\r\n\tat
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)\r\n\tat
org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)\r\n\tat
org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)\r\n\tat
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)\r\n\tat
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)\r\n\tat
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)\r\n\tat
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)\r\n\tat
org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)\r\n\tat
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)\r\n\tat
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)\r\n\tat
java.lang.Thread.run(Thread.java:748)\r\nCaused by:
java.lang.ClassNotFoundException:
org.apache.lucene.analysis.util.TokenizerFactory\r\n\tat
java.net.URLClassLoader.findClass(URLClassLoader.java:382)\r\n\tat
java.lang.ClassLoader.loadClass(ClassLoader.java:424)\r\n\tat
java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n\t... 81
more\r\n</pre>\n
Caused by:
<pre>java.lang.ClassNotFoundException:
org.apache.lucene.analysis.util.TokenizerFactory\r\n\tat
java.net.URLClassLoader.findClass(URLClassLoader.java:382)\r\n\tat
java.lang.ClassLoader.loadClass(ClassLoader.java:424)\r\n\tat
java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n\tat
java.lang.ClassLoader.defineClass1(Native Method)\r\n\tat
java.lang.ClassLoader.defineClass(ClassLoader.java:763)\r\n\tat
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)\r\n\tat
java.net.URLClassLoader.defineClass(URLClassLoader.java:468)\r\n\tat
java.net.URLClassLoader.access$100(URLClassLoader.java:74)\r\n\tat
java.net.URLClassLoader$1.run(URLClassLoader.java:369)\r\n\tat
java.net.URLClassLoader$1.run(URLClassLoader.java:363)\r\n\tat
java.security.AccessController.doPrivileged(Native Method)\r\n\tat
java.net.URLClassLoader.findClass(URLClassLoader.java:362)\r\n\tat
java.lang.ClassLoader.loadClass(ClassLoader.java:424)\r\n\tat
java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n\tat
org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:556)\r\n\tat
java.lang.ClassLoader.loadClass(ClassLoader.java:411)\r\n\tat
java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:817)\r\n\tat
java.lang.ClassLoader.loadClass(ClassLoader.java:411)\r\n\tat
java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:817)\r\n\tat
java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n\tat
java.lang.Class.forName0(Native Method)\r\n\tat
java.lang.Class.forName(Class.java:348)\r\n\tat
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:541)\r\n\tat
org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:626)\r\n\tat
org.apache.solr.schema.FieldTypePluginLoader$2.create(FieldTypePluginLoader.java:356)\r\n\tat
org.apache.solr.schema.FieldTypePluginLoader$2.create(FieldTypePluginLoader.java:349)\r\n\tat
org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:152)\r\n\tat
org.apache.solr.schema.FieldTypePluginLoader.readAnalyzer(FieldTypePluginLoader.java:376)\r\n\tat
org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:95)\r\n\tat
org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:53)\r\n\tat
org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:152)\r\n\tat
org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:481)\r\n\tat
org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:180)\r\n\tat
org.apache.solr.schema.IndexSchemaFactory.create(IndexSchemaFactory.java:56)\r\n\tat
org.apache.solr.schema.IndexSchemaFactory.buildIndexSchema(IndexSchemaFactory.java:75)\r\n\tat
org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:119)\r\n\tat
org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:92)\r\n\tat
org.apache.solr.core.CoreContainer.getConfigSet(CoreContainer.java:1227)\r\n\tat
org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1174)\r\n\tat
org.apache.solr.core.CoreContainer.create(CoreContainer.java:1088)\r\n\tat
org.apache.solr.handler.admin.CoreAdminOperation.lambda$static$0(CoreAdminOperation.java:92)\r\n\tat
org.apache.solr.handler.admin.CoreAdminOperation.execute(CoreAdminOperation.java:360)\r\n\tat
org.apache.solr.handler.admin.CoreAdminHandler$CallInfo.call(CoreAdminHandler.java:395)\r\n\tat
org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:180)\r\n\tat
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199)\r\n\tat
org.apache.solr.servlet.HttpSolrCall.handleAdmin(HttpSolrCall.java:735)\r\n\tat
org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:716)\r\n\tat
org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:496)\r\n\tat
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:395)\r\n\tat
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:341)\r\n\tat
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1602)\r\n\tat
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)\r\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)\r\n\tat
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)\r\n\tat
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\r\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)\r\n\tat
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1588)\r\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)\r\n\tat
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)\r\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)\r\n\tat
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)\r\n\tat
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1557)\r\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)\r\n\tat
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)\r\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)\r\n\tat
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220)\r\n\tat
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)\r\n\tat
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\r\n\tat
org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335)\r\n\tat
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\r\n\tat
org.eclipse.jetty.server.Server.handle(Server.java:502)\r\n\tat
org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364)\r\n\tat
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)\r\n\tat
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)\r\n\tat
org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)\r\n\tat
org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)\r\n\tat
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)\r\n\tat
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)\r\n\tat
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)\r\n\tat
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)\r\n\tat
org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)\r\n\tat
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)\r\n\tat
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)\r\n\tat
java.lang.Thread.run(Thread.java:748)\r\n</pre>\n\n</body>\n</html>\n"}}


Is there a configuration option I am missing?



--
Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html
Reply | Threaded
Open this post in threaded view
|

Re: Unable to Create Collection on Solr Cloud 7.7.1

Shawn Heisey-2
On 9/17/2019 6:16 AM, iporritt wrote:
> I am trying to create a collection on Solr Cloud. I have firstly uploaded
> SolrConfig.xml and Schema.xml to Zookeeper.

<snip>

> HTTP ERROR 500
> \n<p>Problem accessing /solr/admin/cores. Reason:\n<pre>    Server
> Error</pre></p>
> Caused by:
> <pre>java.lang.NoClassDefFoundError:
> org/apache/lucene/analysis/util/TokenizerFactory\r\n\tat

Java could not find a Lucene class.

Something is wrong on your classpath.  Either the Solr install was
modified in some way, possible by deleting one or more Lucene jars, or
you have installed an additional copy of one or more Lucene jars
somewhere else where Solr is loading them.  It could even be exactly the
same 7.7.1 version as you are running, and could still cause this
problem.  Jars like this that are already included in Solr should never
be added to the classpath.

Thanks,
Shawn