Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-4113

Fullpath for db-config file causes error on SolrCloud

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 6.0
    • None
    • None

    Description

      When I put a full path for a db config file to my solrconfig.xml, dataimport attempt shows an error message like this:

      SEVERE: null:java.io.IOException: Error opening /configs/mycore//Users/deniz/SolrCloudTesting/solr/mycore/conf/db-config.xml
      at org.apache.solr.cloud.ZkSolrResourceLoader.openResource(ZkSolrResourceLoader.java:82)
      at org.apache.solr.handler.dataimport.DataImportHandler.handleRequestBody(DataImportHandler.java:132)
      at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:144)
      at org.apache.solr.core.SolrCore.execute(SolrCore.java:1830)
      at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:455)
      at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:276)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337)
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:484)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233)
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065)
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413)
      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
      at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
      at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
      at org.eclipse.jetty.server.Server.handle(Server.java:351)
      at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454)
      at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:47)
      at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:890)
      at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:944)
      at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:634)
      at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
      at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:66)
      at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:254)
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599)
      at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534)
      at java.lang.Thread.run(Thread.java:680)
      Caused by: java.lang.IllegalArgumentException: Invalid path string "/configs/mycore//Users/deniz/SolrCloudTesting/solr/mycore/conf/db-config.xml" caused by empty node name specified @19
      at org.apache.zookeeper.common.PathUtils.validatePath(PathUtils.java:99)
      at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:794)
      at org.apache.solr.common.cloud.SolrZkClient$4.execute(SolrZkClient.java:193)
      at org.apache.solr.common.cloud.SolrZkClient$4.execute(SolrZkClient.java:190)
      at org.apache.solr.common.cloud.ZkCmdExecutor.retryOperation(ZkCmdExecutor.java:63)
      at org.apache.solr.common.cloud.SolrZkClient.exists(SolrZkClient.java:190)
      at org.apache.solr.cloud.ZkController.pathExists(ZkController.java:519)
      at org.apache.solr.cloud.ZkSolrResourceLoader.openResource(ZkSolrResourceLoader.java:77)
      ... 30 more

      and here is the part that i set my db-configs location in solrconfig.xml:

      <requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler">
      <lst name="defaults">
      <str name="config">/Users/deniz/SolrCloudTesting/solr/mycore/conf/db-config.xml</str>

      Attachments

        Activity

          People

            Unassigned Unassigned
            deniz Deniz Durmus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: