摘要:1)s=csvread('E:\...\20121201.csv',0,1);2)s=importdata('E:\...\20121201.csv')3) 更灵活fid=fopen('E:\...\20121201.csv');s=textscan(fid,'%d,%d,%s');fclose(fid);or: s=textscan(fid,'%d,%d,%*[^\n]','BufSize',10000);Parameter-BufSize:Maximum string length in byt
阅读全文
摘要:是否Partition对结果有影响,一天的数据未Partition结果93.8M,Partion后80+M
阅读全文
摘要:ArrayList<Integer> a,b;a.add(0)b.add(0)a.get(0)==b.get(0)为falsea.get(0).equals(b.get(0))为true
阅读全文
摘要:ERROR="java\.io\.IOException: Failed to save output of task: attempt_201304212108_0028_r_000003_0ERROR="FSError:java\.io\.IOException:Nospaceleftondevice"
阅读全文
摘要:http://www.linuxidc.com/Linux/2012-12/76702p6.htm备注:如果不加"conf.set("mapred.job.tracker", "192.168.1.2:9001");",将提示你的权限不够,其实照成这样的原因是刚才设置的"Map/Reduce Location"其中的配置不是完全起作用,而是在本地的磁盘上建立了文件,并尝试运行,显然是不行的。我们要让Eclipse提交作业到Hadoop集群上,所以我们这里手动添加Job运行地址。详细参考"常见问题FAQ_3
阅读全文
摘要:设置横坐标刻度set(gca,'XTick',st*100:60:st*100+1440);str=[];for temp=0:24 a={strcat(int2str(temp),':00')}; str=[str,a];endset(gca,'XTICkLabel',str);help datetick
阅读全文