사전 준비 사항

* SenchaCmd-6.5.3.6-windows-64bit

* ext-6.5.3-trial.zip


1. sencha cmd를 통해 프로젝트 생성 명령을 실행합니다.

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
> sencha -sdk C:\ext-6.5.3-trial\ext-6.5.3 generate app pdm_ui C:\Users\Admin\
Documents\Sencha\test
Sencha Cmd v6.5.3.6
[INF] Copying framework to C:\Users\Admin\Documents\Sencha\test\ext
[INF] Processing Build Descriptor : classic (development environment)
[INF] Loading compiler context
[INF] Loading app json manifest...
[INF] Appending content to C:\Users\Admin\Documents\Sencha\test\bootstrap.js
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\classic.json
[INF] merging 243 input resources into C:\Users\Admin\Documents\Sencha\test\build\development\pdm_ui\classic\resources
[INF] merged 243 resources into C:\Users\Admin\Documents\Sencha\test\build\development\pdm_ui\classic\resources
[INF] merging 22 input resources into C:\Users\Admin\Documents\Sencha\test\build\development\pdm_ui
[INF] merged 22 resources into C:\Users\Admin\Documents\Sencha\test\build\development\pdm_ui
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\slicer-temp\bootstrap.json
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\slicer-temp\bootstrap.js
[INF] writing sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] appending sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] appending sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] writing sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\sass\config.rb
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\development\pdm_ui\classic.json
[LOG] Fashion build starting for C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\sass\pdm_ui-all.scss
[LOG] Fashion build complete for C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\sass\pdm_ui-all.scss
[LOG] Fashion build completed in 2.29 sec.
[INF] Appending content to C:\Users\Admin\Documents\Sencha\test\bootstrap.js
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\classic.json
[INF]
[INF] ======================================================================
[INF]
[INF] Processing Build Descriptor : modern (development environment)
[INF] Loading compiler context
[INF] Loading app json manifest...
[INF] Appending content to C:\Users\Admin\Documents\Sencha\test\bootstrap.js
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\modern.json
[INF] merging 381 input resources into C:\Users\Admin\Documents\Sencha\test\build\development\pdm_ui\modern\resources
[INF] merged 381 resources into C:\Users\Admin\Documents\Sencha\test\build\development\pdm_ui\modern\resources
[INF] merging 12 input resources into C:\Users\Admin\Documents\Sencha\test\build\development\pdm_ui
[INF] merged 1 resources into C:\Users\Admin\Documents\Sencha\test\build\development\pdm_ui
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\slicer-temp\bootstrap.json
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\slicer-temp\bootstrap.js
[INF] writing sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] appending sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] appending sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\development\pdm_ui\modern.json
[LOG] Fashion build starting for C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\sass\pdm_ui-all.scss
[LOG] Fashion build complete for C:\Users\Admin\Documents\Sencha\test\build\temp\development\pdm_ui\sass\pdm_ui-all.scss
[LOG] Fashion build completed in 2.035 sec.
[INF] Appending content to C:\Users\Admin\Documents\Sencha\test\bootstrap.js
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\modern.json
 
cs



2. 생성된 프로젝트 경로의 app.js 파일이 위치한 곳에서 다음과 같이 빌드 명령을 실행합니다.

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
> sencha app build production
Sencha Cmd v6.5.3.6
[INF] Processing Build Descriptor : classic (production environment)
[INF] Loading compiler context
[INF] Loading app json manifest...
[INF] Processing data with CmdJavascriptCompressor
[INF] JavaScript input level is NEXT and output level is ES5
[INF] Writing concatenated output to file C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\classic\app.js
[INF] merging 243 input resources into C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\classic\resources
[INF] merged 243 resources into C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\classic\resources
[INF] merging 22 input resources into C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui
[INF] merged 22 resources into C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\slicer-temp\bootstrap.json
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\slicer-temp\bootstrap.js
[INF] writing sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\slicer-temp\pdm_ui-example.scss.tmp
[INF] writing sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\slicer-temp\config.rb
[LOG] Fashion build starting for C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\slicer-temp\pdm_ui-example.scss
[LOG] Fashion build complete for C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\slicer-temp\pdm_ui-example.scss
[LOG] Fashion build completed in 2.086 sec.
[INF] Capturing theme image
[INF] Capture complete
[INF] Slicing images...
[INF] Slicing complete - generated 202 images
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\slicer-temp\bootstrap.json
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\slicer-temp\bootstrap.js
[INF] writing sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] appending sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] appending sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] writing sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\sass\config.rb
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\classic.json
[LOG] Fashion build starting for C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\sass\pdm_ui-all.scss
[LOG] Fashion build complete for C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\sass\pdm_ui-all.scss
[LOG] Fashion build completed in 1.957 sec.
[INF] Copying page resources to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui
[INF] Applying version stamps to json resource entries
[INF] Generating file deltas to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\classic\deltas
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\classic.json
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\microloader.js
[INF] Appending content to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\microloader.js
[INF] JavaScript input level is NEXT and output level is ES5
[INF] Building output markup to C:\Users\Admin\Documents\Sencha\test/build/production/pdm_ui/index.html
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\index.html
[INF] generating cache manifest to C:\Users\Admin\Documents\Sencha\test/build/production/pdm_ui/cache.appcache
[INF]
[INF] ======================================================================
[INF]
[INF] Processing Build Descriptor : modern (production environment)
[INF] Loading compiler context
[INF] Loading app json manifest...
[INF] Processing data with CmdJavascriptCompressor
[INF] JavaScript input level is NEXT and output level is ES5
[INF] Writing concatenated output to file C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\modern\app.js
[INF] merging 381 input resources into C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\modern\resources
[INF] merged 381 resources into C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\modern\resources
[INF] merging 12 input resources into C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui
[INF] merged 1 resources into C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\slicer-temp\bootstrap.json
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\slicer-temp\bootstrap.js
[INF] writing sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] appending sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] appending sass content to C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\sass\pdm_ui-all.scss.tmp
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\modern.json
[LOG] Fashion build starting for C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\sass\pdm_ui-all.scss
[LOG] Fashion build complete for C:\Users\Admin\Documents\Sencha\test\build\temp\production\pdm_ui\sass\pdm_ui-all.scss
[LOG] Fashion build completed in 1.7 sec.
[WRN] C1005: Closure Compiler Warning (Unnecessary escape: '\s' is equivalent to just 's') -- unknown-uri:4789:102
[INF] Copying page resources to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui
[INF] Applying version stamps to json resource entries
[INF] Generating file deltas to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\modern\deltas
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\modern.json
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\microloader.js
[INF] Appending content to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\microloader.js
[INF] JavaScript input level is NEXT and output level is ES5
[INF] Building output markup to C:\Users\Admin\Documents\Sencha\test/build/production/pdm_ui/index.html
[INF] Writing content to C:\Users\Admin\Documents\Sencha\test\build\production\pdm_ui\index.html
[INF] generating cache manifest to C:\Users\Admin\Documents\Sencha\test/build/production/pdm_ui/cache.appcache
 
cs



'Tools > Sencha' 카테고리의 다른 글

Sencha Architecture 단축키  (0) 2018.05.03
sencha 4.2.3 설치  (2) 2018.04.18


1. 해당 파일을 실행



2.



3.



4.



5.



6.



7.



8.



9.



10.



11.



12.



13.



14.



15.



16.



'Tools > Sencha' 카테고리의 다른 글

Sencha Architecture 단축키  (0) 2018.05.03
sencha cmd project 생성 및 빌드  (0) 2018.04.20


다음과 같은 에러 발생 시

1
2
3
$ psql -d hive -U test < pgdata.sql
psql: FATAL:  Peer authentication failed for user "test"
 
cs



pg_hba.conf 설정 파일을 변경해야 합니다.

환경마다 postgresql 경로가 다를 수 있으므로

1
2
# find / -name "pg_hba.conf"
 
cs


위와 같이 해당 파일을 검색하여 vi 편집기로 다음과 같이 첨삭하여 저장 및 종료합니다.

1
2
3
4
5
6
# local      DATABASE  USER  METHOD  [OPTIONS]
# host       DATABASE  USER  ADDRESS  METHOD  [OPTIONS]
# hostssl    DATABASE  USER  ADDRESS  METHOD  [OPTIONS]
# hostnossl  DATABASE  USER  ADDRESS  METHOD  [OPTIONS]
host    hive    test     0.0.0.0/0       md5
 
cs




1. iSCSI 초기자를 검색합니다.



2.



3.



4.



5.



6.



7.



8.



9.



10.



11.



12.



13.



14.



15.




storm 0.9.6의 ui 서비스 실행 중에 다음과 같은 에러 발생 시

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$ ./bin/storm ui &
[1] 7306
Running: /usr/lib/jvm/java-8-oracle/bin/java -server -Dstorm.options= -Dstorm.home=/usr/local/apache-storm-0.9.6 -Dstorm.log.dir=/usr/local/apache-storm-0.9.6/logs -Djava.library.path=/usr/local/lib:/opt/local/lib:/usr/lib -Dstorm.conf.file= -cp /usr/local/apache-storm-0.9.6/lib/clj-time-0.4.1.jar:/usr/local/apache-storm-0.9.6/lib/tools.cli-0.2.4.jar:/usr/local/apache-storm-0.9.6/lib/commons-lang-2.5.jar:/usr/local/apache-storm-0.9.6/lib/tools.macro-0.1.0.jar:/usr/local/apache-storm-0.9.6/lib/joda-time-2.0.jar:/usr/local/apache-storm-0.9.6/lib/tools.logging-0.2.3.jar:/usr/local/apache-storm-0.9.6/lib/objenesis-1.2.jar:/usr/local/apache-storm-0.9.6/lib/commons-exec-1.1.jar:/usr/local/apache-storm-0.9.6/lib/ring-core-1.1.5.jar:/usr/local/apache-storm-0.9.6/lib/jetty-util-6.1.26.jar:/usr/local/apache-storm-0.9.6/lib/chill-java-0.3.5.jar:/usr/local/apache-storm-0.9.6/lib/json-simple-1.1.jar:/usr/local/apache-storm-0.9.6/lib/jgrapht-core-0.9.0.jar:/usr/local/apache-storm-0.9.6/lib/log4j-over-slf4j-1.6.6.jar:/usr/local/apache-storm-0.9.6/lib/logback-classic-1.0.13.jar:/usr/local/apache-storm-0.9.6/lib/ring-devel-0.3.11.jar:/usr/local/apache-storm-0.9.6/lib/logback-core-1.0.13.jar:/usr/local/apache-storm-0.9.6/lib/commons-logging-1.1.3.jar:/usr/local/apache-storm-0.9.6/lib/disruptor-2.10.4.jar:/usr/local/apache-storm-0.9.6/lib/compojure-1.1.3.jar:/usr/local/apache-storm-0.9.6/lib/asm-4.0.jar:/usr/local/apache-storm-0.9.6/lib/math.numeric-tower-0.0.1.jar:/usr/local/apache-storm-0.9.6/lib/commons-io-2.4.jar:/usr/local/apache-storm-0.9.6/lib/carbonite-1.4.0.jar:/usr/local/apache-storm-0.9.6/lib/core.incubator-0.1.0.jar:/usr/local/apache-storm-0.9.6/lib/reflectasm-1.07-shaded.jar:/usr/local/apache-storm-0.9.6/lib/snakeyaml-1.11.jar:/usr/local/apache-storm-0.9.6/lib/commons-codec-1.6.jar:/usr/local/apache-storm-0.9.6/lib/minlog-1.2.jar:/usr/local/apache-storm-0.9.6/lib/commons-fileupload-1.2.1.jar:/usr/local/apache-storm-0.9.6/lib/hiccup-0.3.6.jar:/usr/local/apache-storm-0.9.6/lib/ring-servlet-0.3.11.jar:/usr/local/apache-storm-0.9.6/lib/clout-1.0.1.jar:/usr/local/apache-storm-0.9.6/lib/ring-jetty-adapter-0.3.11.jar:/usr/local/apache-storm-0.9.6/lib/servlet-api-2.5.jar:/usr/local/apache-storm-0.9.6/lib/storm-core-0.9.6.jar:/usr/local/apache-storm-0.9.6/lib/jetty-6.1.26.jar:/usr/local/apache-storm-0.9.6/lib/jline-2.11.jar:/usr/local/apache-storm-0.9.6/lib/slf4j-api-1.7.5.jar:/usr/local/apache-storm-0.9.6/lib/kryo-2.21.jar:/usr/local/apache-storm-0.9.6/lib/clj-stacktrace-0.2.2.jar:/usr/local/apache-storm-0.9.6/lib/clojure-1.5.1.jar:/usr/local/apache-storm-0.9.6:/usr/local/apache-storm-0.9.6/conf -Xmx768m -Dlogfile.name=ui.log -Dlogback.configurationFile=/usr/local/apache-storm-0.9.6/logback/cluster.xml backtype.storm.ui.core
Exception in thread "main" java.net.BindException: Address already in use (Bind failed)
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
        at java.net.ServerSocket.bind(ServerSocket.java:375)
        at java.net.ServerSocket.<init>(ServerSocket.java:237)
        at java.net.ServerSocket.<init>(ServerSocket.java:181)
        at org.mortbay.jetty.bio.SocketConnector.newServerSocket(SocketConnector.java:80)
        at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.java:73)
        at org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:283)
        at org.mortbay.jetty.bio.SocketConnector.doStart(SocketConnector.java:147)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.Server.doStart(Server.java:235)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at ring.adapter.jetty$run_jetty.invoke(jetty.clj:65)
        at backtype.storm.ui.core$start_server_BANG_.invoke(core.clj:920)
        at backtype.storm.ui.core$_main.invoke(core.clj:923)
        at clojure.lang.AFn.applyToHelper(AFn.java:159)
        at clojure.lang.AFn.applyTo(AFn.java:151)
        at backtype.storm.ui.core.main(Unknown Source)
 
