Elasticsearch Engineer 1 - Lab 1.4 - can not find Java

I’m currently attempting to take ElasticSearch Engineer 1 (On-Demand) training and am stuck at Lab 1.4 in the Lab Environment (Strigo). When attempting to run the logstash command, I get the following error:

[elastic@server1 ~]$ ./logstash-7.8.0/bin/logstash -f datasets/blogs_sql.conf
could not find java; set JAVA_HOME or ensure java is in PATH

I found a JDK dir in the elasticsearch directory, but when I tried to set the PATH to point to it, the environment sort of blew up (logstash still fails and many default unix commands disappear). I subsequently attempted to install the Java JDK on the machine, but we don’t have sudo access.

I've also attempted to restart the VM. Is this something you all can help me out with?

Hello Justin,

Please make sure that you loaded the correct lab environment by running the command ./load_lab.sh 1

If this doesn't fix your issue, please send me a private message with your email address so that I can reboot your environment.

Thanks! That did the trick :slight_smile: I think I had loaded "lab 4" (or something) when Lab 1 covers 1.1-1.4.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.