본문 바로가기
728x90

콤퓨타113

리듀스의 출력이 Text, Text 일 때, 알파벳 역순으로 출력되게 하는 Comparator 리듀스의 출력이 Text, Text 일 때, 알파벳 역순으로 출력되게 하는 Comparator출처 : http://pkghosh.wordpress.com/2011/04/13/map-reduce-secondary-sort-does-it-all/ public static class KeyComprator extends WritableComparator {02 03 protected KeyComprator() {04 super(Text.class, true);05 }06 07 @Override08 public int compare(WritableComparable w1, WritableComparable w2) {09 10//ascending zone and day11 12Text t1 = (Text) w1;.. 2013. 2. 20.
gcc 버전 업그레이드 (우분투) 예시는 4.6에서 4.7로 업그레이드. sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install gcc-4.7 g++-4.7 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7 sudo update-alternatives --config gcc -.. 2013. 2. 20.
Ubuntu 10.04 64bit - nvidia 드라이버 설치할 때 nouveau 관련 에러 설치할 때 nouveau 때매 설치 안된다 머시기 이런거 나오면 얘네가 작동 안하게 해줘야 함. ( disable nouveau kernel driver ubuntu 10.04 ) 방법 ㄱㄱ 1. Blacklist the nouveau driver : Add below line to /etc/modprobe.d/blacklist.conf fileblacklist nouveau2. Reboot the system to runlevel 3 (without graphics) 1) sudo vi /etc/init/rc-sysinit.conf 2) In the file that opens search for the line env DEFAULT_RUNLEVEL=3 3) sudo vi /etc/init/gdm.co.. 2013. 2. 20.
Unable to locate/open X configuration file sudo nvidia-xconfig 2013. 2. 20.
728x90