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

Conventions

In this book, you will find a number of styles of text 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 following are the descriptions of the properties we used in the hadoop.properties file."

A block of code is set as follows:

Path file = new Path("demo.txt");
FSDataOutputStream outStream = fs.create(file);
outStream.writeUTF("Welcome to HDFS Java API!!!");
outStream.close();

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

Job job = Job.getInstance(getConf(), "MLReceiveReplyProcessor");
job.setJarByClass(CountReceivedRepliesMapReduce.class);
job.setMapperClass(AMapper.class);
job.setReducerClass(AReducer.class);
job.setNumReduceTasks(numReduce);

job.setOutputKeyClass(Text.class);
job.setOutputValueClass(Text.class);
job.setInputFormatClass(MBoxFileInputFormat.class);
FileInputFormat.setInputPaths(job, new Path(inputPath));
FileOutputFormat.setOutputPath(job, new Path(outputPath));

int exitStatus = job.waitForCompletion(true) ? 0 : 1;

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

205.212.115.106 - - [01/Jul/1995:00:00:12 -0400] "GET /shuttle/countdown/countdown.html HTTP/1.0" 200 3985

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Select Custom Action in the Add Bootstrap Actions drop-down box. Click on Configure and add."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 洛阳市| 肥东县| 威宁| 南宫市| 张家港市| 茌平县| 大洼县| 余姚市| 肃宁县| 宿迁市| 承德市| 双柏县| 错那县| 兴化市| 读书| 丘北县| 普安县| 景德镇市| 苏州市| 屏东市| 孝昌县| 雅江县| 本溪| 象州县| 沂源县| 云林县| 通江县| 阿拉善右旗| 宁河县| 鹿泉市| 偃师市| 长寿区| 黑山县| 荣成市| 太白县| 萝北县| 武宁县| 商河县| 湖北省| 湘潭县| 宜君县|