Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Solr Tutorial Error With JAVA ENV PATH

Solved Go to solution
Highlighted

Solr Tutorial Error With JAVA ENV PATH

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

Accepted Solutions
Highlighted

Re: Solr Tutorial Error With JAVA ENV PATH

@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
Highlighted

Re: Solr Tutorial Error With JAVA ENV PATH

@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

Highlighted

Re: Solr Tutorial Error With JAVA ENV PATH

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.

Highlighted

Re: Solr Tutorial Error With JAVA ENV PATH

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

Don't have an account?
Coming from Hortonworks? Activate your account here