Windows Installation Prerequisites

Below are the Prerequisites for installing Fire Insights on a windows machine:

- JDK 1.8 installed.
- java and jar have to be in the PATH
- 8+ GB of RAM on the machine.
- Python 3.6+ (when running Python and PySpark, otherwise not needed)

Check JDK 1.8 is installed

  • Check the JDK version installed on your machine:

    Open the command window
    Type the following command to check your java version : java -version
    
  • If JDK 1.8 is not installed, follow the JDK installation steps mentioned below.

Install JDK 1.8

Note

If you have multiple versions of Java installed on you system, you can update the PATH using the steps outlined in either of the links below:

Note

With the above steps, you would have Fire Insights running locally on your laptop. It would not be able to submit jobs to a Spark cluster. For that, Fire Insights has to be installed on the edge node of the cluster.

winutils.exe

winutils.exe is needed for running Apache Spark/Hadoop on windows machines. Follow the below steps to setup winutils.exe on your machine:

- Download winutils.exe from https://github.com/steveloughran/winutils
  • Create hadoop folder in Your System : C:\hadoop.
Installations
  • Create bin folder in hadoop directory : C:\hadoop\bin.
Installations
  • Copy the downloaded winutils.exe to the bin directory : C:\hadoop\bin\winutils.exe.
Installations
  • Add a new Environment Variable.

    • HADOOP_HOME = C:\hadoop.
Installations
  • Update the System Environment Variable PATH by adding : %HADOOP_HOME%\bin.
Installations

Troubleshooting

Running into an exception when saving files

org.apache.spark.SparkException: Job aborted due to stage failure: Task 1 in stage 33.0 failed 1 times, most recent failure: Lost task 1.0 in stage 33.0 (TID 131, localhost): java.io.IOException: (null) entry in command string: null chmod 0644

If you run into an exception like above, then there is problem with the setup of winutils.exe.