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

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.

主站蜘蛛池模板: 滁州市| 乐亭县| 岱山县| 塘沽区| 宁城县| 烟台市| 云龙县| 元朗区| 鄂托克前旗| 石景山区| 西安市| 清水县| 专栏| 台东市| 抚顺县| 鄂尔多斯市| 木里| 米脂县| 贵州省| 邹平县| 绩溪县| 瓦房店市| 侯马市| 林芝县| 东阿县| 蒙阴县| 深泽县| 永城市| 葫芦岛市| 阿拉尔市| 古蔺县| 綦江县| 仙桃市| 故城县| 靖宇县| 祥云县| 新巴尔虎左旗| 富宁县| 二连浩特市| 静乐县| 桐梓县|