Hi Helix
Thanks for the feedback and suggestions.
The problem I have is that I'm trying to get statistics from DSpace 1.6
working in DSpace 5 but the update_solr_indexes is throwing a too old
exception so I'm guessing DSpace 1.6's solr statistics is just too old for
the Lucene lib to successfully update the Solr statistics so that it is
usable in newer versions of DSpace. The full stack trace being:
Exception in thread "main" java.io.IOException: Could not read Lucene
segments files in /opt/dspace/solr/statistics/data/index
at
org.dspace.app.util.IndexVersion.getIndexVersion(IndexVersion.java:141)
at org.dspace.app.util.IndexVersion.main(IndexVersion.java:59)
Caused by: org.apache.lucene.index.IndexFormatTooOldException: Format
version is not supported (resource:
BufferedChecksumIndexInput(MMapIndexInput(path="/opt/dspace/solr/statistics/data/index/segments_3zxwg"))):
-7 (needs to be between -9 and -11). This version of Lucene only supports
indexes created with release 3.0 and later.
at
org.apache.lucene.codecs.lucene3x.Lucene3xSegmentInfoReader.readLegacySegmentInfo(Lucene3xSegmentInfoReader.java:131)
at
org.apache.lucene.codecs.lucene3x.Lucene3xSegmentInfoReader.readLegacyInfos(Lucene3xSegmentInfoReader.java:57)
at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:414)
at org.apache.lucene.index.SegmentInfos$1.doBody(SegmentInfos.java:454)
at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:906)
at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:752)
at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:450)
at
org.dspace.app.util.IndexVersion.getIndexVersion(IndexVersion.java:136)
... 1 more
Therefore, what would be my migration path to get DSpace 5 to update DSpace
1.6 statistics successfully?
Thanks
Hayden
On Thursday, February 18, 2016 at 7:03:03 PM UTC+8, helix84 wrote:
>
> Hi Hayden,
>
> you should keep backups of your statistics core and authority core (if
> you use them), because unlike search and oai core, those are not just
> caches you can rebuild. Admitedly, we haven't had tools to
> export/import data from Solr to CSV until Dpace 5.3 or so.
>
> Importing events from dspace.log to Solr is possible, but won't
> capture neither all types of evens, neither as much event properties
> (e.g. geolocation) as Solr does. It's a two-step process:
> stats-log-converter, stats-log-importer
>
>
> https://wiki.duraspace.org/display/DSDOC5x/Command+Line+Operations#CommandLineOperations-SOLRStatistics
>
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
You received this message because you are subscribed to the Google Groups
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.