Skip to content

Commit 9db6453

Browse files
author
Nathan Marz
committed
log the host and port of Nimbus when using storm client
1 parent 882e5f0 commit 9db6453

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/clj/backtype/storm/thrift.clj

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
(:import [backtype.storm.clojure RichShellBolt RichShellSpout])
1111
(:import [org.apache.thrift7.protocol TBinaryProtocol TProtocol])
1212
(:import [org.apache.thrift7.transport TTransport TFramedTransport TSocket])
13-
(:use [backtype.storm util config])
13+
(:use [backtype.storm util config log])
1414
)
1515

1616
(defn instantiate-java-object [^JavaObject obj]
@@ -49,6 +49,7 @@
4949
))
5050

5151
(defn nimbus-client-and-conn [host port]
52+
(log-message "Connecting to Nimbus at " host ":" port)
5253
(let [transport (TFramedTransport. (TSocket. host port))
5354
prot (TBinaryProtocol. transport)
5455
client (Nimbus$Client. prot)]

0 commit comments

Comments
 (0)