jzmq

怎样解决 no jzmq in java.library.path

元气小坏坏 提交于 2020-10-28 10:24:33
确保zmq的各种library有安装正确。检查方法:查看/usr/local/lib, 看里面有没有libjzmq.a, libjzmq.dylib, libzmq.a, libjzmq.dylib 2.正确的安装方法是:(1)安装libzmq-master (2)安装zeromq-3.2.4,注意版本号最好选这个。试过最新版本号会报错 (3)安装jzmq-master java binding 直接搜这些关键词都能找到对应地github网页或者官网,然后按步骤输指令即可 。 3.看看问题是不是出在java.library.path,打开 ~/.bash_profile, 增加 export LD_LIBRARY_PATH=/usr/local/lib. 或者直接在命令行里提供路径,比如: javac -classpath /usr/local/share/java/zmq.jar HelloWorldClient.java java -classpath .:/usr/local/share/java/zmq.jar -Djava.library.path=/usr/local/lib HelloWorldClient 在按照 ZeroMq官方 提供的方法 $ ./autogen.sh$ ./configure$ make$ make install

Why one might need JeroMQ if it can use JZMQ?

别等时光非礼了梦想. 提交于 2020-07-18 11:50:28
问题 Simple question. Why "porting" zmq on java and call it JeroMQ is good idea? 回答1: JeroMQ is an official project of the ZeroMQ community; it's a full port of the C++ libzmq library, supporting version 3.2. Advantages: Pure Java, so no need to link in C/C++ via JNI. This is extremely helpful on devices where native libraries are difficult or impossible. 100% compatible with the JZMQ API (the two projects agreed on a single API so you can import one or the other transparently). 100% compatible

Get TCP address information in ZeroMQ

浪子不回头ぞ 提交于 2020-07-18 10:03:27
问题 I want to connect clients to a server using ZeroMQ (java bindings, jzmq), but I need the TCP information badly, for example the TCP/IP address of a client request! The problem is, for being able to announce a service in the network I need to grab the TCP address of a request to be able to redirect clients to that service. The broker is a central "service registry" in that case. However, having ZeroMQ services on both sides, I do not see an option to retrieve that information. What I do now,

Storm workers not starting

自闭症网瘾萝莉.ら 提交于 2020-01-15 23:45:30
问题 My Nimbus host and supervisor run properly. When I submit a wordcount topology to the Nimbus host it successfully upload. After uploading topology supervisor giving error kill: No such process When I check the worker-6001.log and 6002.log I found a following error: 2014-02-09 17:20:05 b.s.m.TransportFactory [INFO] Storm peer transport plugin:backtype.storm.messaging.zmq 2014-02-09 17:20:05 b.s.d.worker [ERROR] Error on initialization of server mk-worker java.lang.UnsatisfiedLinkError: no jzmq

To discover other device IP:Port in same wifi network using ZeroMQ

限于喜欢 提交于 2020-01-06 07:34:11
问题 I want to discover all Android devices IP and Port in same wifi network using ZeroMQ? My app basically connect all device in same wifi network (no internet needed) and message to each other. Once ip and port I know I am send message successfully but how to know all device internet Protocol (ip) Using ZeroMQ? 回答1: Principle Part A) Every IEEE 802.x CSMA/CD network "collision domain" ( wifi AP/SSID is such one ) has to be managed so as to work well. Thus the Address Resolution Protocol [ARP]

Can ZMQ publish message to specific client by pub-sub socket?

六眼飞鱼酱① 提交于 2019-12-25 04:43:12
问题 I am using pub/Sub Socket and currently the server subscribe byte[0] (all topics) while client subscribe byte[16] - a specific header as topic However, I cannot stop client to subscribe byte[0] which can receive all other messages. My application is a like a app game which has one single server using ZMQ as connection and many clients have a ZMQ sockets to talk with server. What pattern or socket I should use in this case? Thanks 回答1: " ... cannot stop client to subscribe byte[0] which can

Can ZMQ publish message to specific client by pub-sub socket?

Deadly 提交于 2019-12-25 04:43:04
问题 I am using pub/Sub Socket and currently the server subscribe byte[0] (all topics) while client subscribe byte[16] - a specific header as topic However, I cannot stop client to subscribe byte[0] which can receive all other messages. My application is a like a app game which has one single server using ZMQ as connection and many clients have a ZMQ sockets to talk with server. What pattern or socket I should use in this case? Thanks 回答1: " ... cannot stop client to subscribe byte[0] which can

JAVA_HOME NOT SET WHEN INSTALL Storm

本小妞迷上赌 提交于 2019-12-25 02:39:14
问题 I want to install Storm in my own machine(Ubuntu 12.04 LTS) and I follow the instructions in https://github.com/nathanmarz/storm/wiki/Installing-native-dependencies. When I installing jzmq, I firstly successfully perform the command sudo ./autogen.sh however, when I perform sudo ./configure The configuration error: 'configure: error: the JAVA_HOME environment variable must be set to your JDK location.' appears. I have set the JAVA_HOME using sudo gedit /etc/profile export JAVA_HOME=/usr/lib

No messages match using SUB in Java with ZeroMQ

こ雲淡風輕ζ 提交于 2019-12-23 06:05:46
问题 I'm trying to use Java client with ZeroMQ. When subscribing to any prefix, the Java client matches no messages, although a similar Python client matches messages as expected. The Python server context = zmq.Context() socket = context.socket(zmq.PUB) socket.bind("tcp://*:5556") for i in range(100): r = "XXX " + i socket.send_string(r) time.sleep(random.randint(0,10)) The Python client working fine context = zmq.Context() socket = context.socket(zmq.SUB) socket.connect("tcp://localhost:5556")

how to implement Pub-Sub Network with a Proxy by using XPUB and XSUB in ZeroMQ(jzmq) 3.xx

不打扰是莪最后的温柔 提交于 2019-12-21 17:13:01
问题 I am trying to implement using XPUB and XSUB as provided in this below figure. I have gone through their examples provided but could not get one for XPUB and XSUB in Java. Here they have given an example in C which is little complex as I am new to ZeroMQ. I am trying to use it in android using jni wrapped version. Please help me to find an example, how to implement this Pub-Sub Network with a Proxy in ZeroMQ using java. Currently I am referring http://zguide.zeromq.org/page:all I have tried