摘要: 启动Hadoop集群的时候,所有的datanode启动不了,报错如下java.io.IOException: Incompatible clusterIDs in /home/xiaoqiu/hadoop_tmp/dfs/data:namenode clusterID... 阅读全文
posted @ 2018-01-04 23:24 crr121 阅读(191) 评论(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 阅读(338) 评论(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 阅读(117) 评论(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 阅读(102) 评论(0) 推荐(0)
摘要: 1、MapFile写入文件 /** * mapfile写入文件 * @throws IOException */ @Test public void save() throws IOException { Confi... 阅读全文
posted @ 2018-01-04 21:02 crr121 阅读(115) 评论(0) 推荐(0)
摘要: 1、MapFile写入文件 /** * mapfile写入文件 * @throws IOException */ @Test public void save() throws IOException { Confi... 阅读全文
posted @ 2018-01-04 21:02 crr121 阅读(164) 评论(0) 推荐(0)
摘要: wordcount1类/** * wordcount单词统计 */public class wordcount1 { public static void main(String[] args) throws IOException, ClassNotFound... 阅读全文
posted @ 2018-01-04 17:01 crr121 阅读(138) 评论(0) 推荐(0)
摘要: wordcount1类/** * wordcount单词统计 */public class wordcount1 { public static void main(String[] args) throws IOException, ClassNotFound... 阅读全文
posted @ 2018-01-04 17:01 crr121 阅读(134) 评论(0) 推荐(0)
摘要: 1、序列文件(二进制)的写入 /** * 写入文件 * @throws IOException */ @Test public void save() throws IOException { Configura... 阅读全文
posted @ 2018-01-04 14:14 crr121 阅读(250) 评论(0) 推荐(0)
摘要: 1、序列文件(二进制)的写入 /** * 写入文件 * @throws IOException */ @Test public void save() throws IOException { Configura... 阅读全文
posted @ 2018-01-04 14:14 crr121 阅读(185) 评论(0) 推荐(0)