cs



default ui 포트가 사용 중이므로 발생할 가능성이 높으므로 storm 홈 디렉터리 이하 conf 디렉터리에서 storm.yaml 파일을 편집 후 재실행합니다.

ui 포트의 기본값은 8080입니다.


1. storm.yaml 편집

1
2
$ vi ./conf/storm.yaml
 
cs



2. storm.yaml의 하단에 다음의 내용을 추가 후 저장 및 종료합니다.

1
2
ui.port: 8087
 
cs



3. ui 서비스 실행

1
2
3
4
$ ./bin/storm ui &
[2] 7600
Running: /usr/lib/jvm/java-8-oracle/bin/java -server -Dstorm.options= -Dstorm.home=/usr/local/apache-storm-0.9.6 -Dstorm.log.dir=/usr/local/apache-storm-0.9.6/logs -Djava.library.path=/usr/local/lib:/opt/local/lib:/usr/lib -Dstorm.conf.file= -cp /usr/local/apache-storm-0.9.6/lib/clj-time-0.4.1.jar:/usr/local/apache-storm-0.9.6/lib/tools.cli-0.2.4.jar:/usr/local/apache-storm-0.9.6/lib/commons-lang-2.5.jar:/usr/local/apache-storm-0.9.6/lib/tools.macro-0.1.0.jar:/usr/local/apache-storm-0.9.6/lib/joda-time-2.0.jar:/usr/local/apache-storm-0.9.6/lib/tools.logging-0.2.3.jar:/usr/local/apache-storm-0.9.6/lib/objenesis-1.2.jar:/usr/local/apache-storm-0.9.6/lib/commons-exec-1.1.jar:/usr/local/apache-storm-0.9.6/lib/ring-core-1.1.5.jar:/usr/local/apache-storm-0.9.6/lib/jetty-util-6.1.26.jar:/usr/local/apache-storm-0.9.6/lib/chill-java-0.3.5.jar:/usr/local/apache-storm-0.9.6/lib/json-simple-1.1.jar:/usr/local/apache-storm-0.9.6/lib/jgrapht-core-0.9.0.jar:/usr/local/apache-storm-0.9.6/lib/log4j-over-slf4j-1.6.6.jar:/usr/local/apache-storm-0.9.6/lib/logback-classic-1.0.13.jar:/usr/local/apache-storm-0.9.6/lib/ring-devel-0.3.11.jar:/usr/local/apache-storm-0.9.6/lib/logback-core-1.0.13.jar:/usr/local/apache-storm-0.9.6/lib/commons-logging-1.1.3.jar:/usr/local/apache-storm-0.9.6/lib/disruptor-2.10.4.jar:/usr/local/apache-storm-0.9.6/lib/compojure-1.1.3.jar:/usr/local/apache-storm-0.9.6/lib/asm-4.0.jar:/usr/local/apache-storm-0.9.6/lib/math.numeric-tower-0.0.1.jar:/usr/local/apache-storm-0.9.6/lib/commons-io-2.4.jar:/usr/local/apache-storm-0.9.6/lib/carbonite-1.4.0.jar:/usr/local/apache-storm-0.9.6/lib/core.incubator-0.1.0.jar:/usr/local/apache-storm-0.9.6/lib/reflectasm-1.07-shaded.jar:/usr/local/apache-storm-0.9.6/lib/snakeyaml-1.11.jar:/usr/local/apache-storm-0.9.6/lib/commons-codec-1.6.jar:/usr/local/apache-storm-0.9.6/lib/minlog-1.2.jar:/usr/local/apache-storm-0.9.6/lib/commons-fileupload-1.2.1.jar:/usr/local/apache-storm-0.9.6/lib/hiccup-0.3.6.jar:/usr/local/apache-storm-0.9.6/lib/ring-servlet-0.3.11.jar:/usr/local/apache-storm-0.9.6/lib/clout-1.0.1.jar:/usr/local/apache-storm-0.9.6/lib/ring-jetty-adapter-0.3.11.jar:/usr/local/apache-storm-0.9.6/lib/servlet-api-2.5.jar:/usr/local/apache-storm-0.9.6/lib/storm-core-0.9.6.jar:/usr/local/apache-storm-0.9.6/lib/jetty-6.1.26.jar:/usr/local/apache-storm-0.9.6/lib/jline-2.11.jar:/usr/local/apache-storm-0.9.6/lib/slf4j-api-1.7.5.jar:/usr/local/apache-storm-0.9.6/lib/kryo-2.21.jar:/usr/local/apache-storm-0.9.6/lib/clj-stacktrace-0.2.2.jar:/usr/local/apache-storm-0.9.6/lib/clojure-1.5.1.jar:/usr/local/apache-storm-0.9.6:/usr/local/apache-storm-0.9.6/conf -Xmx768m -Dlogfile.name=ui.log -Dlogback.configurationFile=/usr/local/apache-storm-0.9.6/logback/cluster.xml backtype.storm.ui.core
 
cs

* &는 백그라운드로 서비스를 실행하라는 의미입니다.



'Big Data Platform > Storm' 카테고리의 다른 글

Storm 0.9.6 설치 및 환경 구축  (0) 2018.03.19


* 사전 설치 요구 사항

 - zeromq

 - jzmq


1. wget을 통해 storm 압축 파일을 내려받습니다.

1
2
3
4
5
6
7
8
9
10
11
12
$ wget https://archive.apache.org/dist/storm/apache-storm-0.9.6/apache-storm-0.9.6.tar.gz
--2018-03-19 16:47:31--  https://archive.apache.org/dist/storm/apache-storm-0.9.6/apache-storm-0.9.6.tar.gz
Resolving archive.apache.org (archive.apache.org)... 163.172.17.199
Connecting to archive.apache.org (archive.apache.org)|163.172.17.199|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 21010966 (20M) [application/x-gzip]
Saving to: ‘apache-storm-0.9.6.tar.gz’
 
apache-storm-0.9.6.tar.gz     100%[==============================================>]  20.04M  1.36MB/s    in 19s
 
2018-03-19 16:47:51 (1.07 MB/s) - ‘apache-storm-0.9.6.tar.gz’ saved [21010966/21010966]
 
cs



