Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Solr Tutorial Error With JAVA ENV PATH

avatar

After getting to Step 3 of "Indexing and Searching Documents with Apache Solr", I recieved the following error from entering the syntax: /opt/lucidworks-hdpsearch/solr/bin/solr start -cloud -p 8983-z sandbox.hortonworks.com:2181-s ~/solr-cores/core1

Any ideas as to what my next course of action could be, besides removing the JAVA ENV?

868-solr-error.png

1 ACCEPTED SOLUTION

avatar

@Yue Chen you can set JAVA_HOME, then retry the solr start command you are running, and it should work. For example, on my sandbox, I was able to set it this way

export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk.x86_64

View solution in original post

3 REPLIES 3

avatar

@Yue Chen you can set JAVA_HOME, then retry the solr start command you are running, and it should work. For example, on my sandbox, I was able to set it this way

export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk.x86_64

avatar

Make sure you have set JAVA_HOME in your environment or in /opt/lucidworks-hdpsearch/solr/bin/solr.in.sh

You can either add JAVA_HOME or SOLR_JAVA_HOME to the solr script.

avatar

@Yue Chen were you able to resolve your issue using the below suggestions?