摘要: -cacheArchive也是从hdfs上进分发,但是分发文件是一个压缩包,压缩包内可能会包含多层目录多个文件 1.The_Man_of_Property.txt文件如下(将其上传至hdfs上) hadoop fs -put The_Man_of_Property.txt /mapreduce Pr 阅读全文
posted @ 2018-04-03 23:24 bioamin 阅读(940) 评论(0) 推荐(0) 编辑
摘要: hadoop命令分为2级,在linux命令行中输入hadoop,会提示输入规则 Usage: hadoop [--config confdir] COMMAND where COMMAND is one of: namenode -format format the DFS filesystem#这 阅读全文
posted @ 2018-04-03 19:51 bioamin 阅读(6370) 评论(0) 推荐(0) 编辑
摘要: -cacheFile 分发,文件事先上传至Hdfs上,分发的是一个文件 1.找一篇文章The_Man_of_Property.txt: He was proud of him! He could not but feel that in similar circumstances he himsel 阅读全文
posted @ 2018-04-03 16:45 bioamin 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 1.冒泡排序(从大到小):交换发生在内部循环 稳定的排序 冒泡排序的平均时间复杂度是O(n2),最好的时间复杂度是O(n),最坏的时间复杂度是O(n2),空间复杂度为O(1) 冒泡排序的优化在于didswap变量 ,通过这个变量的设置,实现冒泡排序的最好时间复杂度是O(n) #!usr/bin/py 阅读全文
posted @ 2018-04-03 00:25 bioamin 阅读(675) 评论(0) 推荐(0) 编辑