- Hadoop MapReduce v2 Cookbook(Second Edition)
- Thilina Gunarathne
- 223字
- 2021-07-23 20:32:51
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."
- Design Principles for Process:driven Architectures Using Oracle BPM and SOA Suite 12c
- C語言程序設計立體化案例教程
- 學Python也可以這么有趣
- HTML5與CSS3基礎教程(第8版)
- iOS開發實戰:從入門到上架App Store(第2版) (移動開發叢書)
- Android傳感器開發與智能設備案例實戰
- Visual Basic程序設計(第三版)
- 零基礎學HTML+CSS
- App Inventor少兒趣味編程動手做
- 算法設計與分析:基于C++編程語言的描述
- 交互式程序設計(第2版)
- Redmine Cookbook
- Java高手是怎樣煉成的:原理、方法與實踐
- 快樂編程:青少年思維訓練
- 用Python動手學統計學