上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 36 下一页
摘要: 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 阅读(130) 评论(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) 编辑
摘要: 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) 编辑
摘要: 由于dataset是一个列表>>> dataset[[1.658985, 4.285136], [-3.453687, 3.424321], [4.838138, -1.151539], [-5.379713, -3.362104], [0.972564, 2.924... 阅读全文
posted @ 2018-01-03 16:33 crr121 阅读(2545) 评论(0) 推荐(0) 编辑
摘要: 由于dataset是一个列表>>> dataset[[1.658985, 4.285136], [-3.453687, 3.424321], [4.838138, -1.151539], [-5.379713, -3.362104], [0.972564, 2.924... 阅读全文
posted @ 2018-01-03 16:33 crr121 阅读(7870) 评论(1) 推荐(0) 编辑
摘要: 错误代码:def loadDataSet(fileName): #general function to parse tab -delimited floats dataMat = [] #assume last colu... 阅读全文
posted @ 2018-01-03 16:12 crr121 阅读(405) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 36 下一页