Solr 不备份核心
Solr not backing up core
我正在尝试备份 Solr 核心(独立模式下的 Solr 8.1.1)。我根据 https://solr.apache.org/guide/8_1/index-replication.html#configuring-the-replicationhandler
添加了复制 requestHandler
当我运行 /solr/core/replication?command=backup it returns:
{
"responseHeader":{
"status":0,
"QTime":1},
"status":"OK"}
但是当 运行ning /solr/core/replication?command=details it returns:
...
"backup":[
"exception","/opt/solr-8.1.1/server/solr/core/data/restore.20200414231901420/_22sklw_Lucene50_0.tim"]}}
当我指定备份名称和位置(例如 /solr-backups/,归 solr 用户所有)时,它从不创建任何文件。
我在这里做错了什么?如何让 solr 创建备份?
编辑:
这显示在日志文件中:
2021-04-23 01:21:18.056 ERROR (Thread-136) [ ] o.a.s.h.SnapShooter Exception while creating snapshot
java.nio.file.NoSuchFileException: /opt/solr-8.1.1/server/solr/core/data/restore.20200414231901420/_22ufue_1mh0.liv
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) ~[?:1.8.0_282]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:1.8.0_282]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:1.8.0_282]
at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177) ~[?:1.8.0_282]
at java.nio.channels.FileChannel.open(FileChannel.java:287) ~[?:1.8.0_282]
at java.nio.channels.FileChannel.open(FileChannel.java:335) ~[?:1.8.0_282]
at org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:238) ~[lucene-core-8.1.1.jar:8.1.1 fcbe46c28cef11bc058779afba09521de1b19bef - ab - 2019-05-22 15:15:24]
at org.apache.lucene.store.NRTCachingDirectory.openInput(NRTCachingDirectory.java:181) ~[lucene-core-8.1.1.jar:8.1.1 fcbe46c28cef11bc058779afba09521de1b19bef - ab - 2019-05-22 15:15:24]
at org.apache.lucene.store.Directory.copyFrom(Directory.java:181) ~[lucene-core-8.1.1.jar:8.1.1 fcbe46c28cef11bc058779afba09521de1b19bef - ab - 2019-05-22 15:15:24]
at org.apache.solr.core.backup.repository.LocalFileSystemRepository.copyFileFrom(LocalFileSystemRepository.java:145) ~[solr-core-8.1.1.jar:8.1.1 fcbe46c28cef11bc058779afba09521de1b19bef - ab - 2019-05-22 15:20:01]
at org.apache.solr.handler.SnapShooter.createSnapshot(SnapShooter.java:238) ~[solr-core-8.1.1.jar:8.1.1 fcbe46c28cef11bc058779afba09521de1b19bef - ab - 2019-05-22 15:20:01]
at org.apache.solr.handler.SnapShooter.lambda$createSnapAsync(SnapShooter.java:205) ~[solr-core-8.1.1.jar:8.1.1 fcbe46c28cef11bc058779afba09521de1b19bef - ab - 2019-05-22 15:20:01]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]
看起来这是对 8.0.0 中重新引入的早期 Solr 错误的回归。它显然已在 8.4.0 中修复
我正在尝试备份 Solr 核心(独立模式下的 Solr 8.1.1)。我根据 https://solr.apache.org/guide/8_1/index-replication.html#configuring-the-replicationhandler
添加了复制 requestHandler当我运行 /solr/core/replication?command=backup it returns:
{
"responseHeader":{
"status":0,
"QTime":1},
"status":"OK"}
但是当 运行ning /solr/core/replication?command=details it returns:
...
"backup":[
"exception","/opt/solr-8.1.1/server/solr/core/data/restore.20200414231901420/_22sklw_Lucene50_0.tim"]}}
当我指定备份名称和位置(例如 /solr-backups/,归 solr 用户所有)时,它从不创建任何文件。
我在这里做错了什么?如何让 solr 创建备份?
编辑: 这显示在日志文件中:
2021-04-23 01:21:18.056 ERROR (Thread-136) [ ] o.a.s.h.SnapShooter Exception while creating snapshot
java.nio.file.NoSuchFileException: /opt/solr-8.1.1/server/solr/core/data/restore.20200414231901420/_22ufue_1mh0.liv
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) ~[?:1.8.0_282]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:1.8.0_282]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:1.8.0_282]
at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177) ~[?:1.8.0_282]
at java.nio.channels.FileChannel.open(FileChannel.java:287) ~[?:1.8.0_282]
at java.nio.channels.FileChannel.open(FileChannel.java:335) ~[?:1.8.0_282]
at org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:238) ~[lucene-core-8.1.1.jar:8.1.1 fcbe46c28cef11bc058779afba09521de1b19bef - ab - 2019-05-22 15:15:24]
at org.apache.lucene.store.NRTCachingDirectory.openInput(NRTCachingDirectory.java:181) ~[lucene-core-8.1.1.jar:8.1.1 fcbe46c28cef11bc058779afba09521de1b19bef - ab - 2019-05-22 15:15:24]
at org.apache.lucene.store.Directory.copyFrom(Directory.java:181) ~[lucene-core-8.1.1.jar:8.1.1 fcbe46c28cef11bc058779afba09521de1b19bef - ab - 2019-05-22 15:15:24]
at org.apache.solr.core.backup.repository.LocalFileSystemRepository.copyFileFrom(LocalFileSystemRepository.java:145) ~[solr-core-8.1.1.jar:8.1.1 fcbe46c28cef11bc058779afba09521de1b19bef - ab - 2019-05-22 15:20:01]
at org.apache.solr.handler.SnapShooter.createSnapshot(SnapShooter.java:238) ~[solr-core-8.1.1.jar:8.1.1 fcbe46c28cef11bc058779afba09521de1b19bef - ab - 2019-05-22 15:20:01]
at org.apache.solr.handler.SnapShooter.lambda$createSnapAsync(SnapShooter.java:205) ~[solr-core-8.1.1.jar:8.1.1 fcbe46c28cef11bc058779afba09521de1b19bef - ab - 2019-05-22 15:20:01]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]
看起来这是对 8.0.0 中重新引入的早期 Solr 错误的回归。它显然已在 8.4.0 中修复