2. 해당 압축 파일을 해제합니다.

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
$ tar -xvzf ./apache-storm-0.9.6.tar.gz
apache-storm-0.9.6/examples/storm-starter/storm-starter-topologies-0.9.6.jar
apache-storm-0.9.6/conf/storm.yaml
apache-storm-0.9.6/conf/storm_env.ini
apache-storm-0.9.6/RELEASE
apache-storm-0.9.6/logback/cluster.xml
apache-storm-0.9.6/LICENSE
apache-storm-0.9.6/NOTICE
apache-storm-0.9.6/README.markdown
apache-storm-0.9.6/DISCLAIMER
apache-storm-0.9.6/CHANGELOG.md
apache-storm-0.9.6/SECURITY.md
apache-storm-0.9.6/lib/storm-core-0.9.6.jar
apache-storm-0.9.6/lib/clojure-1.5.1.jar
apache-storm-0.9.6/lib/clj-time-0.4.1.jar
apache-storm-0.9.6/lib/joda-time-2.0.jar
apache-storm-0.9.6/lib/compojure-1.1.3.jar
apache-storm-0.9.6/lib/core.incubator-0.1.0.jar
apache-storm-0.9.6/lib/tools.macro-0.1.0.jar
apache-storm-0.9.6/lib/clout-1.0.1.jar
apache-storm-0.9.6/lib/ring-core-1.1.5.jar
apache-storm-0.9.6/lib/commons-codec-1.6.jar
apache-storm-0.9.6/lib/commons-io-2.4.jar
apache-storm-0.9.6/lib/commons-fileupload-1.2.1.jar
apache-storm-0.9.6/lib/servlet-api-2.5.jar
apache-storm-0.9.6/lib/hiccup-0.3.6.jar
apache-storm-0.9.6/lib/ring-devel-0.3.11.jar
apache-storm-0.9.6/lib/clj-stacktrace-0.2.2.jar
apache-storm-0.9.6/lib/ring-jetty-adapter-0.3.11.jar
apache-storm-0.9.6/lib/ring-servlet-0.3.11.jar
apache-storm-0.9.6/lib/jetty-6.1.26.jar
apache-storm-0.9.6/lib/jetty-util-6.1.26.jar
apache-storm-0.9.6/lib/tools.logging-0.2.3.jar
apache-storm-0.9.6/lib/math.numeric-tower-0.0.1.jar
apache-storm-0.9.6/lib/tools.cli-0.2.4.jar
apache-storm-0.9.6/lib/commons-exec-1.1.jar
apache-storm-0.9.6/lib/commons-lang-2.5.jar
apache-storm-0.9.6/lib/json-simple-1.1.jar
apache-storm-0.9.6/lib/carbonite-1.4.0.jar
apache-storm-0.9.6/lib/kryo-2.21.jar
apache-storm-0.9.6/lib/reflectasm-1.07-shaded.jar
apache-storm-0.9.6/lib/asm-4.0.jar
apache-storm-0.9.6/lib/minlog-1.2.jar
apache-storm-0.9.6/lib/objenesis-1.2.jar
apache-storm-0.9.6/lib/chill-java-0.3.5.jar
apache-storm-0.9.6/lib/snakeyaml-1.11.jar
apache-storm-0.9.6/lib/commons-logging-1.1.3.jar
apache-storm-0.9.6/lib/disruptor-2.10.4.jar
apache-storm-0.9.6/lib/jgrapht-core-0.9.0.jar
apache-storm-0.9.6/lib/logback-classic-1.0.13.jar
apache-storm-0.9.6/lib/logback-core-1.0.13.jar
apache-storm-0.9.6/lib/slf4j-api-1.7.5.jar
apache-storm-0.9.6/lib/log4j-over-slf4j-1.6.6.jar
apache-storm-0.9.6/lib/jline-2.11.jar
apache-storm-0.9.6/bin/storm
apache-storm-0.9.6/bin/storm-config.cmd
apache-storm-0.9.6/bin/storm.cmd
apache-storm-0.9.6/public/css/
apache-storm-0.9.6/public/images/
apache-storm-0.9.6/public/js/
apache-storm-0.9.6/public/templates/
apache-storm-0.9.6/public/component.html
apache-storm-0.9.6/public/css/bootstrap-1.4.0.css
apache-storm-0.9.6/public/css/style.css
apache-storm-0.9.6/public/images/spinner.gif
apache-storm-0.9.6/public/index.html
apache-storm-0.9.6/public/js/arbor-graphics.js
apache-storm-0.9.6/public/js/arbor-tween.js
apache-storm-0.9.6/public/js/arbor.js
apache-storm-0.9.6/public/js/bootstrap-twipsy.js
apache-storm-0.9.6/public/js/jquery-1.6.2.min.js
apache-storm-0.9.6/public/js/jquery.blockUI.min.js
apache-storm-0.9.6/public/js/jquery.cookies.2.2.0.min.js
apache-storm-0.9.6/public/js/jquery.mustache.js
apache-storm-0.9.6/public/js/jquery.tablesorter.min.js
apache-storm-0.9.6/public/js/moment.min.js
apache-storm-0.9.6/public/js/script.js
apache-storm-0.9.6/public/js/url.min.js
apache-storm-0.9.6/public/js/visualization.js
apache-storm-0.9.6/public/templates/component-page-template.html
apache-storm-0.9.6/public/templates/index-page-template.html
apache-storm-0.9.6/public/templates/json-error-template.html
apache-storm-0.9.6/public/templates/topology-page-template.html
apache-storm-0.9.6/public/topology.html
apache-storm-0.9.6/examples/
apache-storm-0.9.6/examples/storm-starter/
apache-storm-0.9.6/examples/storm-starter/multilang/
apache-storm-0.9.6/examples/storm-starter/multilang/resources/
apache-storm-0.9.6/examples/storm-starter/src/
apache-storm-0.9.6/examples/storm-starter/src/clj/
apache-storm-0.9.6/examples/storm-starter/src/clj/storm/
apache-storm-0.9.6/examples/storm-starter/src/clj/storm/starter/
apache-storm-0.9.6/examples/storm-starter/src/clj/storm/starter/clj/
apache-storm-0.9.6/examples/storm-starter/src/jvm/
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/bolt/
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/spout/
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/tools/
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/trident/
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/util/
apache-storm-0.9.6/examples/storm-starter/test/
apache-storm-0.9.6/examples/storm-starter/test/jvm/
apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/
apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/
apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/bolt/
apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/tools/
apache-storm-0.9.6/examples/storm-starter/multilang/resources/asyncSplitsentence.js
apache-storm-0.9.6/examples/storm-starter/multilang/resources/randomsentence.js
apache-storm-0.9.6/examples/storm-starter/multilang/resources/splitsentence.js
apache-storm-0.9.6/examples/storm-starter/multilang/resources/splitsentence.py
apache-storm-0.9.6/examples/storm-starter/multilang/resources/splitsentence.rb
apache-storm-0.9.6/examples/storm-starter/multilang/resources/storm.js
apache-storm-0.9.6/examples/storm-starter/multilang/resources/storm.py
apache-storm-0.9.6/examples/storm-starter/multilang/resources/storm.rb
apache-storm-0.9.6/examples/storm-starter/pom.xml
apache-storm-0.9.6/examples/storm-starter/README.markdown
apache-storm-0.9.6/examples/storm-starter/src/clj/storm/starter/clj/word_count.clj
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/BasicDRPCTopology.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/bolt/AbstractRankerBolt.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/bolt/IntermediateRankingsBolt.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/bolt/PrinterBolt.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/bolt/RollingCountBolt.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/bolt/SingleJoinBolt.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/bolt/TotalRankingsBolt.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/ExclamationTopology.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/ManualDRPC.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/PrintSampleStream.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/ReachTopology.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/RollingTopWords.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/SingleJoinExample.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/spout/RandomSentenceSpout.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/spout/TwitterSampleSpout.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/tools/NthLastModifiedTimeTracker.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/tools/Rankable.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/tools/RankableObjectWithFields.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/tools/Rankings.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/tools/SlidingWindowCounter.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/tools/SlotBasedCounter.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/TransactionalGlobalCount.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/TransactionalWords.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/trident/TridentReach.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/trident/TridentWordCount.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/util/StormRunner.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/util/TupleHelpers.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java
apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/WordCountTopologyNode.java
apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/bolt/IntermediateRankingsBoltTest.java
apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/bolt/RollingCountBoltTest.java
apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/bolt/TotalRankingsBoltTest.java
apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/tools/MockTupleHelpers.java
apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/tools/NthLastModifiedTimeTrackerTest.java
apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/tools/RankableObjectWithFieldsTest.java
apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/tools/RankingsTest.java
apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/tools/SlidingWindowCounterTest.java
apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/tools/SlotBasedCounterTest.java
apache-storm-0.9.6/external/storm-kafka/storm-kafka-0.9.6-javadoc.jar
apache-storm-0.9.6/external/storm-kafka/storm-kafka-0.9.6-sources.jar
apache-storm-0.9.6/external/storm-kafka/storm-kafka-0.9.6.jar
apache-storm-0.9.6/external/storm-kafka/README.md
apache-storm-0.9.6/external/storm-hdfs/storm-hdfs-0.9.6-javadoc.jar
apache-storm-0.9.6/external/storm-hdfs/storm-hdfs-0.9.6-sources.jar
apache-storm-0.9.6/external/storm-hdfs/storm-hdfs-0.9.6.jar
apache-storm-0.9.6/external/storm-hdfs/README.md
apache-storm-0.9.6/external/storm-hbase/storm-hbase-0.9.6-javadoc.jar
apache-storm-0.9.6/external/storm-hbase/storm-hbase-0.9.6-sources.jar
apache-storm-0.9.6/external/storm-hbase/storm-hbase-0.9.6.jar
apache-storm-0.9.6/external/storm-hbase/README.md
 
cs



3. storm 디렉터리를 적절한 위치로 이동 혹은 복사합니다.

1
2
$ sudo cp -r ./apache-storm-0.9.6 /usr/local/
 
cs



4. storm 디렉터리의 소유 권한을 해당 계정에 부여합니다.

1
2
$ sudo chown -R hadoop-user:hadoop ./apache-storm-0.9.6/
 
cs



5. storm 디렉터리의 링크를 생성합니다.

1
2
$ sudo ln -sf ./apache-storm-0.9.6 ./storm
 
cs



6. 설정 파일 편집

 : storm의 홈 디렉터리 이하에 conf 디렉터리

 6-1. storm.yaml 편집

1
2
$ vi ./storm.yaml
 
cs


 6-2. storm.yaml 변경

  : 변경 전

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
 
########### These MUST be filled in for a storm configuration
# storm.zookeeper.servers:
#     - "server1"
#     - "server2"
#
# nimbus.host: "nimbus"
#
#
# ##### These may optionally be filled in:
#
## List of custom serializations
# topology.kryo.register:
#     - org.mycompany.MyType
#     - org.mycompany.MyType2: org.mycompany.MyType2Serializer
#
## List of custom kryo decorators
# topology.kryo.decorators:
#     - org.mycompany.MyDecorator
#
## Locations of the drpc servers
# drpc.servers:
#     - "server1"
#     - "server2"
 
## Metrics Consumers
# topology.metrics.consumer.register:
#   - class: "backtype.storm.metric.LoggingMetricsConsumer"
#     parallelism.hint: 1
#   - class: "org.mycompany.MyMetricsConsumer"
#     parallelism.hint: 1
#     argument:
#       - endpoint: "metrics-collector.mycompany.org"
 
cs


  : 변경 후

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
 
########### These MUST be filled in for a storm configuration
storm.zookeeper.servers:
    - master
    - secondary
    - datanode-a
    - datanode-b
 
nimbus.host: "master"
#
#
# ##### These may optionally be filled in:
#
## List of custom serializations
# topology.kryo.register:
#     - org.mycompany.MyType
#     - org.mycompany.MyType2: org.mycompany.MyType2Serializer
#
## List of custom kryo decorators
# topology.kryo.decorators:
#     - org.mycompany.MyDecorator
#
## Locations of the drpc servers
# drpc.servers:
#     - "server1"
#     - "server2"
 
## Metrics Consumers
# topology.metrics.consumer.register:
#   - class: "backtype.storm.metric.LoggingMetricsConsumer"
#     parallelism.hint: 1
#   - class: "org.mycompany.MyMetricsConsumer"
#     parallelism.hint: 1
#     argument:
#       - endpoint: "metrics-collector.mycompany.org"
 
supervisor.slots.ports:
    - 6700
    - 6701
    - 6702
    - 6703
storm.messaging.transport: "backtype.storm.messaging.netty.Context"
storm.messaging.netty.buffer_size: 16384
storm.messaging.netty.max_retries: 10
storm.messaging.netty.min_wait_ms: 1000
storm.messaging.netty.max_wait_ms: 5000
 
cs



