- Fast Data Processing with Spark 2(Third Edition)
- Krishna Sankar
- 140字
- 2021-08-20 10:27:06
Installing the prebuilt distribution
Let's download prebuilt Spark and install it. Later, we will also compile a version and build from the source. The download is straightforward. The download page is at http://spark.apache.org/downloads.html. Select the options as shown in the following screenshot:

We will use wget
from the command line. You can do a direct download as well:
cd /opt sudo wget http://www-us.apache.org/dist/spark/spark-2.0.0/spark-2.0.0-bin-hadoop2.7.tgz
We are downloading the prebuilt version for Apache Hadoop 2.7 from one of the possible mirrors. We could have easily downloaded other prebuilt versions as well, as shown in the following screenshot:

To uncompress it, execute the following command:
sudo tar xvf spark-2.0.0-bin-hadoop2.7.tgz
To test the installation, run the following command:
/opt/spark-2.0.0-bin-hadoop2.7/bin/run-example SparkPi 10
It will fire up the Spark stack and calculate the value of Pi. The result will be as shown in the following screenshot:

- 工程軟件開發(fā)技術(shù)基礎(chǔ)
- JavaScript+jQuery開發(fā)實戰(zhàn)
- INSTANT MinGW Starter
- 人臉識別原理及算法:動態(tài)人臉識別系統(tǒng)研究
- 劍指Java:核心原理與應(yīng)用實踐
- Java EE核心技術(shù)與應(yīng)用
- Python算法詳解
- JSP程序設(shè)計實例教程(第2版)
- Java程序設(shè)計與項目案例教程
- 硬件產(chǎn)品設(shè)計與開發(fā):從原型到交付
- UML軟件建模
- MongoDB Cookbook
- Hands-On ROS for Robotics Programming
- INSTANT EaselJS Starter
- Qt編程快速入門