리눅스 ssh-kygen 서버 비밀번호 접속 명령어
System Management2016. 9. 10. 00:08리눅스 ssh-kygen 서버 비밀번호 접속 명령어

mkdir ~/.ssh ssh-keygen -t rsa -P "" cp /home/stat/.ssh/id_rsa.pub /home/stat/.ssh/authorized_keys chmod 755 ~/.ssh chmod 644 ~/.ssh/authorized_keys sudo /etc/init.d/ssh restart ssh localhost

Hadoop yarn 모드에서 spark-submit 실행 시 발생 장애 처리
Big Data2016. 5. 20. 09:24Hadoop yarn 모드에서 spark-submit 실행 시 발생 장애 처리

SparkConf sparkConf = new SparkConf(); sparkConf.setAppName(uid); sparkConf.setMaster("yarn"); sparkConf.set("spark.kryo.registrator", "org.kobic.shark.spark.model.SharkRegistrator"); sparkConf.set("spark.serializer", "org.apache.spark.serializer.KryoSerializer"); sparkConf.set("spark.kryo.registrationRequired", "true"); sparkConf.set("spark.executor.cores", config.get(Constants.SPARK_MAX_CORE))..

리눅스 파일 대용량 폴더 및 파일 추척 명령어
System Management2016. 2. 17. 10:57리눅스 파일 대용량 폴더 및 파일 추척 명령어

# 리눅스 명령어 중에서 현재 경로에 용량이 가장 큰 폴더나 파일을 출력할때 다음 명령어 사용 du -k /foldername | sort -n | tail -10 du -ckx | sort -n > /tmp/duck-root

BLAST Nr/Nt 데이터베이스에서 시퀀싱 서열로 변환 명령어
Bioinformatics2016. 2. 17. 10:56BLAST Nr/Nt 데이터베이스에서 시퀀싱 서열로 변환 명령어

BLAST NR 데이터베이스에서 FASTA 형태의 Sequences 데이터를 추출할때 다음과 같은 명령어를 이용한다. 명령어 예제). blastdbcmd \ -db est \ -dbtype nr \ -entry_batch myContigList.txt \ -outfmt %f \ -out myHitContigs.fasta

MySQL 5.7.9 릴리즈 변화된 root 비밀번호 변경하기
Database2015. 11. 18. 21:32MySQL 5.7.9 릴리즈 변화된 root 비밀번호 변경하기

Mac 환경에서 MySQL 5.7.9 버젼 설치 후 root 접속 시도 시 패스워드 장애로 MySQL 접속이 불가능하다. sudo /usr/local/mysql/support-files/mysql.server stop sudo mysqld_safe --skip-grant-tables mysql -u root update mysql.user set password=password('2261bbs') where user='root'; 콘솔 윈도우에서 mysqld_safe 실행으로 safe 모드로 MySQL 데몬을 구동하고 다른 콘솔 윈도우를 띄어 MySQL에 접속한다. mysql -u root 접속 후 다음 명령어로 root 비밀번호를 업데이트한다. [5.7 이전 버젼] update mysql.user se..

Spring Framework 프로젝트에서 cvc-complex-type-3.2.2: Attribute 'local' is not allowed to appear in element 'ref' 에러 처리 방법
Devel/WEB2015. 9. 23. 14:27Spring Framework 프로젝트에서 cvc-complex-type-3.2.2: Attribute 'local' is not allowed to appear in element 'ref' 에러 처리 방법

eclipse 에서 스프링 프레임워크 적용해 프로젝트를 진행 시 아래와 같은 장애 발생한다. cvc-complex-type-3.2.2: Attribute 'local' is not allowed to appear in element 'ref' 스프링 4.0 부터는 spring-beans.xsd 에서 local을 지원하지 않기에 스프링 프레임워크 4.0버젼 이하의 프로젝트 일 경우 아래와 같이 bean 설정을 수정한다.

리눅스 실시간 콘솔 출력 결과 파일 저장 명령어
System Management2015. 6. 28. 17:23리눅스 실시간 콘솔 출력 결과 파일 저장 명령어

# -n 옵션은 top 실행 후 몇 주기를 반복할 것인지를 설정하는 옵션 iotop -n 1 > top-output.txt # 서식으로 출력하기 위해서는 다음과 같이 배치모드 옵션 사용 iotop --only -1 -b > output.txt

CentOS 리눅스 iotop 소스 설치
System Management2015. 6. 28. 00:36CentOS 리눅스 iotop 소스 설치

# iotop 최신 버전을 아래의 주소에서 다운 iotop: http://guichaz.free.fr/iotop/ # 소스 버젼을 다운 iotop-0.6.tar.gz. # 압축 파일 해제 tar zxfv iotop-0.6.tar.gz # python2.4 버젼보다 상위 버젼에서 다음과 같은 명령어로 설치 ./setup.py install # 설치 후 sbin/iotop 파일을 아랭의 경로에 저장 cp -r iotop-0.6/sbin/iotop /usr/local/sbin

image