7. 이전 단계까지의 작업을 진행한 storm 디렉터리를 압축합니다.

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
$ sudo tar -cvzf ./apache-storm-0.9.6.tar.gz ./apache-storm-0.9.6
./apache-storm-0.9.6/
./apache-storm-0.9.6/CHANGELOG.md
./apache-storm-0.9.6/examples/
./apache-storm-0.9.6/examples/storm-starter/
./apache-storm-0.9.6/examples/storm-starter/src/
./apache-storm-0.9.6/examples/storm-starter/src/clj/
./apache-storm-0.9.6/examples/storm-starter/src/clj/storm/
./apache-storm-0.9.6/examples/storm-starter/src/clj/storm/starter/
./apache-storm-0.9.6/examples/storm-starter/src/clj/storm/starter/clj/
./apache-storm-0.9.6/examples/storm-starter/src/clj/storm/starter/clj/word_count.clj
./apache-storm-0.9.6/examples/storm-starter/src/jvm/
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/TransactionalGlobalCount.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/spout/
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/spout/RandomSentenceSpout.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/spout/TwitterSampleSpout.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/tools/
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/tools/SlotBasedCounter.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/tools/Rankable.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/tools/SlidingWindowCounter.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/tools/RankableObjectWithFields.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/tools/Rankings.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/tools/NthLastModifiedTimeTracker.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/util/
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/util/StormRunner.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/util/TupleHelpers.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/ExclamationTopology.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/ReachTopology.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/ManualDRPC.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/bolt/
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/bolt/TotalRankingsBolt.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/bolt/AbstractRankerBolt.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/bolt/SingleJoinBolt.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/bolt/IntermediateRankingsBolt.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/bolt/PrinterBolt.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/bolt/RollingCountBolt.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/SingleJoinExample.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/trident/
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/trident/TridentWordCount.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/trident/TridentReach.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/WordCountTopologyNode.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/BasicDRPCTopology.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/PrintSampleStream.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/TransactionalWords.java
./apache-storm-0.9.6/examples/storm-starter/src/jvm/storm/starter/RollingTopWords.java
./apache-storm-0.9.6/examples/storm-starter/test/
./apache-storm-0.9.6/examples/storm-starter/test/jvm/
./apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/
./apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/
./apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/tools/
./apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/tools/MockTupleHelpers.java
./apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/tools/NthLastModifiedTimeTrackerTest.java
./apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/tools/RankableObjectWithFieldsTest.java
./apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/tools/RankingsTest.java
./apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/tools/SlotBasedCounterTest.java
./apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/tools/SlidingWindowCounterTest.java
./apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/bolt/
./apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/bolt/TotalRankingsBoltTest.java
./apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/bolt/RollingCountBoltTest.java
./apache-storm-0.9.6/examples/storm-starter/test/jvm/storm/starter/bolt/IntermediateRankingsBoltTest.java
./apache-storm-0.9.6/examples/storm-starter/storm-starter-topologies-0.9.6.jar
./apache-storm-0.9.6/examples/storm-starter/multilang/
./apache-storm-0.9.6/examples/storm-starter/multilang/resources/
./apache-storm-0.9.6/examples/storm-starter/multilang/resources/asyncSplitsentence.js
./apache-storm-0.9.6/examples/storm-starter/multilang/resources/splitsentence.rb
./apache-storm-0.9.6/examples/storm-starter/multilang/resources/storm.rb
./apache-storm-0.9.6/examples/storm-starter/multilang/resources/splitsentence.js
./apache-storm-0.9.6/examples/storm-starter/multilang/resources/splitsentence.py
./apache-storm-0.9.6/examples/storm-starter/multilang/resources/storm.js
./apache-storm-0.9.6/examples/storm-starter/multilang/resources/storm.py
./apache-storm-0.9.6/examples/storm-starter/multilang/resources/randomsentence.js
./apache-storm-0.9.6/examples/storm-starter/README.markdown
./apache-storm-0.9.6/examples/storm-starter/pom.xml
./apache-storm-0.9.6/SECURITY.md
./apache-storm-0.9.6/external/
./apache-storm-0.9.6/external/storm-hdfs/
./apache-storm-0.9.6/external/storm-hdfs/storm-hdfs-0.9.6-sources.jar
./apache-storm-0.9.6/external/storm-hdfs/README.md
./apache-storm-0.9.6/external/storm-hdfs/storm-hdfs-0.9.6.jar
./apache-storm-0.9.6/external/storm-hdfs/storm-hdfs-0.9.6-javadoc.jar
./apache-storm-0.9.6/external/storm-kafka/
./apache-storm-0.9.6/external/storm-kafka/README.md
./apache-storm-0.9.6/external/storm-kafka/storm-kafka-0.9.6-sources.jar
./apache-storm-0.9.6/external/storm-kafka/storm-kafka-0.9.6-javadoc.jar
./apache-storm-0.9.6/external/storm-kafka/storm-kafka-0.9.6.jar
./apache-storm-0.9.6/external/storm-hbase/
./apache-storm-0.9.6/external/storm-hbase/storm-hbase-0.9.6-javadoc.jar
./apache-storm-0.9.6/external/storm-hbase/README.md
./apache-storm-0.9.6/external/storm-hbase/storm-hbase-0.9.6.jar
./apache-storm-0.9.6/external/storm-hbase/storm-hbase-0.9.6-sources.jar
./apache-storm-0.9.6/bin/
./apache-storm-0.9.6/bin/storm.cmd
./apache-storm-0.9.6/bin/storm
./apache-storm-0.9.6/bin/storm-config.cmd
./apache-storm-0.9.6/conf/
./apache-storm-0.9.6/conf/storm.yaml
./apache-storm-0.9.6/conf/storm_env.ini
./apache-storm-0.9.6/NOTICE
./apache-storm-0.9.6/public/
./apache-storm-0.9.6/public/topology.html
./apache-storm-0.9.6/public/css/
./apache-storm-0.9.6/public/css/style.css
./apache-storm-0.9.6/public/css/bootstrap-1.4.0.css
./apache-storm-0.9.6/public/component.html
./apache-storm-0.9.6/public/templates/
./apache-storm-0.9.6/public/templates/component-page-template.html
./apache-storm-0.9.6/public/templates/index-page-template.html
./apache-storm-0.9.6/public/templates/json-error-template.html
./apache-storm-0.9.6/public/templates/topology-page-template.html
./apache-storm-0.9.6/public/images/
./apache-storm-0.9.6/public/images/spinner.gif
./apache-storm-0.9.6/public/js/
./apache-storm-0.9.6/public/js/jquery-1.6.2.min.js
./apache-storm-0.9.6/public/js/moment.min.js
./apache-storm-0.9.6/public/js/bootstrap-twipsy.js
./apache-storm-0.9.6/public/js/jquery.tablesorter.min.js
./apache-storm-0.9.6/public/js/visualization.js
./apache-storm-0.9.6/public/js/jquery.mustache.js
./apache-storm-0.9.6/public/js/arbor-graphics.js
./apache-storm-0.9.6/public/js/arbor-tween.js
./apache-storm-0.9.6/public/js/jquery.blockUI.min.js
./apache-storm-0.9.6/public/js/script.js
./apache-storm-0.9.6/public/js/url.min.js
./apache-storm-0.9.6/public/js/jquery.cookies.2.2.0.min.js
./apache-storm-0.9.6/public/js/arbor.js
./apache-storm-0.9.6/public/index.html
./apache-storm-0.9.6/LICENSE
./apache-storm-0.9.6/lib/
./apache-storm-0.9.6/lib/clj-time-0.4.1.jar
./apache-storm-0.9.6/lib/tools.cli-0.2.4.jar
./apache-storm-0.9.6/lib/commons-lang-2.5.jar
./apache-storm-0.9.6/lib/tools.macro-0.1.0.jar
./apache-storm-0.9.6/lib/joda-time-2.0.jar
./apache-storm-0.9.6/lib/tools.logging-0.2.3.jar
./apache-storm-0.9.6/lib/objenesis-1.2.jar
./apache-storm-0.9.6/lib/commons-exec-1.1.jar
./apache-storm-0.9.6/lib/ring-core-1.1.5.jar
./apache-storm-0.9.6/lib/jetty-util-6.1.26.jar
./apache-storm-0.9.6/lib/chill-java-0.3.5.jar
./apache-storm-0.9.6/lib/json-simple-1.1.jar
./apache-storm-0.9.6/lib/jgrapht-core-0.9.0.jar
./apache-storm-0.9.6/lib/log4j-over-slf4j-1.6.6.jar
./apache-storm-0.9.6/lib/logback-classic-1.0.13.jar
./apache-storm-0.9.6/lib/ring-devel-0.3.11.jar
./apache-storm-0.9.6/lib/logback-core-1.0.13.jar
./apache-storm-0.9.6/lib/commons-logging-1.1.3.jar
./apache-storm-0.9.6/lib/disruptor-2.10.4.jar
./apache-storm-0.9.6/lib/compojure-1.1.3.jar
./apache-storm-0.9.6/lib/asm-4.0.jar
./apache-storm-0.9.6/lib/math.numeric-tower-0.0.1.jar
./apache-storm-0.9.6/lib/commons-io-2.4.jar
./apache-storm-0.9.6/lib/carbonite-1.4.0.jar
./apache-storm-0.9.6/lib/core.incubator-0.1.0.jar
./apache-storm-0.9.6/lib/reflectasm-1.07-shaded.jar
./apache-storm-0.9.6/lib/snakeyaml-1.11.jar
./apache-storm-0.9.6/lib/commons-codec-1.6.jar
./apache-storm-0.9.6/lib/minlog-1.2.jar
./apache-storm-0.9.6/lib/commons-fileupload-1.2.1.jar
./apache-storm-0.9.6/lib/hiccup-0.3.6.jar
./apache-storm-0.9.6/lib/ring-servlet-0.3.11.jar
./apache-storm-0.9.6/lib/clout-1.0.1.jar
./apache-storm-0.9.6/lib/ring-jetty-adapter-0.3.11.jar
./apache-storm-0.9.6/lib/servlet-api-2.5.jar
./apache-storm-0.9.6/lib/storm-core-0.9.6.jar
./apache-storm-0.9.6/lib/jetty-6.1.26.jar
./apache-storm-0.9.6/lib/jline-2.11.jar
./apache-storm-0.9.6/lib/slf4j-api-1.7.5.jar
./apache-storm-0.9.6/lib/kryo-2.21.jar
./apache-storm-0.9.6/lib/clj-stacktrace-0.2.2.jar
./apache-storm-0.9.6/lib/clojure-1.5.1.jar
./apache-storm-0.9.6/DISCLAIMER
./apache-storm-0.9.6/RELEASE
./apache-storm-0.9.6/logback/
./apache-storm-0.9.6/logback/cluster.xml
./apache-storm-0.9.6/README.markdown
 
cs



8. storm 압축 파일을 클러스터링 된 각 노드에 배포합니다.

1
2
3
$ scp ./apache-storm-0.9.6.tar.gz hadoop-user@secondary:~/
apache-storm-0.9.6.tar.gz                                                          100%   20MB  20.0MB/s   00:00
 
cs



9. 각 노드에서 2~6번까지의 작업을 진행합니다.



10. storm의 홈 디렉터리 이하 bin 디렉터리에서 실행합니다.

 10-1. master node

  : nimbus

1
2
3
4
$ ./bin/storm nimbus &
[1] 5741
Running: /usr/lib/jvm/java-8-oracle/bin/java -server -Dstorm.options= -Dstorm.home=/usr/local/apache-storm-0.9.6 -Dstorm.log.dir=/usr/local/apache-storm-0.9.6/logs -Djava.library.path=/usr/local/lib:/opt/local/lib:/usr/lib -Dstorm.conf.file= -cp /usr/local/apache-storm-0.9.6/lib/clj-time-0.4.1.jar:/usr/local/apache-storm-0.9.6/lib/tools.cli-0.2.4.jar:/usr/local/apache-storm-0.9.6/lib/commons-lang-2.5.jar:/usr/local/apache-storm-0.9.6/lib/tools.macro-0.1.0.jar:/usr/local/apache-storm-0.9.6/lib/joda-time-2.0.jar:/usr/local/apache-storm-0.9.6/lib/tools.logging-0.2.3.jar:/usr/local/apache-storm-0.9.6/lib/objenesis-1.2.jar:/usr/local/apache-storm-0.9.6/lib/commons-exec-1.1.jar:/usr/local/apache-storm-0.9.6/lib/ring-core-1.1.5.jar:/usr/local/apache-storm-0.9.6/lib/jetty-util-6.1.26.jar:/usr/local/apache-storm-0.9.6/lib/chill-java-0.3.5.jar:/usr/local/apache-storm-0.9.6/lib/json-simple-1.1.jar:/usr/local/apache-storm-0.9.6/lib/jgrapht-core-0.9.0.jar:/usr/local/apache-storm-0.9.6/lib/log4j-over-slf4j-1.6.6.jar:/usr/local/apache-storm-0.9.6/lib/logback-classic-1.0.13.jar:/usr/local/apache-storm-0.9.6/lib/ring-devel-0.3.11.jar:/usr/local/apache-storm-0.9.6/lib/logback-core-1.0.13.jar:/usr/local/apache-storm-0.9.6/lib/commons-logging-1.1.3.jar:/usr/local/apache-storm-0.9.6/lib/disruptor-2.10.4.jar:/usr/local/apache-storm-0.9.6/lib/compojure-1.1.3.jar:/usr/local/apache-storm-0.9.6/lib/asm-4.0.jar:/usr/local/apache-storm-0.9.6/lib/math.numeric-tower-0.0.1.jar:/usr/local/apache-storm-0.9.6/lib/commons-io-2.4.jar:/usr/local/apache-storm-0.9.6/lib/carbonite-1.4.0.jar:/usr/local/apache-storm-0.9.6/lib/core.incubator-0.1.0.jar:/usr/local/apache-storm-0.9.6/lib/reflectasm-1.07-shaded.jar:/usr/local/apache-storm-0.9.6/lib/snakeyaml-1.11.jar:/usr/local/apache-storm-0.9.6/lib/commons-codec-1.6.jar:/usr/local/apache-storm-0.9.6/lib/minlog-1.2.jar:/usr/local/apache-storm-0.9.6/lib/commons-fileupload-1.2.1.jar:/usr/local/apache-storm-0.9.6/lib/hiccup-0.3.6.jar:/usr/local/apache-storm-0.9.6/lib/ring-servlet-0.3.11.jar:/usr/local/apache-storm-0.9.6/lib/clout-1.0.1.jar:/usr/local/apache-storm-0.9.6/lib/ring-jetty-adapter-0.3.11.jar:/usr/local/apache-storm-0.9.6/lib/servlet-api-2.5.jar:/usr/local/apache-storm-0.9.6/lib/storm-core-0.9.6.jar:/usr/local/apache-storm-0.9.6/lib/jetty-6.1.26.jar:/usr/local/apache-storm-0.9.6/lib/jline-2.11.jar:/usr/local/apache-storm-0.9.6/lib/slf4j-api-1.7.5.jar:/usr/local/apache-storm-0.9.6/lib/kryo-2.21.jar:/usr/local/apache-storm-0.9.6/lib/clj-stacktrace-0.2.2.jar:/usr/local/apache-storm-0.9.6/lib/clojure-1.5.1.jar:/usr/local/apache-storm-0.9.6/conf -Xmx1024m -Dlogfile.name=nimbus.log -Dlogback.configurationFile=/usr/local/apache-storm-0.9.6/logback/cluster.xml backtype.storm.daemon.nimbus
 
