2018-03-30 11:13:11:019 ERROR [qtp1049817027-660 - /solr/admin/collections?action=CREATE&name=vas_task_order] org.apache.solr.core.SolrCore | org.apache.solr.common.SolrException: java.io.InvalidClassException: org.apache.solr.common.SolrException; local class incompatible: stream classdesc serialVersionUID = 326323934930661559, local class serialVersionUID = 7913465811541804741
at org.apache.solr.client.solrj.SolrResponse.deserialize(SolrResponse.java:62)
at org.apache.solr.handler.admin.CollectionsHandler.handleResponse(CollectionsHandler.java:731)
at org.apache.solr.handler.admin.CollectionsHandler.handleResponse(CollectionsHandler.java:692)
at org.apache.solr.handler.admin.CollectionsHandler.handleCreateAction(CollectionsHandler.java:867)
at org.apache.solr.handler.admin.CollectionsHandler.handleRequestBody(CollectionsHandler.java:187)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)
at org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDispatchFilter.java:783)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:282)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:220)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:364)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.InvalidClassException: org.apache.solr.common.SolrException; local class incompatible: stream classdesc serialVersionUID = 326323934930661559, local class serialVersionUID = 7913465811541804741
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:616)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1843)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1713)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2000)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1535)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:422)
at java.util.ArrayList.readObject(ArrayList.java:791)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1058)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2136)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2027)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1535)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2245)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2169)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2027)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1535)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2245)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2169)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2027)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1535)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:422)
at org.apache.solr.client.solrj.SolrResponse.deserialize(SolrResponse.java:60)
... 33 more
2018-03-30 11:13:11:021 ERROR [qtp1049817027-660 - /solr/admin/collections?action=CREATE&name=vas_task_order] org.apache.solr.servlet.SolrDispatchFilter | null:org.apache.solr.common.SolrException: java.io.InvalidClassException: org.apache.solr.common.SolrException; local class incompatible: stream classdesc serialVersionUID = 326323934930661559, local class serialVersionUID = 7913465811541804741
at org.apache.solr.client.solrj.SolrResponse.deserialize(SolrResponse.java:62)
at org.apache.solr.handler.admin.CollectionsHandler.handleResponse(CollectionsHandler.java:731)
at org.apache.solr.handler.admin.CollectionsHandler.handleResponse(CollectionsHandler.java:692)
at org.apache.solr.handler.admin.CollectionsHandler.handleCreateAction(CollectionsHandler.java:867)
at org.apache.solr.handler.admin.CollectionsHandler.handleRequestBody(CollectionsHandler.java:187)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)
at org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDispatchFilter.java:783)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:282)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:220)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:364)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.InvalidClassException: org.apache.solr.common.SolrException; local class incompatible: stream classdesc serialVersionUID = 326323934930661559, local class serialVersionUID = 7913465811541804741
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:616)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1843)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1713)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2000)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1535)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:422)
at java.util.ArrayList.readObject(ArrayList.java:791)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1058)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2136)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2027)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1535)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2245)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2169)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2027)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1535)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2245)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2169)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2027)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1535)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:422)
at org.apache.solr.client.solrj.SolrResponse.deserialize(SolrResponse.java:60)
... 33 more
相关推荐
- 使用命令`solrctl --zk zkip01,zkip02,zkip03:2181/solr instancedir --create hcc_score $HOME/hbase-indexer/hcc_score`创建collection实例并将配置文件上传至Zookeeper。 - 如果需要数据分散存储和检索,可...
在使用Solr(Cloudera)时,创建Collection是基本的操作之一。Collection是Solr中的数据存储单元,相当于关系数据库中的表。 ##### 创建路径与实例 1. **创建路径**:在根目录下创建一个用于存放Solr实例的目录,...
使用`add-collection`或`create-collection`命令可以创建新的SolrCore(在SolrCloud中称为集合),并指定副本数和分片策略。 5. **权限控制** 对SolrCore的添加和修改操作应受到权限控制,以防止未经授权的访问和...
- 初始化每个Solr节点的`server/solr`目录,使用`bin/solr create -c collection_name -d /path/to/configset`命令创建集合,指向共享的配置集。 - 修改`server/solr/solr.xml`,配置Zookeeper连接信息。 ### 集群...
将 JAR 包添加到 Solr 集合的运行时库中,以便在运行时访问这些库中的类。 综上所述,Solr 的学习不仅涉及到其基本的启动和使用,还需要掌握集群管理、配置更新以及数据导入等高级操作。通过对上述命令的学习和...
创建新的Solr Core可以通过Web管理控制台或者命令行完成,例如`solr.cmd create -c name -d confdir -p port`。Core的卸载和删除则可以在Web控制台上操作,也可以通过命令行执行`bin/solr delete [options]`。为了...
这样,当我们在Hive中对数据进行增删改查操作时,这些操作会同步反映到Solr的索引中。例如,我们可以使用以下HQL(Hive Query Language)命令创建一个与Solr同步的外部表: ```sql CREATE EXTERNAL TABLE solr_...
- 用户可以通过运行`bin/solr start`命令启动Solr服务器,使用`bin/solr create -c collection_name`创建一个新的索引集合,`bin/post -c collection_name path/to/files`可以上传文件进行索引。 6. **索引与查询*...
在解压后的目录中,有一个名为`server`的子目录,其中包含Solr的运行时环境。你需要编辑`server/solr-webapp/webapp/WEB-INF/web.xml`文件,配置Solr的默认核心(collection)和端口。 然后,启动Solr服务。在...
- 使用`./solr create -c mycore -d /opt/solr/example/solr/collection1/conf`命令创建一个名为`mycore`的核心集合。 - 配置Zookeeper连接信息:编辑`solr.xml`文件,添加Zookeeper的信息。 3. **启动Solr节点**...
- 在出现问题的Node上执行相应命令以修复配置问题,然后再尝试重新创建Collection。 #### 四、总结 通过本文所述,我们了解到SolrCloud的基本概念、架构以及部署流程。SolrCloud通过引入诸如Shard、Collection等...
这将会启动一个内置的Jetty web服务器,并提供一个默认的Solr集合(collection)。 **5. 访问Solr管理界面** 打开浏览器,输入`http://localhost:8983/solr/`,你应该能看到Solr管理界面,也就是所谓的“Admin UI”...
'path' => '/solr/collection1', // 根据你的Solr实例调整 ), ), ); $client = new Client($config); ``` 一旦连接配置完成,我们就可以执行各种操作了。例如,添加文档到索引: ```php $document = $client->...
bin/solr create -c my_collection -n my_configset -shards 2 -replicationFactor 2 ``` 这将创建一个包含2个分片(shards)的集合,每个分片有2个副本(replicas)。 七、负载均衡与客户端配置 1. 可以通过...
4. **设置 Solr Home**:在 `webapps\solr` 目录下创建 `solr_home` 文件夹,并将 `solr-4.4.0\example\solr` 下的内容复制到 `solr_home` 下。为了简化管理,可以将 `webapps\solr\solr_home\collection1\conf` ...
- 配置文件位于`solr-5.0.x/solr/example/solr/collection1/conf`目录下,我们需要复制这些配置文件到新建的核心目录`solr-5.0.x/server/solr/shop_goods/conf`。 - 修改`schema.xml`文件,定义字段类型和字段。...
如`solrctl --zk $ZK:2181/solr instance-dir --generate tmp/${COLLECTION}_configs`用于生成集合配置模板,`solrctl --zk $ZK:2181/solr collection --create $COLLECTION -s1 -r1`用于创建集合。 最后,为了测试...
./solr create_collection -c gemini -d ../example/example-DIH/solr/solr/conf/ -shards 3 -replicationFactor 2 ``` 配置分词器对于Solr的搜索性能至关重要。在本例中,我们使用IK分词器。首先,将IK Analyzer的...
6. **创建Collection**:通过Zookeeper客户端命令创建一个Solr Collection。 - 示例命令: ``` java -classpath .:/home/myuser/solr-war/lib/* org.apache.solr.cloud.ZkCLI \ -cmd create -name ...
bin / solr create_core -c git -d〜/ Projects / git-to-solr / solr / collection1 / 要构建jar,您需要使用并运行mvn clean compile assembly:single在目录顶部(其中pom.xml在此处) 查询示例: (已解码) ...