- Frank Kane's Taming Big Data with Apache Spark and Python
- Frank Kane
- 382字
- 2021-07-02 21:12:16
Installing the Java Development Kit
For installing the Java Development Kit, go back to the browser, open a new tab, and just search for jdk (short for Java Development Kit). This will bring you to the Oracle site, from where you can download Java:

On the Oracle website, click on JDK DOWNLOAD. Now, click on Accept License Agreement and then you can select the download option for your operating system:

For me, that's going to be Windows 64-bit and a wait for 198 MB of goodness to download:

Once the download is finished, we can't just accept the default settings in the installer on Windows here. So, this is a Windows-specific workaround, but as of the writing of this book, the current version of Spark is 2.1.1. It turns out there's an issue with Spark 2.1.1 with Java on Windows. The issue is that if you've installed Java to a path that has a space in it, it doesn't work, so we need to make sure that Java is installed to a path that does not have a space in it. This means that you can't skip this step even if you have Java installed already, so let me show you how to do that. On the installer, click on Next, and you will see, as in the following screen, that it wants to install by default to the C:\Program Files\Java\jdk path, whatever the version is:

The space in the Program Files path is going to cause trouble, so let's click on the Change... button and install to c:\jdk, a nice simple path, easy to remember, and with no spaces in it:

Now, it also wants to install the Java Runtime environment; so, just to be safe, I'm also going to install that to a path with no spaces.
At the second step of the JDK installation, we should have this showing on our screen:

I will change that destination folder as well, and we will make a new folder called C:\jre for that:

Alright; successfully installed. Woohoo!
Now, you'll need to remember the path that we installed the JDK into, which, in our case was C:\jdk. We still have a few more steps to go here. So far, we've installed Python and Java, and next we need to install Spark itself.
- Extending Jenkins
- 深入淺出數據科學:Python編程
- 圖解Java數據結構與算法(微課視頻版)
- Rake Task Management Essentials
- 精通搜索分析
- Python漫游數學王國:高等數學、線性代數、數理統計及運籌學
- HTML5+CSS3網頁設計
- Python機器學習算法: 原理、實現與案例
- Android開發三劍客:UML、模式與測試
- Geospatial Development By Example with Python
- AV1視頻編解碼標準:原理與算法實現
- 算法設計與分析:基于C++編程語言的描述
- Visual C++從入門到精通(第2版)
- PHP Microservices
- 計算機應用基礎(Windows 7+Office 2010)