cs

* ./bin/storm nimbus >> nimbus.log 2>&1 &


 10-2. worker node

  : supervisor

1
2
3
$ ./bin/storm supervisor
Running: /usr/lib/jvm/java-8-oracle/bin/java -server -Dstorm.options= -Dstorm.home=/usr/local/apache-storm-0.9.6 -Dstorm.log.dir=/usr/local/apache-storm-0.9.6/logs -Djava.library.path=/usr/local/lib:/opt/local/lib:/usr/lib -Dstorm.conf.file= -cp /usr/local/apache-storm-0.9.6/lib/math.numeric-tower-0.0.1.jar:/usr/local/apache-storm-0.9.6/lib/log4j-over-slf4j-1.6.6.jar:/usr/local/apache-storm-0.9.6/lib/commons-fileupload-1.2.1.jar:/usr/local/apache-storm-0.9.6/lib/tools.macro-0.1.0.jar:/usr/local/apache-storm-0.9.6/lib/minlog-1.2.jar:/usr/local/apache-storm-0.9.6/lib/json-simple-1.1.jar:/usr/local/apache-storm-0.9.6/lib/commons-io-2.4.jar:/usr/local/apache-storm-0.9.6/lib/ring-core-1.1.5.jar:/usr/local/apache-storm-0.9.6/lib/tools.logging-0.2.3.jar:/usr/local/apache-storm-0.9.6/lib/clj-time-0.4.1.jar:/usr/local/apache-storm-0.9.6/lib/logback-classic-1.0.13.jar:/usr/local/apache-storm-0.9.6/lib/clojure-1.5.1.jar:/usr/local/apache-storm-0.9.6/lib/chill-java-0.3.5.jar:/usr/local/apache-storm-0.9.6/lib/commons-lang-2.5.jar:/usr/local/apache-storm-0.9.6/lib/slf4j-api-1.7.5.jar:/usr/local/apache-storm-0.9.6/lib/asm-4.0.jar:/usr/local/apache-storm-0.9.6/lib/ring-devel-0.3.11.jar:/usr/local/apache-storm-0.9.6/lib/clout-1.0.1.jar:/usr/local/apache-storm-0.9.6/lib/ring-jetty-adapter-0.3.11.jar:/usr/local/apache-storm-0.9.6/lib/storm-core-0.9.6.jar:/usr/local/apache-storm-0.9.6/lib/jgrapht-core-0.9.0.jar:/usr/local/apache-storm-0.9.6/lib/tools.cli-0.2.4.jar:/usr/local/apache-storm-0.9.6/lib/hiccup-0.3.6.jar:/usr/local/apache-storm-0.9.6/lib/snakeyaml-1.11.jar:/usr/local/apache-storm-0.9.6/lib/commons-logging-1.1.3.jar:/usr/local/apache-storm-0.9.6/lib/disruptor-2.10.4.jar:/usr/local/apache-storm-0.9.6/lib/compojure-1.1.3.jar:/usr/local/apache-storm-0.9.6/lib/jetty-6.1.26.jar:/usr/local/apache-storm-0.9.6/lib/jetty-util-6.1.26.jar:/usr/local/apache-storm-0.9.6/lib/carbonite-1.4.0.jar:/usr/local/apache-storm-0.9.6/lib/core.incubator-0.1.0.jar:/usr/local/apache-storm-0.9.6/lib/servlet-api-2.5.jar:/usr/local/apache-storm-0.9.6/lib/commons-exec-1.1.jar:/usr/local/apache-storm-0.9.6/lib/clj-stacktrace-0.2.2.jar:/usr/local/apache-storm-0.9.6/lib/ring-servlet-0.3.11.jar:/usr/local/apache-storm-0.9.6/lib/logback-core-1.0.13.jar:/usr/local/apache-storm-0.9.6/lib/commons-codec-1.6.jar:/usr/local/apache-storm-0.9.6/lib/kryo-2.21.jar:/usr/local/apache-storm-0.9.6/lib/reflectasm-1.07-shaded.jar:/usr/local/apache-storm-0.9.6/lib/objenesis-1.2.jar:/usr/local/apache-storm-0.9.6/lib/jline-2.11.jar:/usr/local/apache-storm-0.9.6/lib/joda-time-2.0.jar:/usr/local/apache-storm-0.9.6/conf -Xmx256m -Dlogfile.name=supervisor.log -Dlogback.configurationFile=/usr/local/apache-storm-0.9.6/logback/cluster.xml backtype.storm.daemon.supervisor
 
cs

* ./bin/storm supervisor >> supervisor.log 2>&1 &


 10-3. all node

  : logviewer

1
2
3
4
$ ./bin/storm logviewer &
[2] 24163
Running: /usr/lib/jvm/java-8-oracle/bin/java -server -Dstorm.options= -Dstorm.home=/usr/local/apache-storm-0.9.6 -Dstorm.log.dir=/usr/local/apache-storm-0.9.6/logs -Djava.library.path=/usr/local/lib:/opt/local/lib:/usr/lib -Dstorm.conf.file= -cp /usr/local/apache-storm-0.9.6/lib/clj-time-0.4.1.jar:/usr/local/apache-storm-0.9.6/lib/tools.cli-0.2.4.jar:/usr/local/apache-storm-0.9.6/lib/commons-lang-2.5.jar:/usr/local/apache-storm-0.9.6/lib/tools.macro-0.1.0.jar:/usr/local/apache-storm-0.9.6/lib/joda-time-2.0.jar:/usr/local/apache-storm-0.9.6/lib/tools.logging-0.2.3.jar:/usr/local/apache-storm-0.9.6/lib/objenesis-1.2.jar:/usr/local/apache-storm-0.9.6/lib/commons-exec-1.1.jar:/usr/local/apache-storm-0.9.6/lib/ring-core-1.1.5.jar:/usr/local/apache-storm-0.9.6/lib/jetty-util-6.1.26.jar:/usr/local/apache-storm-0.9.6/lib/chill-java-0.3.5.jar:/usr/local/apache-storm-0.9.6/lib/json-simple-1.1.jar:/usr/local/apache-storm-0.9.6/lib/jgrapht-core-0.9.0.jar:/usr/local/apache-storm-0.9.6/lib/log4j-over-slf4j-1.6.6.jar:/usr/local/apache-storm-0.9.6/lib/logback-classic-1.0.13.jar:/usr/local/apache-storm-0.9.6/lib/ring-devel-0.3.11.jar:/usr/local/apache-storm-0.9.6/lib/logback-core-1.0.13.jar:/usr/local/apache-storm-0.9.6/lib/commons-logging-1.1.3.jar:/usr/local/apache-storm-0.9.6/lib/disruptor-2.10.4.jar:/usr/local/apache-storm-0.9.6/lib/compojure-1.1.3.jar:/usr/local/apache-storm-0.9.6/lib/asm-4.0.jar:/usr/local/apache-storm-0.9.6/lib/math.numeric-tower-0.0.1.jar:/usr/local/apache-storm-0.9.6/lib/commons-io-2.4.jar:/usr/local/apache-storm-0.9.6/lib/carbonite-1.4.0.jar:/usr/local/apache-storm-0.9.6/lib/core.incubator-0.1.0.jar:/usr/local/apache-storm-0.9.6/lib/reflectasm-1.07-shaded.jar:/usr/local/apache-storm-0.9.6/lib/snakeyaml-1.11.jar:/usr/local/apache-storm-0.9.6/lib/commons-codec-1.6.jar:/usr/local/apache-storm-0.9.6/lib/minlog-1.2.jar:/usr/local/apache-storm-0.9.6/lib/commons-fileupload-1.2.1.jar:/usr/local/apache-storm-0.9.6/lib/hiccup-0.3.6.jar:/usr/local/apache-storm-0.9.6/lib/ring-servlet-0.3.11.jar:/usr/local/apache-storm-0.9.6/lib/clout-1.0.1.jar:/usr/local/apache-storm-0.9.6/lib/ring-jetty-adapter-0.3.11.jar:/usr/local/apache-storm-0.9.6/lib/servlet-api-2.5.jar:/usr/local/apache-storm-0.9.6/lib/storm-core-0.9.6.jar:/usr/local/apache-storm-0.9.6/lib/jetty-6.1.26.jar:/usr/local/apache-storm-0.9.6/lib/jline-2.11.jar:/usr/local/apache-storm-0.9.6/lib/slf4j-api-1.7.5.jar:/usr/local/apache-storm-0.9.6/lib/kryo-2.21.jar:/usr/local/apache-storm-0.9.6/lib/clj-stacktrace-0.2.2.jar:/usr/local/apache-storm-0.9.6/lib/clojure-1.5.1.jar:/usr/local/apache-storm-0.9.6:/usr/local/apache-storm-0.9.6/conf -Xmx128m -Dlogfile.name=logviewer.log -Dlogback.configurationFile=/usr/local/apache-storm-0.9.6/logback/cluster.xml backtype.storm.daemon.logviewer
 
cs

* ./bin/storm logviewer >> logviewer.log 2>&1 &



11. Example Topology를 실행합니다. 단, master node에서만 실행합니다.

