Re: Both main and replica are trying to access solr_gc.log.0.current file
It might depend some on how you are starting Solr (I am less familiar with Windows) but you will need to give each instead a separate log4j.properties file and configure the log location in there. Also check out the Solr Ref Guide section on Configuring Logging, subsection Permanent Logging Settings. https://cwiki.apache.org/confluence/display/solr/Configuring+Logging Mike On Sat, Apr 29, 2017, 12:24 PM Zheng Lin Edwin Yeowrote: > Yes, both Solr instances are running in the same hardware. > > I believe they are pointing to the same log directories/config too. > > How do we point them to different log directories/config? > > Regards, > Edwin > > > On 30 April 2017 at 00:36, Mike Drob wrote: > > > Are you running both Solr instances in the same hardware and pointing > them > > at the same log directories/config? > > > > On Sat, Apr 29, 2017, 2:56 AM Zheng Lin Edwin Yeo > > wrote: > > > > > Hi, > > > > > > I'm using Solr 6.4.2 on SolrCloud, and I'm running 2 replica of Solr. > > > > > > When I start the replica, I will encounter this error message. It is > > > probably due to the Solr log, as both the main and the replica are > trying > > > to access the same solr_gc.log.0.current file. > > > > > > Is there anyway to prevent this? > > > > > > Besides this error message, the rest of the Solr for both main and > > replica > > > are running normally. > > > > > > Exception in thread "main" java.nio.file.FileSystemException: > > > C:\edwin\solr\server\logs\solr_gc.log.0.current -> > > > C:\edwin\solr\server\logs\archived\solr_gc.log.0.current: The process > > > cannot access the file because it is being used by another process. > > > > > > at > > > sun.nio.fs.WindowsException.translateToIOException(WindowsException.j > > > ava:86) > > > at > > > sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.jav > > > a:97) > > > at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:387) > > > at > > > sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.j > > > ava:287) > > > at java.nio.file.Files.move(Files.java:1395) > > > at > > > org.apache.solr.util.SolrCLI$UtilsTool.archiveGcLogs(SolrCLI.java:357 > > > 9) > > > at > > > org.apache.solr.util.SolrCLI$UtilsTool.runTool(SolrCLI.java:3548) > > > at org.apache.solr.util.SolrCLI.main(SolrCLI.java:250) > > > "Failed archiving old GC logs" > > > Exception in thread "main" java.nio.file.FileSystemException: > > > C:\edwin\solr\server\logs\solr-8983-console.log -> > > > C:\edwin\solr\server\logs\archived\solr-8983-console.log: The process > > > cannot access the file because it is being used by another process. > > > > > > at > > > sun.nio.fs.WindowsException.translateToIOException(WindowsException.j > > > ava:86) > > > at > > > sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.jav > > > a:97) > > > at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:387) > > > at > > > sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.j > > > ava:287) > > > at java.nio.file.Files.move(Files.java:1395) > > > at > > > org.apache.solr.util.SolrCLI$UtilsTool.archiveConsoleLogs(SolrCLI.jav > > > a:3608) > > > at > > > org.apache.solr.util.SolrCLI$UtilsTool.runTool(SolrCLI.java:3551) > > > at org.apache.solr.util.SolrCLI.main(SolrCLI.java:250) > > > "Failed archiving old console logs" > > > Exception in thread "main" java.nio.file.FileSystemException: > > > C:\edwin\solr\server\logs\solr.log -> C:\edwin\solr\server\logs\ > > solr.log.1: > > > The process cannot access the file because i > > > t is being used by another process. > > > > > > at > > > sun.nio.fs.WindowsException.translateToIOException(WindowsException.j > > > ava:86) > > > at > > > sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.jav > > > a:97) > > > at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:387) > > > at > > > sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.j > > > ava:287) > > > at java.nio.file.Files.move(Files.java:1395) > > > at > > > org.apache.solr.util.SolrCLI$UtilsTool.rotateSolrLogs(SolrCLI.java:36 > > > 51) > > > at > > > org.apache.solr.util.SolrCLI$UtilsTool.runTool(SolrCLI.java:3545) > > > at org.apache.solr.util.SolrCLI.main(SolrCLI.java:250) > > > "Failed rotating old Solr logs" > > > Waiting up to 30 to see Solr running on port 8984 > > > > > > > > > Regards, > > > Edwin > > > > > >
Re: Both main and replica are trying to access solr_gc.log.0.current file
Yes, both Solr instances are running in the same hardware. I believe they are pointing to the same log directories/config too. How do we point them to different log directories/config? Regards, Edwin On 30 April 2017 at 00:36, Mike Drobwrote: > Are you running both Solr instances in the same hardware and pointing them > at the same log directories/config? > > On Sat, Apr 29, 2017, 2:56 AM Zheng Lin Edwin Yeo > wrote: > > > Hi, > > > > I'm using Solr 6.4.2 on SolrCloud, and I'm running 2 replica of Solr. > > > > When I start the replica, I will encounter this error message. It is > > probably due to the Solr log, as both the main and the replica are trying > > to access the same solr_gc.log.0.current file. > > > > Is there anyway to prevent this? > > > > Besides this error message, the rest of the Solr for both main and > replica > > are running normally. > > > > Exception in thread "main" java.nio.file.FileSystemException: > > C:\edwin\solr\server\logs\solr_gc.log.0.current -> > > C:\edwin\solr\server\logs\archived\solr_gc.log.0.current: The process > > cannot access the file because it is being used by another process. > > > > at > > sun.nio.fs.WindowsException.translateToIOException(WindowsException.j > > ava:86) > > at > > sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.jav > > a:97) > > at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:387) > > at > > sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.j > > ava:287) > > at java.nio.file.Files.move(Files.java:1395) > > at > > org.apache.solr.util.SolrCLI$UtilsTool.archiveGcLogs(SolrCLI.java:357 > > 9) > > at > > org.apache.solr.util.SolrCLI$UtilsTool.runTool(SolrCLI.java:3548) > > at org.apache.solr.util.SolrCLI.main(SolrCLI.java:250) > > "Failed archiving old GC logs" > > Exception in thread "main" java.nio.file.FileSystemException: > > C:\edwin\solr\server\logs\solr-8983-console.log -> > > C:\edwin\solr\server\logs\archived\solr-8983-console.log: The process > > cannot access the file because it is being used by another process. > > > > at > > sun.nio.fs.WindowsException.translateToIOException(WindowsException.j > > ava:86) > > at > > sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.jav > > a:97) > > at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:387) > > at > > sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.j > > ava:287) > > at java.nio.file.Files.move(Files.java:1395) > > at > > org.apache.solr.util.SolrCLI$UtilsTool.archiveConsoleLogs(SolrCLI.jav > > a:3608) > > at > > org.apache.solr.util.SolrCLI$UtilsTool.runTool(SolrCLI.java:3551) > > at org.apache.solr.util.SolrCLI.main(SolrCLI.java:250) > > "Failed archiving old console logs" > > Exception in thread "main" java.nio.file.FileSystemException: > > C:\edwin\solr\server\logs\solr.log -> C:\edwin\solr\server\logs\ > solr.log.1: > > The process cannot access the file because i > > t is being used by another process. > > > > at > > sun.nio.fs.WindowsException.translateToIOException(WindowsException.j > > ava:86) > > at > > sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.jav > > a:97) > > at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:387) > > at > > sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.j > > ava:287) > > at java.nio.file.Files.move(Files.java:1395) > > at > > org.apache.solr.util.SolrCLI$UtilsTool.rotateSolrLogs(SolrCLI.java:36 > > 51) > > at > > org.apache.solr.util.SolrCLI$UtilsTool.runTool(SolrCLI.java:3545) > > at org.apache.solr.util.SolrCLI.main(SolrCLI.java:250) > > "Failed rotating old Solr logs" > > Waiting up to 30 to see Solr running on port 8984 > > > > > > Regards, > > Edwin > > >
Re: Both main and replica are trying to access solr_gc.log.0.current file
Are you running both Solr instances in the same hardware and pointing them at the same log directories/config? On Sat, Apr 29, 2017, 2:56 AM Zheng Lin Edwin Yeowrote: > Hi, > > I'm using Solr 6.4.2 on SolrCloud, and I'm running 2 replica of Solr. > > When I start the replica, I will encounter this error message. It is > probably due to the Solr log, as both the main and the replica are trying > to access the same solr_gc.log.0.current file. > > Is there anyway to prevent this? > > Besides this error message, the rest of the Solr for both main and replica > are running normally. > > Exception in thread "main" java.nio.file.FileSystemException: > C:\edwin\solr\server\logs\solr_gc.log.0.current -> > C:\edwin\solr\server\logs\archived\solr_gc.log.0.current: The process > cannot access the file because it is being used by another process. > > at > sun.nio.fs.WindowsException.translateToIOException(WindowsException.j > ava:86) > at > sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.jav > a:97) > at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:387) > at > sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.j > ava:287) > at java.nio.file.Files.move(Files.java:1395) > at > org.apache.solr.util.SolrCLI$UtilsTool.archiveGcLogs(SolrCLI.java:357 > 9) > at > org.apache.solr.util.SolrCLI$UtilsTool.runTool(SolrCLI.java:3548) > at org.apache.solr.util.SolrCLI.main(SolrCLI.java:250) > "Failed archiving old GC logs" > Exception in thread "main" java.nio.file.FileSystemException: > C:\edwin\solr\server\logs\solr-8983-console.log -> > C:\edwin\solr\server\logs\archived\solr-8983-console.log: The process > cannot access the file because it is being used by another process. > > at > sun.nio.fs.WindowsException.translateToIOException(WindowsException.j > ava:86) > at > sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.jav > a:97) > at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:387) > at > sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.j > ava:287) > at java.nio.file.Files.move(Files.java:1395) > at > org.apache.solr.util.SolrCLI$UtilsTool.archiveConsoleLogs(SolrCLI.jav > a:3608) > at > org.apache.solr.util.SolrCLI$UtilsTool.runTool(SolrCLI.java:3551) > at org.apache.solr.util.SolrCLI.main(SolrCLI.java:250) > "Failed archiving old console logs" > Exception in thread "main" java.nio.file.FileSystemException: > C:\edwin\solr\server\logs\solr.log -> C:\edwin\solr\server\logs\solr.log.1: > The process cannot access the file because i > t is being used by another process. > > at > sun.nio.fs.WindowsException.translateToIOException(WindowsException.j > ava:86) > at > sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.jav > a:97) > at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:387) > at > sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.j > ava:287) > at java.nio.file.Files.move(Files.java:1395) > at > org.apache.solr.util.SolrCLI$UtilsTool.rotateSolrLogs(SolrCLI.java:36 > 51) > at > org.apache.solr.util.SolrCLI$UtilsTool.runTool(SolrCLI.java:3545) > at org.apache.solr.util.SolrCLI.main(SolrCLI.java:250) > "Failed rotating old Solr logs" > Waiting up to 30 to see Solr running on port 8984 > > > Regards, > Edwin >
Re: Solr performance on EC2 linux
We use Solr 6.2 in EC2 instance with Cent OS 6.2 and we don't see any difference in performance between EC2 and in local environment. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-performance-on-EC2-linux-tp4332467p4332553.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Empty value fields not indexed
Hi Shawn, Thanks for the info. Regards, Edwin On 28 April 2017 at 20:36, Shawn Heiseywrote: > On 4/27/2017 10:06 PM, Zheng Lin Edwin Yeo wrote: > > I'm using Solr 6.4.2, and I realized that for those fields which has no > > values, the field name is not index into Solr. > > > > It was working fine in the previous version. > > > > Any reason for this or any settings which needs to be done so that the > > field name can be indexed even though it's value is empty? > > The example configs in newer versions that use "schemaless" mode, which > include basic_configs and data_driven_schema_configs, include an update > processor that removes fields with a blank value. > > If you remove this line from solrconfig.xml, it should cure that problem: > > > > If it were me, I would completely remove all references to > "add-unknown-fields-to-the-schema", or use sample_techproducts_configs > as the starting point for my configuration, because it doesn't have that > update processor. > > Thanks, > Shawn > >
Both main and replica are trying to access solr_gc.log.0.current file
Hi, I'm using Solr 6.4.2 on SolrCloud, and I'm running 2 replica of Solr. When I start the replica, I will encounter this error message. It is probably due to the Solr log, as both the main and the replica are trying to access the same solr_gc.log.0.current file. Is there anyway to prevent this? Besides this error message, the rest of the Solr for both main and replica are running normally. Exception in thread "main" java.nio.file.FileSystemException: C:\edwin\solr\server\logs\solr_gc.log.0.current -> C:\edwin\solr\server\logs\archived\solr_gc.log.0.current: The process cannot access the file because it is being used by another process. at sun.nio.fs.WindowsException.translateToIOException(WindowsException.j ava:86) at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.jav a:97) at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:387) at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.j ava:287) at java.nio.file.Files.move(Files.java:1395) at org.apache.solr.util.SolrCLI$UtilsTool.archiveGcLogs(SolrCLI.java:357 9) at org.apache.solr.util.SolrCLI$UtilsTool.runTool(SolrCLI.java:3548) at org.apache.solr.util.SolrCLI.main(SolrCLI.java:250) "Failed archiving old GC logs" Exception in thread "main" java.nio.file.FileSystemException: C:\edwin\solr\server\logs\solr-8983-console.log -> C:\edwin\solr\server\logs\archived\solr-8983-console.log: The process cannot access the file because it is being used by another process. at sun.nio.fs.WindowsException.translateToIOException(WindowsException.j ava:86) at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.jav a:97) at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:387) at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.j ava:287) at java.nio.file.Files.move(Files.java:1395) at org.apache.solr.util.SolrCLI$UtilsTool.archiveConsoleLogs(SolrCLI.jav a:3608) at org.apache.solr.util.SolrCLI$UtilsTool.runTool(SolrCLI.java:3551) at org.apache.solr.util.SolrCLI.main(SolrCLI.java:250) "Failed archiving old console logs" Exception in thread "main" java.nio.file.FileSystemException: C:\edwin\solr\server\logs\solr.log -> C:\edwin\solr\server\logs\solr.log.1: The process cannot access the file because i t is being used by another process. at sun.nio.fs.WindowsException.translateToIOException(WindowsException.j ava:86) at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.jav a:97) at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:387) at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.j ava:287) at java.nio.file.Files.move(Files.java:1395) at org.apache.solr.util.SolrCLI$UtilsTool.rotateSolrLogs(SolrCLI.java:36 51) at org.apache.solr.util.SolrCLI$UtilsTool.runTool(SolrCLI.java:3545) at org.apache.solr.util.SolrCLI.main(SolrCLI.java:250) "Failed rotating old Solr logs" Waiting up to 30 to see Solr running on port 8984 Regards, Edwin