![]() ![]() These two configurations can be the same or different. There are many other configurations you can do. # Enable the following one if you have Hive installed. ![]() Make sure you add the following line: localhost Run the following command to create a Spark default config file: cp $SPARK_HOME/conf/ $SPARK_HOME/conf/nfĮdit the file to add some configurations use the following commands: vi $SPARK_HOME/conf/nf If you also have Hive installed, change SPARK_DIST_CLASSPATH to: export SPARK_DIST_CLASSPATH=$(hadoop classpath):$HIVE_HOME/lib/* Load the updated file using the following command: # Source the modified file to make it effective: # Configure Spark to use Hadoop classpathĮxport SPARK_DIST_CLASSPATH=$(hadoop classpath) bashrc file: vi ~/.bashrcĪdd the following lines to the end of the file: export SPARK_HOME=~/hadoop/spark-3.0.1 We also need to configure Spark environment variable SPARK_DIST_CLASSPATH to use Hadoop Java class path. Setup SPARK_HOME environment variables and also add the bin subfolder into PATH variable. The Spark binaries are unzipped to folder ~/hadoop/spark-3.0.1. Unpack the package using the following command: mkdir ~/hadoop/spark-3.0.1 In my system, the file is saved to this folder: ~/Downloads/spark-3.0.1-bin-hadoop3.2.tgz. Visit Downloads page on Spark website to find the download URL.ĭownload the binary package to a folder. Follow article Install JDK 11 on macOS to install Java 11. If you choose to download Spark package with pre-built Hadoop, Hadoop 3.3.0 configuration is not required.įollow article Install Hadoop 3.3.0 on macOS to configure Hadoop 3.3.0 on macOS. Thus we need to ensure a Hadoop environment is setup first. This article will use Spark package without pre-built Hadoop. The version I'm using is macOS Big Sur version 11.1. This article provides step by step guide to install the latest version of Apache Spark 3.0.1 on macOS. Spark is written with Scala which runs in JVM (Java Virtual Machine) thus it is also feasible to run Spark in a macOS system.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |