摘要: temp[-1:-5:-1] 阅读全文
posted @ 2017-11-05 23:40 TheCompass 阅读(1111) 评论(0) 推荐(0) 编辑
摘要: job.setInputFormatClass(KeyValueTextInputFormat.class);//此时map端输入的键的内容为第一个tab键以左的内容,值得内容为第一个tab键以右的内容 阅读全文
posted @ 2017-11-05 21:50 TheCompass 阅读(568) 评论(0) 推荐(0) 编辑
摘要: // 判断output文件夹是否存在,如果存在则删除 Path outPath = new Path("hdfs://192.168.9.13:8020/meanwhileFind");// 输出路径 FileSystem fs = outPath.getFileSystem(conf);// 根据输出路径找到文件,参数为配置文件 if (fs.exists(outPat... 阅读全文
posted @ 2017-11-05 21:44 TheCompass 阅读(2704) 评论(0) 推荐(0) 编辑
摘要: 方法一: a.第一步:在job中加载两个文件所在的位置 FileInputFormat.setInputPaths(job, new Path[] { new Path("hdfs://192.168.9.13:8020/gradeMarking"), new Path("hdfs://192.16 阅读全文
posted @ 2017-11-05 21:41 TheCompass 阅读(3423) 评论(0) 推荐(0) 编辑
摘要: 一:使用Python的while嵌套循环打印如下图形: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 总结:之前学的Java,写习惯了,Python有点不习惯,他的代码特别灵活,按行缩进 阅读全文
posted @ 2017-11-05 16:48 TheCompass 阅读(4286) 评论(1) 推荐(0) 编辑
摘要: http://jingyan.baidu.com/article/08b6a591a21e8e14a8092211.html 阅读全文
posted @ 2017-11-05 10:24 TheCompass 阅读(413) 评论(0) 推荐(0) 编辑