Maven Project 생성 pom.xml 설정 4.0.0 com.jw.storm hellostorm 0.0.1-SNAPSHOT jar hellostorm http://maven.apache.org UTF-8 junit junit 3.8.1 test org.apache.storm storm-core 0.9.3 maven-assembly-plugin 2.2.1 jar-with-dependencies make-assembly package single 구조 Spout에서 Bolt로 "hello storm"이라는 메시지를 전송한다. 실제 클러스터 환경에서는 spout은 외부로부터 데이터를 받아서 가공 후 bolt로 전송해 주는 식으로 적용될 것이다. 여기서 spout과 bolt를 연결해 주는 Topology..
Apache Proxy는 mod_proxy를 활용하여 mod_jk와 유사한 기능을 활용할 수 있다. Apache 2.2.X 버전부터 기본적으로 포함하고 있어 mod_jk 처럼 별도로 so를 추가하거나 하는 작업이 필요하지 않는 편리함이 있다. [Sample] ServerAdmin admin@local-umon.nhncorp.com DocumentRoot "C:/dev/workspace/umon/umon" ServerName local-umon.nhncorp.com ErrorLog C:/dev/logs/umon-error-log CustomLog C:/dev/logs/umon-access-log common Options FollowSymLinks AllowOverride All Order allow,de..
ReentrantLock 은 자바5.0 에서 추가됬으며 암묵적인 락으로 할 수 없는 고급 기능을 가지고 있다. 13.1 Lock 과 ReentrantLock- Lock 인터페이스는 조건없는 락, 폴링 락, 타임아웃이 있는 락, 락 확보 대기상태에 인터럽트를 걸 수 있는 기능을 가진다.- 모든 작업이 명시적이다.public interface Lock { void lock(); void lockInterruptibly() throws InterruptedException(); boolean tryLock(); boolean tryLock( long timeout, TimeUnit unit() throws InterruptedException(); void unlock(); Condition newCondit..
Executor을 이용한 Thread관리 Executor관련 주요 API class diagram Executor interface package : java.util.concurrent.Executor Executor는 굉장히 단순한 인터페이스로 보이지만 아주 다양한 여러 가지 종류의 작업 실행 정책을 지원하는 유연하면서도 강력한 비동기적 작업 실행 프레임워크의 근간을 이루는 인터페이스입니다. Executor는 작업등록(task submission) ,작업실행(task Execution)을 분리하는 표준적인 방법이며, 각 작업은 Runnable의 형태로 정의합니다. Executor인터페이스를 구현한 클래스는 작업의 라이프 사이클을 관리하는 기능도 갖고 있고, 몇가지 통계값을 뽑아내거나 애플리케이션에서 ..
- Total
- Today
- Yesterday
- PYTHON
- 데이터 리터러시
- 책요약
- spark
- bigdata
- mongodb
- Learning Spark
- Oracle
- Sqoop
- json
- Apache Spark
- linux
- java
- jenkins2.0
- exception
- db
- mongo
- mysql
- HADOOP
- Hdfs
- spring
- 확률분포
- Django
- flume
- 데이터과학자
- jackson
- Git
- jenkins
- 알고리즘
- 태그를 입력해 주세요.
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |