I have been tasked with installing Apache Solr on Cloud, for which I have selected a VM running Ubuntu 16.04.
I have completed the instalation of Solr 7.3.0. However, when I enter the following command:
command bin/solr start
I get the following message:
WARNING: Starting Solr as the root user is a security risk and is not best practice. Exiting.
I then attempted the Solr tutorial, Exercise 1 as set out here: https://lucene.apache.org/solr/guide/7_4/solr-tutorial.html
The result is the same regardless of the number of nodes I enter. On Stacks Exchange there is a prior question where answers were given: solr installation, cannot start examples
I chose the best answer to this question in which I was to have given solr user access to my directory, by entering the following command:
chown -R solr /opt/solr
as there is no solr group in the directory where solr is installed. Nonetheless, the result was the same error:
WARNING: Starting Solr as the root user is a security risk and is not best practice. Exiting.
without regard to whether I was plainly starting up Solr or starting up Exercise 1.
I then used the answer as presented in stacks from the link above
chown -R solr.solr /opt/solr
Again, the result was the same error
WARNING: Starting Solr as the root user is a security risk and is not best practice. Exiting.
without regard to whether I was plainly starting up Solr or starting up Exercise 1.
I am at loss as to how I should approach this matter. Please advise.
Thank you.