Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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?