solr—将数据从配置单元群集导入solr6.2群集时出现一个错误

hivapdat  于 2021-06-24  发布在  Hive
关注(0)|答案(0)|浏览(257)

Hive和solr有两个集群。我想将数据从配置单元集群中的配置单元表导入到solr集群。当托管模式文件中配置的字段数约为34时,导入成功,一旦该字段数大于34(该字段数为44),我将遇到连接重置异常。异常信息如下:

{"id":{"name":"id","value":"176036","boost":1.0},
"_id":{"name":"_id","value":"176036","boost":1.0}
... 44fields in json format ...
org.apache.solr.client.solrj.impl.CloudSolrClient$RouteException: IOException occured when talking to server at https://ip:port/solr/gp19edamp_qxb_administrative_punishment_all_cs1_shard2_replica1
Caused by: java.net.SocketException: Connection reset
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:115)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:155)
    at sun.security.ssl.OutputRecord.writeBuffer(OutputRecord.java:431)
    at sun.security.ssl.OutputRecord.write(OutputRecord.java:417)
    at sun.security.ssl.SSLSocketImpl.writeRecordInternal(SSLSocketImpl.java:886)
    at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:857)
    at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)
    at org.apache.http.impl.io.AbstractSessionOutputBuffer.write(AbstractSessionOutputBuffer.java:181)
    at org.apache.http.impl.io.ContentLengthOutputStream.write(ContentLengthOutputStream.java:115)
    at org.apache.http.impl.io.ContentLengthOutputStream.write(ContentLengthOutputStream.java:122)
    at org.apache.http.entity.BufferedHttpEntity.writeTo(BufferedHttpEntity.java:115)
    at org.apache.http.entity.HttpEntityWrapper.writeTo(HttpEntityWrapper.java:96)
    at org.apache.http.impl.client.EntityEnclosingRequestWrapper$EntityWrapper.writeTo(EntityEnclosingRequestWrapper.java:112)
    at org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:117)
    at org.apache.http.impl.AbstractHttpClientConnection.sendRequestEntity(AbstractHttpClientConnection.java:265)
    at org.apache.http.impl.conn.ManagedClientConnectionImpl.sendRequestEntity(ManagedClientConnectionImpl.java:216)
    at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:237)
    at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:122)
    at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:686)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:488)
    at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:884)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
    at com.huawei.solr.client.solrj.impl.InsecureHttpClient.execute(InsecureHttpClient.java:143)
    at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:644)
    ... 10 more

你知道没有内在的限制。限制将由您的硬件资源决定。希望你的回答~

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题