lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: SimplePostTool: FATAL: IOException while posting data: too many bytes written
Date Tue, 28 Jun 2016 05:30:47 GMT
You're most likely not getting _near_ 4.2G written to Solr, the
transport protocol is probably cutting that off as indicated by
the "early EOF" exception.

It's really hard to justify trying to index 4.2G as a _single_ file.
First of all you won't even be able to receive it in Solr after
you've given it only 1G of memory even if you get the
transport stuff worked out. Second, searching it is totally
useless in most cases as it will probably match _everything_.
Thirdly, even if it does match something, how are you going
to return it to a user?

If it's multiple documents in a huge uber-doc you can
break it up at ingestion and only send docs to Solr rather
than the whole thing.

IOW, I think this is a waste of your time. I understand that
you're trying to see the limits, but this limit is not a reasonable
one to hope to cross.


On Mon, Jun 27, 2016 at 6:24 AM, Rajendran, Prabaharan
<> wrote:
> Hi,
> I am trying to index a text file about 4.2 GB in size. This kind of POC to understand
Solr capacity on indexing & searching.
> Here is my Solr configuration
> -Xms1024m        -Xmx1024m        -Xss256k
> java -Dtype=text/csv -Dparams="separator=%09" -Durl=http://localhost:8983/solr/mycollection/update
-jar ..\example\exampledocs\post.jar ..\example\exampledocs\largefile.txt
> While doing index got error like below,
> SimplePostTool: FATAL: IOException while posting data: too many
bytes written
> Kindly let me know, if I need to change (increase memory) any solr configuration to handle
> Here is my log file entry,
> ERROR (qtp297811323-14) [   x:collection2] o.a.s.c.SolrCore org.apache.solr.common.SolrException:
CSVLoader: input=null, line=2815040,can't read line: 2815040
>                 values={NO LINES AVAILABLE}
>                 at org.apache.solr.handler.loader.CSVLoaderBase.input_err(
>                 at org.apache.solr.handler.loader.CSVLoaderBase.load(
>                 at org.apache.solr.handler.loader.CSVLoader.load(
>                 at org.apache.solr.handler.UpdateRequestHandler$1.load(
>                 at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(
>                 at org.apache.solr.handler.RequestHandlerBase.handleRequest(
>                 at org.apache.solr.core.SolrCore.execute(
>                 at org.apache.solr.servlet.HttpSolrCall.execute(
>                 at
>                 at org.apache.solr.servlet.SolrDispatchFilter.doFilter(
>                 at org.apache.solr.servlet.SolrDispatchFilter.doFilter(
>                 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(
>                 at org.eclipse.jetty.servlet.ServletHandler.doHandle(
>                 at org.eclipse.jetty.server.handler.ScopedHandler.handle(
>                 at
>                 at org.eclipse.jetty.server.session.SessionHandler.doHandle(
>                 at org.eclipse.jetty.server.handler.ContextHandler.doHandle(
>                 at org.eclipse.jetty.servlet.ServletHandler.doScope(
>                 at org.eclipse.jetty.server.session.SessionHandler.doScope(
>                 at org.eclipse.jetty.server.handler.ContextHandler.doScope(
>                 at org.eclipse.jetty.server.handler.ScopedHandler.handle(
>                 at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(
>                 at org.eclipse.jetty.server.handler.HandlerCollection.handle(
>                 at org.eclipse.jetty.server.handler.HandlerWrapper.handle(
>                 at org.eclipse.jetty.server.Server.handle(
>                 at org.eclipse.jetty.server.HttpChannel.handle(
>                 at org.eclipse.jetty.server.HttpConnection.onFillable(
>                 at$
>                 at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(
>                 at org.eclipse.jetty.util.thread.QueuedThreadPool$
>                 at
> Caused by: Early EOF
>                 at org.eclipse.jetty.server.HttpInput$3.noContent(
>                 at
>                 at sun.nio.cs.StreamDecoder.readBytes(
>                 at sun.nio.cs.StreamDecoder.implRead(
>                 at
>                 at
>                 at
>                 at
>                 at
>                 at org.apache.solr.internal.csv.CSVParser.simpleTokenLexer(
>                 at org.apache.solr.internal.csv.CSVParser.nextToken(
>                 at org.apache.solr.internal.csv.CSVParser.getLine(
>                 at org.apache.solr.handler.loader.CSVLoaderBase.load(
>                 ... 29 more
> Thanks,
> Prabaharan

View raw message