2013의 게시물 표시

화를다스리면 인생이달라진다..

이미지
나 스스로 화를 잘내는것같아   마트에장보러갔다가 구매해서읽어보았다. 크게 와닿지는 않았다. 설명이 그리 논리적이지 못하다고느껴서일까? 여하튼 화를 내지않는삶이 행복하다는 말은 공감한다. 언젠가는 그렇게 살수있을꺼라 기대해본다

Installing Python 2.4.1 and cx_Oracle on AIX

http://agiletesting.blogspot.kr/2005/07/installing-python-241-and-cxoracle-on.html (Large Open Source Software Archive for AIX) http://www.bullfreeware.com/toolbox.php   You can download opensource rpm for AIX from here.

hadoop file encoding 설정

hadoop file read write 시 인코딩을 변경하는 방법             mapred.child.java.opts     -Xmx200m -Dfile.encoding=utf-8     Java opts for the task tracker child processes.  Subsumes     ‘mapred.child.heap.size’ (If a mapred.child.heap.size value is found     in a configuration, its maximum heap size will be used and a warning     emitted that heap.size has been deprecated). Also, the following symbols,     if present, will be interpolated: @taskid@ is replaced by current TaskID;     and @port@ will be replaced by mapred.task.tracker.report.port + 1 (A second     child will fail with a port-in-use if mapred.tasktracker.tasks.maximum is     greater than one). Any other occurrences of ‘@’ will go unchanged. For     example, to enable verbose gc logging to a file named for the taskid in     /tmp and to set the heap maximum to be a gigabyte, pass a ‘value’ of:         -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc         출처 :  http://freesearch.pe.kr/archives/1143

Oracle 11g add DB instance manually

Oracle 11g add DB instance manually http://rafioracledba.blogspot.kr/2012/08/creating-11g-database-manually-in-11.html

AIX utf-8 to euckr converting

AIX 에서 utf-8 파일을 euc-kr 로 변환하는 방법 iconv -f UTF-8 -t IBM-eucKR  input.txt > result.txt

SELinux 설정...

redhat httpd 설치후 403 forbidden 에러가 난다. 아무리 설정을 해봐도... 원인은 SELinux 란다... https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Security-Enhanced_Linux/sect-Security-Enhanced_Linux-Working_with_SELinux-SELinux_Contexts_Labeling_Files.html 여기대로 설정을 chcon -R -t httpd_sys_content_t /web/ 이런식으로 변경하니 잘되네..   음. 역시 모르는게 너무 많다.  

svn commit error : no matching lock-token available

svn commit 을 시도할때 아래 처럼 lock 에러가 떨어지면.. svn: E160037: Cannot verify lock on path '/dev/VDI/etas_uploader/pom.xml'; no matching lock-token available --force 옵션으로 unlock 을 해준후 다시 commit 할수 있다. svn unlock --force  file_name 

간만에 책읽는 지호....

이미지
아직 책읽기가 어려운 지호... 그래서 잘읽지않는다 오늘은 책을 읽는데 허리께가묵직하여돌아보니 지호가 나를 베게삼아누워 제법오래 책을본다. 신기할것도 없는일상이지만 지호이기에 신기하다.

영어표현

Did you want to see me? 저를 찾으셨습니까?

sqldeveloper 리눅스 한글 깨짐

sqldeveloper 를 리눅스에 설치하여 실행하면 사각형 모양으로 한글이 깨진다. 아래 링크를참조하여 java 한글 폰트를설치 해주자.... http://blog.naver.com/dohan71/110069878905

Discover Hadoop: How to overcome on Java Heap Space Error in Hadoop...

Discover Hadoop: How to overcome on Java Heap Space Error in Hadoop... : mapred.map.child.java.opts // heap size for map tasks mapred.reduce.child.java.opts // heap size for reduce tasks Configuration conf = ne... MapReduce 기동시 java heap size 조절하기

mint, debian, ubuntu 한글 입력기 설치 ibus

apt install ibus-hangul  참조 : http://blog.daum.net/bagjunggyu/3

iptable setting - 설정방법

iptables -A OUTPUT/INPUT -d 192.166.119.12 -j DROP iptables -F       // 설정 제거 iptables -L       // 설정 확인

