I installed apache solr on CentOS 7 to follow this link https://computingforgeeks.com/install-apache-solr-on-centos-fedora/
After Completing installation, solr status is
After running this command
sudo systemctl enable solr
Show below message
solr.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig solr on
I ran the command to create testcollection.
sudo su - solr -c "/opt/solr/bin/solr create -c testcollection -n data_driven_schema_configs"
After running the command, error is showing below
ERROR: Error CREATEing SolrCore 'testcollection': Unable to create core [tpcollection3] Caused by: null
Can I get any suggestion for creating collection or core successfully.
Question are
1. Why cannot enable solr on centos 7?
2. Why cannot create collection or core?
2
Answers
Actually I solved to follow another way.
You can extract your desired directory. I made a directory /solr
Download latest version solr from latest release of Apache Solr
Extract it
Add a User
Give permission
Go to your created user
Go to Extracted solr bin file
Start Solr, check solr status and create solr core Or collection
You will see your created collection or core successful message.
/sbin/chkconfig solr on
is a command fallback tosystemctl enable solr
, it achieves the same task that is to enable Solr at startup. That said, there is a service installation script that should help install Solr as a service :/opt/solr/bin/install_solr_service.sh
.Ensure you have set the right permissions on Solr directories and restart Solr, also I don’t think you need the
sudo su
part :