官术网_书友最值得收藏!

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's default OFF_HEAP (experimental) storage is Tachyon."

Most of the examples are executed in Scala, Python and Mahout shells. Any command-line input is written as follows:

[root@myhost ~]# pyspark --master spark://sparkmasterhostname:7077 --total-executor-cores 4

A block of Python code executed in PySpark shell is shown as follows:

>>> myList = ["big", "data", "analytics", "hadoop" , "spark"]
>>> myRDD = sc.parallelize(myList)
>>> myRDD.getNumPartitions()

A block of code written in Python Application is shown as follows:

from pyspark import SparkConf, SparkContext
conf = (SparkConf()
        .setMaster("spark://masterhostname:7077")
        .setAppName("My Analytical Application")
        .set("spark.executor.memory", "2g"))
sc = SparkContext(conf = 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: "In case of VMWare Player, click on Open a Virtual Machine, and point to the directory where you have extracted the VM."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 松阳县| 镇巴县| 谢通门县| 新疆| 贺兰县| 辰溪县| 英德市| 克东县| 鹤庆县| 望江县| 金溪县| 淮阳县| 界首市| 新竹县| 府谷县| 安溪县| 扎赉特旗| 明溪县| 任丘市| 雷山县| 神农架林区| 龙胜| 拜泉县| 宁国市| 涡阳县| 新邵县| 离岛区| 津南区| 高唐县| 禹城市| 威海市| 崇仁县| 锡林郭勒盟| 汽车| 宁陕县| 香格里拉县| 临泽县| 玛纳斯县| 连南| 梓潼县| 新乡县|