Author Archives: apollo89

About apollo89

아폴로89 입니다.

mysql DB별 또는 Table별 사용량(Size) 확인

  mysql DB별 또는 Table별 사용량(Size) 확인 1. Database 별 사이즈 확인 (쿼리 시점에 정확한 사이즈는 아니지만, 참고할 만한 데이터임) SELECT count(*) NUM_OF_TABLE, table_schema,concat(round(sum(table_rows)/1000000,2),’M’) rows, concat(round(sum(data_length)/(1024*1024*1024),2),’G’) DATA, concat(round(sum(index_length)/(1024*1024*1024),2),’G’) idx, concat(round(sum(data_length+index_length)/(1024*1024*1024),2),’G’) total_size, round(sum(index_length)/sum(data_length),2) idxfrac FROM information_schema.TABLES GROUP BY table_schema ORDER BY … Continue reading

Posted in Database | Tagged , , | Leave a comment

mysql replication 구성

  mysql replication 구성 1. mysql rpm 설치 mysql 홈페이지에서 최신버전 다운로드 http://www.mysql.com/downloads/mysql/ MySQL Community Server 5.5.20 – Linux – Generic 우리가 필요한 Client Utilities와 MySQL Server를 받는다. (MySQL-client-5.5.20-1.linux2.6.x86_64.rpm, MySQL-server-5.5.20-1.linux2.6.x86_64.rpm) Master에 Mysql rpm으로 설치 Master]# rpm -ivh MySQL-server-5.5.20-1.linux2.6.x86_64.rpm Preparing… ########################################### … Continue reading

Posted in Database | Tagged , , | 2 Comments

mysql의 grant를 이용해 사용자 추가하기

  mysql의 사용자를 추가하기 위해서 mysql db의 user table에 insert를 하곤했다. 하지만 이 방법은 insert 구문을 작성하는 게 여간 번거로운게 아니다.. 특히 Y를 몇개 했는지 자꾸 세어보게 되는…ㅡㅡ; 그럴때는 아래와 같이 grant 문을 사용해서 하면 편하다. mysql> grant all privileges … Continue reading

Posted in Database | Tagged , , | Leave a comment

Javascript Visualization Library

  Javascript Visualization Library 참고.. 16 Javascript Libraries for Visualizations : http://datavisualization.ch/tools/13-javascript-libraries-for-visualizations/ Choice Free JavaScript Data Visualization Library : http://kraskniga.blogspot.kr/2012/05/choice-free-javascript-data.html 20 Fresh JavaScript Data Visualization Libraries : http://sixrevisions.com/javascript/20-fresh-javascript-data-visualization-libraries/ Dojo GFX : http://dojotoolkit.org/features/graphics-and-charting gRaphael : http://g.raphaeljs.com/ Google Chart Tools : https://google-developers.appspot.com/chart/interactive/docs/index … Continue reading

Posted in Bigdata/Hadoop, Javascript/Html | Tagged , , | Leave a comment

읽어볼 기사들..

  요즘 빅데이터/분석/보안 관련된 기사 또는 자료들이 엄청나게 쏟아져 나온다.. 요즘 회사도 바뻐서 못쫒아갈 판이다.(사실은 핑계다) 그래도 나중에라도 읽어보려면 링크라도 정리… [IT수다]우리에게 필요한 건 ‘빅데이터 플랫폼’ – http://deepers.net/archives/1792 “빅데이터 분석, 솔루션만 내려받으면 끝” – http://www.bloter.net/archives/135677 빅데이터- 리눅스 열풍과 닮았다? – … Continue reading

Posted in Scrap | Tagged | Leave a comment

열정이란 무엇이가에 대한 내생각..

주제 : 열정이란 무엇이지? URL : http://javacan.tistory.com/232 1. 기억에 남는 문구 / 질문 열정이란 단순히 좋아하는 것 이상을 요구하는 것 같다. 2. 요약 열정이란 인내와 꾸준함을 특징으로 가진다. 필자는 열정이란 무언가를 해 낼때까지 계속해서 시도하는 것으로 정의하고, 그러기 위해서는 인내와 … Continue reading

Posted in Etc | Tagged , | Leave a comment

hadoop-장애(Name node is in safe mode.)

  회사에 정전이 일어났다. hadoop 개발 장비가 모두 꺼졌다.. 재부팅을 하고 hadoop namenode 를 구동하니 아래와 같은 에러 발생… 2013-01-03 08:30:29,803 INFO org.apache.hadoop.mapred.JobTracker: problem cleaning system directory: hdfs://namenode:9000/data1/hadoop/filesystem/mapreduce/system org.apache.hadoop.ipc.RemoteException: org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot delete /data1/hadoop/filesystem/mapreduce/system. Name node is in safe mode. The … Continue reading

Posted in Bigdata/Hadoop | Tagged , , , | Leave a comment

아이폰 앱 해킹그룹 해큘러스 해체와 내생각…

  주제 : 아이폰 앱 해킹그룹 해큘러스 해체 URL : http://www.bloter.net/archives/139385 1. 기억에 남는 문구 / 질문 pass 2. 요약 아이폰 사용자가 탈옥을 하는 주된 이유는 1. 세세한 설정 2. 앱 다운로드(cydia) 해큘러스가 해체된 이유는 ‘유지가 어렵게 됐다’(difficult to keep)는 … Continue reading

Posted in Etc, Security/Hacking | Tagged | Leave a comment

GitHub(깃허브)와 프로그래밍의 민주화와 내생각…

  주제 : GitHub(깃허브)와 프로그래밍의 민주화 URL : http://www.looah.com/article/view/866 1. 기억에 남는 문구 / 질문 / 생각 프로그래밍이 민주화되고 있다 CVS와 SVN은 중앙집중형 버전 컨트롤 시스템으로, 중앙 서버 없이는 아무 것도 할 수 없다 Git은 다르다. 이것은 분산형 버전 컨트롤 … Continue reading

Posted in Etc, SCM/ITS | Tagged , , | Leave a comment

나니아 나라 이야기

  [구매하기] 나니아 나라 이야기 (7권) 을 모두 읽었다. CS루이스는 정말 천재인 것 같다. 표현력이며, 상상력이며, 가치관이며, 전체적인 짜임세까지 완벽한 것 같다. 아이들을 위한 동화이지만, 어른이 읽기에도 너무 재미있고 가슴이 두근거린다. 예전에 영화로 보면서 장면장면으로 기억하고 알고 있던 이야기들이 책을 … Continue reading

Posted in Reading | Tagged , , , , | 1 Comment