mapreduce知识点记录
selfMapper extends Mapper< LongWritable, Text, Text, IntWritable> 其中LongWritable是某一行起始位置相对于文件起始位置的偏移量 FileSplit 继承extends InputSplit FileSplit fileSplit=(FileSplit) context.getInputSplit(); Stringpathname=fileSplit.getPath().getName();//获取目录名字 intdepth=fileSplit.getPath().depth();//获取目录深度 Classclass1=fileSplit.getClass();//获取当前类 longlength=fileSplit.getLength();//获取文件长度 SplitLocationInfo[]locationInfo=fileSplit.getLocationInfo();//获取位置信息 String[]locations=fileSplit.getLocations();//获取位置 lo...