Help us understand the problem. What is going on with this article?

MQTT(RabbitMQ) + NiFi

More than 1 year has passed since last update.

Download page:


Install :

sudo yum install erlang
sudo yum install socat
sudo rpm -ivh rabbitmq-server-3.6.14-1.el7.noarch.rpm

Run RabbitMQ Server

Start the Server

sudo chkconfig rabbitmq-server on
sudo /sbin/service rabbitmq-server start
sudo /sbin/service rabbitmq-server stop

Check the port opened:

sudo netstat -a -t --numeric-ports -p
sudo rabbitmqctl status

Add RabbitMQ Management Plugin

sudo rabbitmq-plugins enable rabbitmq_management

sudo rabbitmqctl add_user admin_user admin_password

sudo rabbitmqctl add_user admin_user admin_password
sudo rabbitmqctl set_user_tags admin_user administrator

# add permission to /

[centos@zzeng-hdp-ambari ~]$ sudo rabbitmqctl list_vhosts
Listing vhosts
[centos@zzeng-hdp-ambari ~]$

Start / Stop RabbitMQ service

# stop the local node
sudo service rabbitmq-server stop

# start it back
sudo service rabbitmq-server start
sudo service rabbitmq-server status

Prepare MQTT Client env

curl -o
sudo python

sudo pip install pika
Solutions Engineer Manager, Japan
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away