1
2
3
4
5
6
7
8
9
10
$ ./bin/storm jar ./examples/storm-starter/storm-starter-topologies-0.9.6.jar storm.starter.RollingTopWords production-topology remote
Running: /usr/lib/jvm/java-8-oracle/bin/java -client -Dstorm.options= -Dstorm.home=/usr/local/apache-storm-0.9.6 -Dstorm.log.dir=/usr/local/apache-storm-0.9.6/logs -Djava.library.path=/usr/local/lib:/opt/local/lib:/usr/lib -Dstorm.conf.file= -cp /usr/local/apache-storm-0.9.6/lib/clj-time-0.4.1.jar:/usr/local/apache-storm-0.9.6/lib/tools.cli-0.2.4.jar:/usr/local/apache-storm-0.9.6/lib/commons-lang-2.5.jar:/usr/local/apache-storm-0.9.6/lib/tools.macro-0.1.0.jar:/usr/local/apache-storm-0.9.6/lib/joda-time-2.0.jar:/usr/local/apache-storm-0.9.6/lib/tools.logging-0.2.3.jar:/usr/local/apache-storm-0.9.6/lib/objenesis-1.2.jar:/usr/local/apache-storm-0.9.6/lib/commons-exec-1.1.jar:/usr/local/apache-storm-0.9.6/lib/ring-core-1.1.5.jar:/usr/local/apache-storm-0.9.6/lib/jetty-util-6.1.26.jar:/usr/local/apache-storm-0.9.6/lib/chill-java-0.3.5.jar:/usr/local/apache-storm-0.9.6/lib/json-simple-1.1.jar:/usr/local/apache-storm-0.9.6/lib/jgrapht-core-0.9.0.jar:/usr/local/apache-storm-0.9.6/lib/log4j-over-slf4j-1.6.6.jar:/usr/local/apache-storm-0.9.6/lib/logback-classic-1.0.13.jar:/usr/local/apache-storm-0.9.6/lib/ring-devel-0.3.11.jar:/usr/local/apache-storm-0.9.6/lib/logback-core-1.0.13.jar:/usr/local/apache-storm-0.9.6/lib/commons-logging-1.1.3.jar:/usr/local/apache-storm-0.9.6/lib/disruptor-2.10.4.jar:/usr/local/apache-storm-0.9.6/lib/compojure-1.1.3.jar:/usr/local/apache-storm-0.9.6/lib/asm-4.0.jar:/usr/local/apache-storm-0.9.6/lib/math.numeric-tower-0.0.1.jar:/usr/local/apache-storm-0.9.6/lib/commons-io-2.4.jar:/usr/local/apache-storm-0.9.6/lib/carbonite-1.4.0.jar:/usr/local/apache-storm-0.9.6/lib/core.incubator-0.1.0.jar:/usr/local/apache-storm-0.9.6/lib/reflectasm-1.07-shaded.jar:/usr/local/apache-storm-0.9.6/lib/snakeyaml-1.11.jar:/usr/local/apache-storm-0.9.6/lib/commons-codec-1.6.jar:/usr/local/apache-storm-0.9.6/lib/minlog-1.2.jar:/usr/local/apache-storm-0.9.6/lib/commons-fileupload-1.2.1.jar:/usr/local/apache-storm-0.9.6/lib/hiccup-0.3.6.jar:/usr/local/apache-storm-0.9.6/lib/ring-servlet-0.3.11.jar:/usr/local/apache-storm-0.9.6/lib/clout-1.0.1.jar:/usr/local/apache-storm-0.9.6/lib/ring-jetty-adapter-0.3.11.jar:/usr/local/apache-storm-0.9.6/lib/servlet-api-2.5.jar:/usr/local/apache-storm-0.9.6/lib/storm-core-0.9.6.jar:/usr/local/apache-storm-0.9.6/lib/jetty-6.1.26.jar:/usr/local/apache-storm-0.9.6/lib/jline-2.11.jar:/usr/local/apache-storm-0.9.6/lib/slf4j-api-1.7.5.jar:/usr/local/apache-storm-0.9.6/lib/kryo-2.21.jar:/usr/local/apache-storm-0.9.6/lib/clj-stacktrace-0.2.2.jar:/usr/local/apache-storm-0.9.6/lib/clojure-1.5.1.jar:./examples/storm-starter/storm-starter-topologies-0.9.6.jar:/usr/local/apache-storm-0.9.6/conf:/usr/local/apache-storm-0.9.6/bin -Dstorm.jar=./examples/storm-starter/storm-starter-topologies-0.9.6.jar storm.starter.RollingTopWords production-topology remote
209  [main] INFO  storm.starter.RollingTopWords - Topology name: production-topology
250  [main] INFO  storm.starter.RollingTopWords - Running in remote (cluster) mode
414  [main] INFO  backtype.storm.StormSubmitter - Jar not uploaded to master yet. Submitting jar...
426  [main] INFO  backtype.storm.StormSubmitter - Uploading topology jar ./examples/storm-starter/storm-starter-topologies-0.9.6.jar to assigned location: storm-local/nimbus/inbox/stormjar-887a116a-6fab-4846-8b61-84bba78d934f.jar
460  [main] INFO  backtype.storm.StormSubmitter - Successfully uploaded topology jar to assigned location: storm-local/nimbus/inbox/stormjar-887a116a-6fab-4846-8b61-84bba78d934f.jar
460  [main] INFO  backtype.storm.StormSubmitter - Submitting topology production-topology in distributed mode with conf {"topology.debug":true}
752  [main] INFO  backtype.storm.StormSubmitter - Finished submitting topology: production-topology
 
cs



'Big Data Platform > Storm' 카테고리의 다른 글

[에러] Address already in use (Bind failed)  (0) 2018.03.21


ubuntu jzmq 설치 중에 아래와 같은 에러 발생 시

1
2
3
$ ./autogen.sh
autogen.sh: error: could not find autoreconf.  autoconf and automake are required to run autogen.sh.
 
cs



