Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning. Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "The next lines of code read the link and assign it to the to the BeautifulSoup function."

A block of code is set as follows:

package com.chapter11.SparkMachineLearning
import org.apache.spark.mllib.feature.StandardScalerModel
import org.apache.spark.mllib.linalg.{ Vector, Vectors }
import org.apache.spark.sql.{ DataFrame }
import org.apache.spark.sql.SparkSession

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

val spark = SparkSession
.builder
.master("local[*]")
.config("spark.sql.warehouse.dir", "E:/Exp/")
.config("spark.kryoserializer.buffer.max", "1024m")
.appName("OneVsRestExample")
.getOrCreate()

Any command-line input or output is written as follows:

$./bin/spark-submit --class com.chapter11.RandomForestDemo 
--master spark://ip-172-31-21-153.us-west-2.compute:7077
--executor-memory 2G
--total-executor-cores 2
file:///home/KMeans-0.0.1-SNAPSHOT.jar
file:///home/mnist.bz2

New termsand important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Clicking the Next button moves you to the next screen."

Warnings or important notes appear like this.
Tips and tricks appear like this.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.191.214