Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在学习 MapReduce。我有以下代码来查找文件的名称,其块/块由映射器处理。
FileSplit fs=(FileSplit)context.getInputSplit(); String fileName=fs.getPath().getName(); System.out.println("File: " + fileName + " Path: " + fs.getPath().getName().toString());
但它没有继续。不知道哪里出错了。请帮忙。