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: " Spark MLib
provides a huge list of supported algorithms."
A block of code is set as follows:
$jps 2184 DataNode 2765 NodeManager 2835 Jps 2403 SecondaryNameNode 2025 NameNode 2606 ResourceManager
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
// The results of SQL queries are themselves RDDs and support all normal RDD functions. The
// items in the RDD are of type Row, which allows you to access each column by ordinal.
valrddFromSql = sql("SELECT id, name FROM empSpark WHERE id < 20 ORDER BY id")
Any command-line input or output is written as follows:
# cp /usr/src/asterisk-addons/configs/cdr_mysql.conf.sample /etc/asterisk/cdr_mysql.conf
New terms and 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: "Click on Create your Twitter application to save your application."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.