MapReduce
忧伤的橘子
这个作者很懒,什么都没留下…
展开
-
hive启动报错 Operation category READ is not supported in state standby.
使用hdfs haadmin -getServiceState nn1 查看状态,这个nn1是在/opt/hadop/etc/hadoop/hdfs-site.xml 中查看hdfs haadmin -transitionToActive --forcemanual nn1将standby变为active原创 2020-02-17 10:33:32 · 939 阅读 · 1 评论 -
mapreduce获取读取文件的名字
Path path = ((FileSplit) context.getInputSplit()).getPath();String name = path.getName();System.out.println(name+"---------------------");String fileName = path.getParent().toString(); Syst...原创 2020-02-11 14:09:27 · 374 阅读 · 0 评论 -
JAVA-API 简单实现MapReduce统计单词
(一) JAVA-API 简单实现MapReduce统计单词()这是要处理的文件1.导入maven依赖 <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-client</artifactId&...原创 2020-01-01 19:42:41 · 675 阅读 · 0 评论
分享