TortoiseSVN Lock 기능 추가

(Linux 사용시 ) ~/subversion/config 파일에 아래 항목 추가 수정  (Window 사용시) C:\Users\USER_ID\AppData\Roaming\Subversion\config 파일에 아래 항목 추가 수정 [miscellany] enable-auto-props = yes [auto-props] * = svn:needs-lock=yes

Svn 주석 필수로만들기

subversion comment 를 강제 하는 방법 (Repository 설정 변경) cd ~Repository/hooks/ cp pre-commit.tmpl pre-commit chmod 755 pre-commit pre-commit 파일 수정 ? 1 2 3 4 5 6 7 8 9 10 11 12 13 #!/bin/sh REPOS= "$1" TXN= "$2" SVNLOOK= /usr/bin/svnlook LOGMSG=$($SVNLOOK log -t "$TXN" "$REPOS" | grep [a-zA-Z0-9] | wc -c) if [ "$LOGMSG" -lt 5 ]; then /bin/echo -n "(Empty commit log) & (length(log) < 5) is NOT ALLOWED" 1>&2 exit 1 fi exit 0 comment 를 강제 하면 약간은 불편해도 이력관리에 도움이 된다.    꼭 하자.... 참고 사이트    http://junghun.com/xe/index.php?document_srl=5069&vid=textyle&mid=textyle

ubuntu, debian - install oracle jdk instead of openjdk

1) download oracle jdk from java.oracle.co      32bit: jdk-6u45-linux-x32.bin      64bit: jdk-6u45-linux-x64.bin 2) extract tar.gz file to WHERE_TO_INSTALL (just run the XXXX.bin file)     In my case, I extracted it to /usr/local/jdk1.6.0_45 3) make soft link "java" to /usr/local/jdk1.6.0_45     sudo ln -s /usr/local/jdk1.6.0_45/  /usr/local/java 4) change default jdk sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/bin/java" 1 sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/bin/javac" 1 sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/java/bin/javaws" 1 sudo update-alternatives --config java  ==> select just installed java path sudo update-alternatives --config javac  ==> select just installed javac path sudo update-alternatives --config javaws  ==> select just installed ja

mount window host os directory on virtualbox guest linux os

add below command into /etc/rc.local mount -t vboxsf D_DRIVE /home/skeom21/share

우분투 cx_Oracle 설치

우분투 cx_Oracle 설치 cx_Oracle 을 설치 하기위해서는 Python.h 헤더 파일이 필요하다. python-dev  패키지를 설치 하면 된다. 1) sudo apt-get install python-dev 2) Python installer 설치 sudo apt-get install python-setuptools 3)sudo -E easy_install cx_Oracle -E 옵션을 주지 않으면 ORACLE_HOME 같은 환경 변수가 설치 쉘로 전달되지 않는다. cx_Oracle 사용법  방법1)tns 접속 … connection = cx_Oracle.connect(user,password,tns)          <-tns ervice="" p="" tnsname=""> cursor=connection.cursor() … 방법2)direct 접속 … dsn=cx_Oracle.makedsn(host,port,sid) connection = cx_Oracle.connect(user,password,dsn) cursor=connection.cursor() 만일 아래와 같은 에러가 떨어지면..... ImportError: libaio.so.1: cannot open shared object file: No such file or directory sudo   apt-get  install   -y libaio-dev libaio-dev 을 설치 해주면 됨  [출처]   [cx_Oracle]Oracle 접속하기 | 작성자   돌

ubuntu/debian Oracle instant Client 설치

우분투 Oracle Client 설치 Oracle Instant Client 설치 http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html 오라클 사이트에서 Instant Client 를 다운 받는다. oracle-instantclient-basic-10.2.0.3-1.i386.rpm oracle-instantclient-devel-10.2.0.3-1.i386.rpm oracle-instantclient-jdbc-10.2.0.3-1.i386.rpm oracle-instantclient-sqlplus-10.2.0.3-1.i386.rpm 이렇게 네개를 다운 받았음. root@ubuntu:/usr/local/src#  alien -k oracle-instantclient-basic-10.2.0.3-1.i386.rpm root@ubuntu:/usr/local/src#  alien -k oracle-instantclient-devel-10.2.0.3-1.i386.rpm root@ubuntu:/usr/local/src#  alien -k oracle-instantclient-jdbc-10.2.0.3-1.i386.rpm root@ubuntu:/usr/local/src#  alien -k oracle-instantclient-sqlplus-10.2.0.3-1.i386.rpm root@ubuntu:/usr/local/src#  dpkg -i oracle-instantclient-basic_10.2.0.3-1_i386.deb root@ubuntu:/usr/local/src#  dpkg -i oracle-instantclient-devel_10.2.0.3-1_i386.deb root@ubuntu:/usr/local/src#  dpkg -i oracle-instantclient-jdbc_10.2.0.3-1_i

