摘要:
主要设置参数:mapred.task.profile 是否对任务进行profiling,调用java内置的profile功能,打出相关性能信息mapred.task.profile.{maps|reduces} 对几个map或reduce进行profiling。非常影响速度,建议在小数据量上尝试... 阅读全文
摘要:
启用Heap DumpIn each script, there is an export for *_OPTS, which contains the options passed to the JVM. For example, in the hadoop-env.sh script, the ... 阅读全文
摘要:
1.ssh的安装gavin@ubuntu:~$ sudo apt-get install ssh2.生成密钥[html]view plaincopyprint?gavin@ubuntu:~$ssh-keygen[plain]view plaincopyprint?Generatingpublic/p... 阅读全文
摘要:
public class SequenceFilesTest { @Test public void testSeqFileReadWrite() throws IOException { Configuration conf = new Configuration(); FileS... 阅读全文
摘要:
前言在本文档中,你将了解到如何用Java接口读写Hadoop分布式系统中的文件,以及编码的转换等问题。其中有些细节,在你不知道的时候,是非常容易出错的。这边读写文件分以下三种情况:1. 在非Map Reduce过程中读写分布式文件系统中的文件比如说,你想自己遍历一个文件,想截断一个文件,都属于这种方... 阅读全文
摘要:
GDI MoveTo和LineTo等函数无法实现抗锯齿。可以通过算法设置像素实现平滑样式。CodeProject上搜索GDI平滑的例子。使用GDI+。主要API:SetSmoothingMode,DrawLine等。参考:http://bbs.csdn.net/topics/390688409htt... 阅读全文
摘要:
GDI GDI+GDI在全称是Graphics Device Interface,即图形设备接口。是图形显示与实际物理设备之间的桥梁。GDI接口是基于函数,虽然使程序员省力不少,但是编程方式依然显得麻烦。例如显示一张位图,我们需要进行“创建位图,读取位图文件信息,启用场景设备,调色板变化“等一系列操... 阅读全文
摘要:
一、使用飞鸽传书实现功能目前在linux下使用飞鸽传书的比较流行的软件有iptux和ipmsg。1.1iptuxiptux是ubuntu中一个可以和windows下大家熟悉的飞鸽传书互传文件的软件,在ubuntu软件中心中可以找安装。个人体验还不错,传输速度15M/s左右,(在ubuntu中互传速度... 阅读全文
摘要:
#include #include #include using namespace std;int main(){ ifstream in("in.txt"); string line; while (getline(in, line)) { stringstream ss(line); stri... 阅读全文
摘要:
1. 安装Nvidia显卡的驱动 http://www.cnblogs.com/chinesedream/articles/4591921.html2. 安装Nvidia显卡的开发包 nvidia-*-dev3. 安装其他OpenGL的开发包 http://www.cnblogs.com/chine... 阅读全文