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

+ Recent posts