install python hdfs API library - libpyhdfs

** install libpyhdfs $ sudo apt-get install libhdfs4-dev $ svn co http://libpyhdfs.googlecode.com/svn/branches/bundle/ libpyhdfs $ cd libpyhdfs/lib $ wget http://libpyhdfs.googlecode.com/files/commons-logging-1.0.4.jar $ wget http://libpyhdfs.googlecode.com/files/hadoop-0.20.1-core.jar $ wget http://libpyhdfs.googlecode.com/files/libhdfs.so.0 ==> you need to copy your own installed hadoop lib. In my case, I copyed /usr/local/hadoop-1.0.4/c++/Linux-amd64-64/lib/libhdfs.so.0 to libpyhdfs/lib $ ln -s libhdfs.so.0 libhdfs.so $ cd .. # python setup.py install --prefix="/usr/local" If you see the following error: /usr/lib/jvm/java-6-sun/include/jni.h:27:20: error: jni_md.h: No such file or directory Edit /usr/lib/jvm/java-6-sun/include/jni.h change - 27 #include "jni_md.h" into + 27 #include "linux/jni_md.h" ** Run test script $ cd test $ python pyhdfs_test.py If you see the following error: ImportError:libhdfs.so

maven test skip 방법

pom.xml 파일에 아래 내용을 추가 한다. <properties> <maven.test.skip>true</maven.test.skip> </properties>

sqoop insert vs update

sqoop 을 이용하여 RDBMS 로 export 시 duplicate error 가 발생할 경우가 있다. --update-key {key}  --update-mode allowinsert   이 옵션을 사용하면 {key}에 해당하는 레코드가 존재하면 update 를 진행하고 존재하지 않으면 insert 를 진행한다. --update-mode 를 updateonly 로 설정하면 insert 는 진행하지 않는다. sqoop export \ --connect jdbc:mysql://airawat-mysqlserver-node/employees \ --username  myUID  \ --password  myPWD  \ --table employees_export  \ --update-key emp_no \ --update-mode allowinsert \ --export-dir /user/airawat/sqoop-mysql/Employees 자세한것은 http://hadooped.blogspot.kr/2013/06/apache-sqoop-part-3-data-transfer.html 여기 참조

Selenium server 사용법

1)firefox selenium IDE 를 이용하여 실행 스크립트를 export 받는다. 2)selenium 사이트에서 server 를 다운받아 특정 위치에 풀어 놓는다 3)selenium server 실행 java -jar selenium-server-standalone-2.33.0.jar -role hub 4)selenium node 실행 java -jar selenium-server-standalone-2.33.0.jar  -role node -hub http://localhost:4444/grid/register 5)export 받은 실행 스크립트 실행 python export_script.py https://code.google.com/p/selenium/wiki/Grid2   여기 참조

Warning: $HADOOP_HOME is deprecated

"Warning: $HADOOP_HOME is deprecated" hadoop 실행시 위와 같은 경고가 발생하면 hadoop-env.sh 에 아래 코드 추가. export HADOOP_HOME_WARN_SUPPRESS=true

SIOCSIFADDR: No such device eth0 VirtualBox

SIOCSIFADDR: No such device eth0 VirtualBox Virtualbox 에서 우분투 혹은 데비안 VM 을 복제 하거나 이동할시 가끔 네트워크 인식을 못할경우가 있다  아래 파일을 삭제 하면 잘된다. /etc/udev/rules.d/70_persistent-net.rules refer to velow Link http://blog.schoash.com/2010/06/09/siocsifaddr-no-such-device-eth0-virtualbox/