패키지 인스톨러를 통해 autoconf를 설치 후 다시 진행합니다.

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
$ sudo apt-get install pkg-config
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  pkg-config
0 upgraded, 1 newly installed, 0 to remove and 81 not upgraded.
Need to get 45.0 kB of archives.
After this operation, 177 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 pkg-config amd64 0.29.1-0ubuntu1 [45.0 kB]
Fetched 45.0 kB in 0s (47.8 kB/s)
Selecting previously unselected package pkg-config.
(Reading database ... 65626 files and directories currently installed.)
Preparing to unpack .../pkg-config_0.29.1-0ubuntu1_amd64.deb ...
Unpacking pkg-config (0.29.1-0ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up pkg-config (0.29.1-0ubuntu1) ...
hadoop-user@secondary:/usr/local/jzmq$ ./autogen.sh
autogen.sh: error: could not find autoreconf.  autoconf and automake are required to run autogen.sh.
hadoop-user@secondary:/usr/local/jzmq$ sudo apt-get install autoconf
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  automake m4
Suggested packages:
  autoconf-archive gnu-standards autoconf-doc gettext
The following NEW packages will be installed:
  autoconf automake m4
0 upgraded, 3 newly installed, 0 to remove and 81 not upgraded.
Need to get 1,025 kB of archives.
After this operation, 3,781 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 m4 amd64 1.4.17-5 [195 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 autoconf all 2.69-9 [321 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 automake all 1:1.15-4ubuntu1 [510 kB]
Fetched 1,025 kB in 2s (421 kB/s)
Selecting previously unselected package m4.
(Reading database ... 65642 files and directories currently installed.)
Preparing to unpack .../archives/m4_1.4.17-5_amd64.deb ...
Unpacking m4 (1.4.17-5) ...
Selecting previously unselected package autoconf.
Preparing to unpack .../autoconf_2.69-9_all.deb ...
Unpacking autoconf (2.69-9) ...
Selecting previously unselected package automake.
Preparing to unpack .../automake_1%3a1.15-4ubuntu1_all.deb ...
Unpacking automake (1:1.15-4ubuntu1) ...
Processing triggers for install-info (6.1.0.dfsg.1-5) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up m4 (1.4.17-5) ...
Setting up autoconf (2.69-9) ...
Setting up automake (1:1.15-4ubuntu1) ...
update-alternatives: using /usr/bin/automake-1.15 to provide /usr/bin/automake (automake) in auto mode
 
cs




ubuntu jzmq 설치 중에 아래와 같은 에러 발생 시

1
2
3
$ ./autogen.sh
autogen.sh: error: could not find pkg-config.  pkg-config is required to run autogen.sh.
 
cs



패키지 인스톨러를 통해 pkg-config를 설치 후 다시 진행합니다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$ sudo apt-get install pkg-config
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  pkg-config
0 upgraded, 1 newly installed, 0 to remove and 81 not upgraded.
Need to get 45.0 kB of archives.
After this operation, 177 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 pkg-config amd64 0.29.1-0ubuntu1 [45.0 kB]
Fetched 45.0 kB in 0s (47.8 kB/s)
Selecting previously unselected package pkg-config.
(Reading database ... 65626 files and directories currently installed.)
Preparing to unpack .../pkg-config_0.29.1-0ubuntu1_amd64.deb ...
Unpacking pkg-config (0.29.1-0ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up pkg-config (0.29.1-0ubuntu1) ...
 
cs




ubuntu zeromq 설치 중에 다음과 같은 에러 발생 시

1
2
3
4
5
6
7
8
9
10
11
12
13
14
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking how to create a ustar tar archive... gnutar
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/local/zeromq-2.2.0':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
 
cs



패키지 인스톨러를 통해서 build-essential을 설치 후 다시 진행합니다.

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
$ sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  cpp cpp-5 dpkg-dev fakeroot g++ g++-5 gcc gcc-5 gcc-5-base libalgorithm-diff-perl libalgorithm-diff-xs-perl
  libalgorithm-merge-perl libasan2 libatomic1 libc-dev-bin libc6 libc6-dev libcc1-0 libcilkrts5 libdpkg-perl
  libfakeroot libfile-fcntllock-perl libgcc-5-dev libgomp1 libisl15 libitm1 liblsan0 libmpc3 libmpx0 libquadmath0
  libstdc++-5-dev libstdc++6 libtsan0 libubsan0 linux-libc-dev make manpages-dev
Suggested packages:
  cpp-doc gcc-5-locales debian-keyring g++-multilib g++-5-multilib gcc-5-doc libstdc++6-5-dbg gcc-multilib autoconf
  automake libtool flex bison gdb gcc-doc gcc-5-multilib libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg
  libasan2-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx0-dbg libquadmath0-dbg glibc-doc
  libstdc++-5-doc make-doc
The following NEW packages will be installed:
  build-essential cpp cpp-5 dpkg-dev fakeroot g++ g++-5 gcc gcc-5 libalgorithm-diff-perl libalgorithm-diff-xs-perl
  libalgorithm-merge-perl libasan2 libatomic1 libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libdpkg-perl libfakeroot
  libfile-fcntllock-perl libgcc-5-dev libgomp1 libisl15 libitm1 liblsan0 libmpc3 libmpx0 libquadmath0
  libstdc++-5-dev libtsan0 libubsan0 linux-libc-dev make manpages-dev
The following packages will be upgraded:
  gcc-5-base libc6 libstdc++6
3 upgraded, 35 newly installed, 0 to remove and 82 not upgraded.
Need to get 39.1 MB of archives.
After this operation, 130 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc6 amd64 2.23-0ubuntu10 [2,580 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libmpc3 amd64 1.0.3-1 [39.7 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 gcc-5-base amd64 5.4.0-6ubuntu1~16.04.9 [17.3 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libstdc++6 amd64 5.4.0-6ubuntu1~16.04.9 [393 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc-dev-bin amd64 2.23-0ubuntu10 [68.7 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-libc-dev amd64 4.4.0-116.140 [823 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc6-dev amd64 2.23-0ubuntu10 [2,079 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libisl15 amd64 0.16.1-1 [524 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 cpp-5 amd64 5.4.0-6ubuntu1~16.04.9 [7,685 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 cpp amd64 4:5.3.1-1ubuntu1 [27.7 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcc1-0 amd64 5.4.0-6ubuntu1~16.04.9 [38.8 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgomp1 amd64 5.4.0-6ubuntu1~16.04.9 [55.0 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libitm1 amd64 5.4.0-6ubuntu1~16.04.9 [27.4 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libatomic1 amd64 5.4.0-6ubuntu1~16.04.9 [8,882 B]
Get:15 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libasan2 amd64 5.4.0-6ubuntu1~16.04.9 [264 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 liblsan0 amd64 5.4.0-6ubuntu1~16.04.9 [105 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libtsan0 amd64 5.4.0-6ubuntu1~16.04.9 [244 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libubsan0 amd64 5.4.0-6ubuntu1~16.04.9 [95.2 kB]
Get:19 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcilkrts5 amd64 5.4.0-6ubuntu1~16.04.9 [40.1 kB]
Get:20 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libmpx0 amd64 5.4.0-6ubuntu1~16.04.9 [9,774 B]
Get:21 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libquadmath0 amd64 5.4.0-6ubuntu1~16.04.9 [131 kB]
Get:22 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgcc-5-dev amd64 5.4.0-6ubuntu1~16.04.9 [2,242 kB]
Get:23 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 gcc-5 amd64 5.4.0-6ubuntu1~16.04.9 [8,650 kB]
Get:24 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 gcc amd64 4:5.3.1-1ubuntu1 [5,244 B]
Get:25 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libstdc++-5-dev amd64 5.4.0-6ubuntu1~16.04.9 [1,427 kB]
Get:26 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 g++-5 amd64 5.4.0-6ubuntu1~16.04.9 [8,333 kB]
Get:27 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 g++ amd64 4:5.3.1-1ubuntu1 [1,504 B]
Get:28 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 make amd64 4.1-6 [151 kB]
Get:29 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdpkg-perl all 1.18.4ubuntu1.4 [195 kB]
Get:30 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 dpkg-dev all 1.18.4ubuntu1.4 [584 kB]
Get:31 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 build-essential amd64 12.1ubuntu2 [4,758 B]
Get:32 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libfakeroot amd64 1.20.2-1ubuntu1 [25.5 kB]
Get:33 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 fakeroot amd64 1.20.2-1ubuntu1 [61.8 kB]
Get:34 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libalgorithm-diff-perl all 1.19.03-1 [47.6 kB]
Get:35 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libalgorithm-diff-xs-perl amd64 0.04-4build1 [11.0 kB]
Get:36 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libalgorithm-merge-perl all 0.08-3 [12.0 kB]
Get:37 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libfile-fcntllock-perl amd64 0.22-3 [32.0 kB]
Get:38 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 manpages-dev all 4.04-2 [2,048 kB]
Fetched 39.1 MB in 25s (1,544 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 60605 files and directories currently installed.)
Preparing to unpack .../libc6_2.23-0ubuntu10_amd64.deb ...
Unpacking libc6:amd64 (2.23-0ubuntu10) over (2.23-0ubuntu9) ...
Setting up libc6:amd64 (2.23-0ubuntu10) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Selecting previously unselected package libmpc3:amd64.
(Reading database ... 60605 files and directories currently installed.)
Preparing to unpack .../libmpc3_1.0.3-1_amd64.deb ...
Unpacking libmpc3:amd64 (1.0.3-1) ...
Preparing to unpack .../gcc-5-base_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking gcc-5-base:amd64 (5.4.0-6ubuntu1~16.04.9) over (5.4.0-6ubuntu1~16.04.5) ...
Setting up gcc-5-base:amd64 (5.4.0-6ubuntu1~16.04.9) ...
(Reading database ... 60610 files and directories currently installed.)
Preparing to unpack .../libstdc++6_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libstdc++6:amd64 (5.4.0-6ubuntu1~16.04.9) over (5.4.0-6ubuntu1~16.04.5) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Setting up libstdc++6:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Selecting previously unselected package libc-dev-bin.
(Reading database ... 60610 files and directories currently installed.)
Preparing to unpack .../libc-dev-bin_2.23-0ubuntu10_amd64.deb ...
Unpacking libc-dev-bin (2.23-0ubuntu10) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../linux-libc-dev_4.4.0-116.140_amd64.deb ...
Unpacking linux-libc-dev:amd64 (4.4.0-116.140) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../libc6-dev_2.23-0ubuntu10_amd64.deb ...
Unpacking libc6-dev:amd64 (2.23-0ubuntu10) ...
Selecting previously unselected package libisl15:amd64.
Preparing to unpack .../libisl15_0.16.1-1_amd64.deb ...
Unpacking libisl15:amd64 (0.16.1-1) ...
Selecting previously unselected package cpp-5.
Preparing to unpack .../cpp-5_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking cpp-5 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package cpp.
Preparing to unpack .../cpp_4%3a5.3.1-1ubuntu1_amd64.deb ...
Unpacking cpp (4:5.3.1-1ubuntu1) ...
Selecting previously unselected package libcc1-0:amd64.
Preparing to unpack .../libcc1-0_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libcc1-0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../libgomp1_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libgomp1:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../libitm1_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libitm1:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../libatomic1_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libatomic1:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package libasan2:amd64.
Preparing to unpack .../libasan2_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libasan2:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../liblsan0_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking liblsan0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../libtsan0_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libtsan0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package libubsan0:amd64.
Preparing to unpack .../libubsan0_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libubsan0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package libcilkrts5:amd64.
Preparing to unpack .../libcilkrts5_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libcilkrts5:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package libmpx0:amd64.
Preparing to unpack .../libmpx0_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libmpx0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../libquadmath0_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libquadmath0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package libgcc-5-dev:amd64.
Preparing to unpack .../libgcc-5-dev_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libgcc-5-dev:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package gcc-5.
Preparing to unpack .../gcc-5_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking gcc-5 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package gcc.
Preparing to unpack .../gcc_4%3a5.3.1-1ubuntu1_amd64.deb ...
Unpacking gcc (4:5.3.1-1ubuntu1) ...
Selecting previously unselected package libstdc++-5-dev:amd64.
Preparing to unpack .../libstdc++-5-dev_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libstdc++-5-dev:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package g++-5.
Preparing to unpack .../g++-5_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking g++-5 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package g++.
Preparing to unpack .../g++_4%3a5.3.1-1ubuntu1_amd64.deb ...
Unpacking g++ (4:5.3.1-1ubuntu1) ...
Selecting previously unselected package make.
Preparing to unpack .../archives/make_4.1-6_amd64.deb ...
Unpacking make (4.1-6) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../libdpkg-perl_1.18.4ubuntu1.4_all.deb ...
Unpacking libdpkg-perl (1.18.4ubuntu1.4) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../dpkg-dev_1.18.4ubuntu1.4_all.deb ...
Unpacking dpkg-dev (1.18.4ubuntu1.4) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../build-essential_12.1ubuntu2_amd64.deb ...
Unpacking build-essential (12.1ubuntu2) ...
Selecting previously unselected package libfakeroot:amd64.
Preparing to unpack .../libfakeroot_1.20.2-1ubuntu1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.20.2-1ubuntu1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../fakeroot_1.20.2-1ubuntu1_amd64.deb ...
Unpacking fakeroot (1.20.2-1ubuntu1) ...
Selecting previously unselected package libalgorithm-diff-perl.
Preparing to unpack .../libalgorithm-diff-perl_1.19.03-1_all.deb ...
Unpacking libalgorithm-diff-perl (1.19.03-1) ...
Selecting previously unselected package libalgorithm-diff-xs-perl.
Preparing to unpack .../libalgorithm-diff-xs-perl_0.04-4build1_amd64.deb ...
Unpacking libalgorithm-diff-xs-perl (0.04-4build1) ...
Selecting previously unselected package libalgorithm-merge-perl.
Preparing to unpack .../libalgorithm-merge-perl_0.08-3_all.deb ...
Unpacking libalgorithm-merge-perl (0.08-3) ...
Selecting previously unselected package libfile-fcntllock-perl.
Preparing to unpack .../libfile-fcntllock-perl_0.22-3_amd64.deb ...
Unpacking libfile-fcntllock-perl (0.22-3) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../manpages-dev_4.04-2_all.deb ...
Unpacking manpages-dev (4.04-2) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Setting up libmpc3:amd64 (1.0.3-1) ...
Setting up libc-dev-bin (2.23-0ubuntu10) ...
Setting up linux-libc-dev:amd64 (4.4.0-116.140) ...
Setting up libc6-dev:amd64 (2.23-0ubuntu10) ...
Setting up libisl15:amd64 (0.16.1-1) ...
Setting up cpp-5 (5.4.0-6ubuntu1~16.04.9) ...
Setting up cpp (4:5.3.1-1ubuntu1) ...
Setting up libcc1-0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up libgomp1:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up libitm1:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up libatomic1:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up libasan2:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up liblsan0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up libtsan0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up libubsan0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up libcilkrts5:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up libmpx0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up libquadmath0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up libgcc-5-dev:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up gcc-5 (5.4.0-6ubuntu1~16.04.9) ...
Setting up gcc (4:5.3.1-1ubuntu1) ...
Setting up libstdc++-5-dev:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up g++-5 (5.4.0-6ubuntu1~16.04.9) ...
Setting up g++ (4:5.3.1-1ubuntu1) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up make (4.1-6) ...
Setting up libdpkg-perl (1.18.4ubuntu1.4) ...
Setting up dpkg-dev (1.18.4ubuntu1.4) ...
Setting up build-essential (12.1ubuntu2) ...
Setting up libfakeroot:amd64 (1.20.2-1ubuntu1) ...
Setting up fakeroot (1.20.2-1ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
Setting up libalgorithm-diff-perl (1.19.03-1) ...
Setting up libalgorithm-diff-xs-perl (0.04-4build1) ...
Setting up libalgorithm-merge-perl (0.08-3) ...
Setting up libfile-fcntllock-perl (0.22-3) ...
Setting up manpages-dev (4.04-2) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
 
cs




* 사전 설치 전 요구 사항

 - git

 - pkg-config

 - libtool

 - autoconf



1. git clone을 통해 jzmq를 내려받습니다.

1
2
3
4
5
6
7
8
$ git clone http://github.com/nathanmarz/jzmq.git
Cloning into 'jzmq'...
remote: Counting objects: 611, done.
remote: Total 611 (delta 0), reused 0 (delta 0), pack-reused 611
Receiving objects: 100% (611/611), 340.22 KiB | 71.00 KiB/s, done.
Resolving deltas: 100% (258/258), done.
Checking connectivity... done.
 
cs



2. 적절한 위치로 해당 디렉터리를 이동 혹은 복사합니다.

1
2
$ sudo cp -r ./jzmq/ /usr/local/
 
cs



3. 관련 계정에 소유 권한을 부여합니다.

1
2
$ sudo chown -R hadoop-user:hadoop ./jzmq/
 
cs



4. jzmq 디렉터리 내로 이동합니다.

1
2
$ cd ./jzmq/
 
cs



5. autogen.sh 스크립트 파일을 실행합니다.

 : ./autogen.sh

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$ ./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I config --force -I config
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
libtoolize: copying file 'config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'config'.
libtoolize: copying file 'config/libtool.m4'
libtoolize: copying file 'config/ltoptions.m4'
libtoolize: copying file 'config/ltsugar.m4'
libtoolize: copying file 'config/ltversion.m4'
libtoolize: copying file 'config/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --include=config --force
autoreconf: running: /usr/bin/autoheader --include=config --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:28: installing 'config/compile'
configure.ac:14: installing 'config/missing'
src/Makefile.am: installing 'config/depcomp'
autoreconf: Leaving directory `.'
 
cs



6. configure 설정 파일을 실행합니다.

 : ./configure

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1001' is supported by ustar format... yes
checking whether GID '1001' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gawk... (cached) gawk
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ZeroMQ... yes
checking zmq.h usability... yes
checking zmq.h presence... yes
checking for zmq.h... yes
checking for zmq_init in -lzmq... yes
checking for javac... /usr/bin/javac
checking for javah... /usr/bin/javah
checking for jar... /usr/bin/jar
checking for jni.h in /usr/lib/jvm/java-8-oracle/include... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating perf/Makefile
config.status: creating src/config.hpp
config.status: executing depfiles commands
config.status: executing libtool commands
 
cs



7. make 명령어를 실행합니다.

 : make

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
$ make
Making all in src
make[1]: Entering directory '/usr/local/jzmq/src'
 cd .. && /bin/bash /usr/local/jzmq/config/missing automake-1.15 --gnu src/Makefile
 cd .. && /bin/bash ./config.status src/Makefile depfiles
config.status: creating src/Makefile
config.status: executing depfiles commands
CLASSPATH=.:./.${CLASSPATH:+":$CLASSPATH"} /usr/bin/javac -d .    org/zeromq/ZMQ.java org/zeromq/ZMQException.java org/zeromq/ZMQQueue.java org/zeromq/ZMQForwarder.java org/zeromq/ZMQStreamer.java
echo timestamp > classnoinst.stamp
CLASSPATH=.:./.${CLASSPATH:+":$CLASSPATH"} /usr/bin/javah -jni -classpath . org.zeromq.ZMQ
CLASSPATH=.:./.${CLASSPATH:+":$CLASSPATH"} /usr/bin/javah -jni -classpath . org.zeromq.ZMQ
CLASSPATH=.:./.${CLASSPATH:+":$CLASSPATH"} /usr/bin/javah -jni -classpath . org.zeromq.ZMQ
CLASSPATH=.:./.${CLASSPATH:+":$CLASSPATH"} /usr/bin/javah -jni -classpath . org.zeromq.ZMQ
CLASSPATH=.:./.${CLASSPATH:+":$CLASSPATH"} /usr/bin/javah -jni -classpath . org.zeromq.ZMQ
make  all-am
make[2]: Entering directory '/usr/local/jzmq/src'
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.   -D_REENTRANT -D_THREAD_SAFE  -I/usr/local/include   -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -Wall -g -O2 -MT libjzmq_la-ZMQ.lo -MD -MP -MF .deps/libjzmq_la-ZMQ.Tpo -c -o libjzmq_la-ZMQ.lo `test -f 'ZMQ.cpp' || echo './'`ZMQ.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -Wall -g -O2 -MT libjzmq_la-ZMQ.lo -MD -MP -MF .deps/libjzmq_la-ZMQ.Tpo -c ZMQ.cpp  -fPIC -DPIC -o .libs/libjzmq_la-ZMQ.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -Wall -g -O2 -MT libjzmq_la-ZMQ.lo -MD -MP -MF .deps/libjzmq_la-ZMQ.Tpo -c ZMQ.cpp -o libjzmq_la-ZMQ.o >/dev/null 2>&1
mv -f .deps/libjzmq_la-ZMQ.Tpo .deps/libjzmq_la-ZMQ.Plo
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.   -D_REENTRANT -D_THREAD_SAFE  -I/usr/local/include   -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -Wall -g -O2 -MT libjzmq_la-Context.lo -MD -MP -MF .deps/libjzmq_la-Context.Tpo -c -o libjzmq_la-Context.lo `test -f 'Context.cpp' || echo './'`Context.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -Wall -g -O2 -MT libjzmq_la-Context.lo -MD -MP -MF .deps/libjzmq_la-Context.Tpo -c Context.cpp  -fPIC -DPIC -o .libs/libjzmq_la-Context.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -Wall -g -O2 -MT libjzmq_la-Context.lo -MD -MP -MF .deps/libjzmq_la-Context.Tpo -c Context.cpp -o libjzmq_la-Context.o >/dev/null 2>&1
mv -f .deps/libjzmq_la-Context.Tpo .deps/libjzmq_la-Context.Plo
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.   -D_REENTRANT -D_THREAD_SAFE  -I/usr/local/include   -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -Wall -g -O2 -MT libjzmq_la-Socket.lo -MD -MP -MF .deps/libjzmq_la-Socket.Tpo -c -o libjzmq_la-Socket.lo `test -f 'Socket.cpp' || echo './'`Socket.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -Wall -g -O2 -MT libjzmq_la-Socket.lo -MD -MP -MF .deps/libjzmq_la-Socket.Tpo -c Socket.cpp  -fPIC -DPIC -o .libs/libjzmq_la-Socket.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -Wall -g -O2 -MT libjzmq_la-Socket.lo -MD -MP -MF .deps/libjzmq_la-Socket.Tpo -c Socket.cpp -o libjzmq_la-Socket.o >/dev/null 2>&1
mv -f .deps/libjzmq_la-Socket.Tpo .deps/libjzmq_la-Socket.Plo
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.   -D_REENTRANT -D_THREAD_SAFE  -I/usr/local/include   -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -Wall -g -O2 -MT libjzmq_la-Poller.lo -MD -MP -MF .deps/libjzmq_la-Poller.Tpo -c -o libjzmq_la-Poller.lo `test -f 'Poller.cpp' || echo './'`Poller.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -Wall -g -O2 -MT libjzmq_la-Poller.lo -MD -MP -MF .deps/libjzmq_la-Poller.Tpo -c Poller.cpp  -fPIC -DPIC -o .libs/libjzmq_la-Poller.o
Poller.cpp: In function ‘jlong Java_org_zeromq_ZMQ_00024Poller_run_1poll(JNIEnv*, jobject, jint, jobjectArray, jshortArray, jshortArray, jlong)’:
Poller.cpp:47:9: warning: variable ‘lr_0mq’ set but not used [-Wunused-but-set-variable]
     int lr_0mq = 0;
         ^
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -Wall -g -O2 -MT libjzmq_la-Poller.lo -MD -MP -MF .deps/libjzmq_la-Poller.Tpo -c Poller.cpp -o libjzmq_la-Poller.o >/dev/null 2>&1
mv -f .deps/libjzmq_la-Poller.Tpo .deps/libjzmq_la-Poller.Plo
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.   -D_REENTRANT -D_THREAD_SAFE  -I/usr/local/include   -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -Wall -g -O2 -MT libjzmq_la-util.lo -MD -MP -MF .deps/libjzmq_la-util.Tpo -c -o libjzmq_la-util.lo `test -f 'util.cpp' || echo './'`util.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -Wall -g -O2 -MT libjzmq_la-util.lo -MD -MP -MF .deps/libjzmq_la-util.Tpo -c util.cpp  -fPIC -DPIC -o .libs/libjzmq_la-util.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -Wall -g -O2 -MT libjzmq_la-util.lo -MD -MP -MF .deps/libjzmq_la-util.Tpo -c util.cpp -o libjzmq_la-util.o >/dev/null 2>&1
mv -f .deps/libjzmq_la-util.Tpo .deps/libjzmq_la-util.Plo
/bin/bash ../libtool  --tag=CXX   --mode=link g++ -Wall -g -O2 -version-info 0:0:0 -L/usr/local/lib -lzmq   -o libjzmq.la -rpath /usr/local/lib libjzmq_la-ZMQ.lo libjzmq_la-Context.lo libjzmq_la-Socket.lo libjzmq_la-Poller.lo libjzmq_la-util.lo    -lzmq
libtool: link: g++  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbeginS.o  .libs/libjzmq_la-ZMQ.o .libs/libjzmq_la-Context.o .libs/libjzmq_la-Socket.o .libs/libjzmq_la-Poller.o .libs/libjzmq_la-util.o   -L/usr/local/lib /usr/local/lib/libzmq.so -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/5/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o  -g -O2   -Wl,-soname -Wl,libjzmq.so.0 -o .libs/libjzmq.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libjzmq.so.0" && ln -s "libjzmq.so.0.0.0" "libjzmq.so.0")
libtool: link: (cd ".libs" && rm -f "libjzmq.so" && ln -s "libjzmq.so.0.0.0" "libjzmq.so")
libtool: link: ar cru .libs/libjzmq.a  libjzmq_la-ZMQ.o libjzmq_la-Context.o libjzmq_la-Socket.o libjzmq_la-Poller.o libjzmq_la-util.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib .libs/libjzmq.a
libtool: link: ( cd ".libs" && rm -f "libjzmq.la" && ln -s "../libjzmq.la" "libjzmq.la" )
/usr/bin/jar cf  zmq.jar org/zeromq/*.class
make[2]: Leaving directory '/usr/local/jzmq/src'
make[1]: Leaving directory '/usr/local/jzmq/src'
Making all in perf
make[1]: Entering directory '/usr/local/jzmq/perf'
make  all-am
make[2]: Entering directory '/usr/local/jzmq/perf'
CLASSPATH=.:./.${CLASSPATH:+":$CLASSPATH"} /usr/bin/javac -d . -classpath ../src   local_lat.java local_thr.java remote_lat.java remote_thr.java
echo timestamp > classnoinst.stamp
/usr/bin/jar cf  zmq-perf.jar *.class
make[2]: Leaving directory '/usr/local/jzmq/perf'
make[1]: Leaving directory '/usr/local/jzmq/perf'
make[1]: Entering directory '/usr/local/jzmq'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/usr/local/jzmq'
 
cs



8. make install을 실행합니다.

 : sudo make install

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
$ sudo make install
Making install in src
make[1]: Entering directory '/usr/local/jzmq/src'
make  install-am
make[2]: Entering directory '/usr/local/jzmq/src'
make[3]: Entering directory '/usr/local/jzmq/src'
 /bin/mkdir -p '/usr/local/lib'
 /bin/bash ../libtool   --mode=install /usr/bin/install -c   libjzmq.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libjzmq.so.0.0.0 /usr/local/lib/libjzmq.so.0.0.0
libtool: install: (cd /usr/local/lib && { ln -s -f libjzmq.so.0.0.0 libjzmq.so.0 || { rm -f libjzmq.so.0 && ln -s libjzmq.so.0.0.0 libjzmq.so.0; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libjzmq.so.0.0.0 libjzmq.so || { rm -f libjzmq.so && ln -s libjzmq.so.0.0.0 libjzmq.so; }; })
libtool: install: /usr/bin/install -c .libs/libjzmq.lai /usr/local/lib/libjzmq.la
libtool: install: /usr/bin/install -c .libs/libjzmq.a /usr/local/lib/libjzmq.a
libtool: install: chmod 644 /usr/local/lib/libjzmq.a
libtool: install: ranlib /usr/local/lib/libjzmq.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib
 
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the ' ' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'
 
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /bin/mkdir -p '/usr/local/share/java'
 /usr/bin/install -c -m 644 zmq.jar '/usr/local/share/java'
make[3]: Leaving directory '/usr/local/jzmq/src'
make[2]: Leaving directory '/usr/local/jzmq/src'
make[1]: Leaving directory '/usr/local/jzmq/src'
Making install in perf
make[1]: Entering directory '/usr/local/jzmq/perf'
make  install-am
make[2]: Entering directory '/usr/local/jzmq/perf'
make[3]: Entering directory '/usr/local/jzmq/perf'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/usr/local/jzmq/perf'
make[2]: Leaving directory '/usr/local/jzmq/perf'
make[1]: Leaving directory '/usr/local/jzmq/perf'
make[1]: Entering directory '/usr/local/jzmq'
make[2]: Entering directory '/usr/local/jzmq'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/usr/local/jzmq'
make[1]: Leaving directory '/usr/local/jzmq'
 
cs



+ Recent posts