摘要: 启动Hadoop集群的时候,所有的datanode启动不了,报错如下java.io.IOException: Incompatible clusterIDs in /home/xiaoqiu/hadoop_tmp/dfs/data:namenode clusterID... 阅读全文
posted @ 2018-01-04 23:24 crr121 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 启动Hadoop集群的时候,所有的datanode启动不了,报错如下java.io.IOException: Incompatible clusterIDs in /home/xiaoqiu/hadoop_tmp/dfs/data:namenode clusterID... 阅读全文
posted @ 2018-01-04 23:24 crr121 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 1、处理序列的mapperpackage com.cr.hdfs;import org.apache.hadoop.io.IntWritable;import org.apache.hadoop.io.LongWritable;import org.apache.ha... 阅读全文
posted @ 2018-01-04 21:17 crr121 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 1、处理序列的mapperpackage com.cr.hdfs;import org.apache.hadoop.io.IntWritable;import org.apache.hadoop.io.LongWritable;import org.apache.ha... 阅读全文
posted @ 2018-01-04 21:17 crr121 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 1、MapFile写入文件 /** * mapfile写入文件 * @throws IOException */ @Test public void save() throws IOException { Confi... 阅读全文
posted @ 2018-01-04 21:02 crr121 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 1、MapFile写入文件 /** * mapfile写入文件 * @throws IOException */ @Test public void save() throws IOException { Confi... 阅读全文
posted @ 2018-01-04 21:02 crr121 阅读(156) 评论(0) 推荐(0) 编辑
摘要: wordcount1类/** * wordcount单词统计 */public class wordcount1 { public static void main(String[] args) throws IOException, ClassNotFound... 阅读全文
posted @ 2018-01-04 17:01 crr121 阅读(127) 评论(0) 推荐(0) 编辑
摘要: wordcount1类/** * wordcount单词统计 */public class wordcount1 { public static void main(String[] args) throws IOException, ClassNotFound... 阅读全文
posted @ 2018-01-04 17:01 crr121 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1、序列文件(二进制)的写入 /** * 写入文件 * @throws IOException */ @Test public void save() throws IOException { Configura... 阅读全文
posted @ 2018-01-04 14:14 crr121 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1、序列文件(二进制)的写入 /** * 写入文件 * @throws IOException */ @Test public void save() throws IOException { Configura... 阅读全文
posted @ 2018-01-04 14:14 crr121 阅读(180) 评论(0) 推荐(0) 编辑