Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

mosquitto installation on hdp2.5

avatar
Rising Star

Can some one tell me how to install the mosquitto on hdp2.5 sandbox

1 ACCEPTED SOLUTION

avatar
Super Guru

@Subramaniyam KMV

I assume you mean mosquito mqtt.

Here is an example of installation on centos-7:

https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-the-mosquitto-mqtt-messag...

You can probably skip the "secure" part.

This is not specific to HDP 2.5, you can assume that the sandbox is just a Centos VM for your case. What it matters is the OS and availability of resources.

View solution in original post

5 REPLIES 5

avatar
Super Guru

@Subramaniyam KMV

I assume you mean mosquito mqtt.

Here is an example of installation on centos-7:

https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-the-mosquitto-mqtt-messag...

You can probably skip the "secure" part.

This is not specific to HDP 2.5, you can assume that the sandbox is just a Centos VM for your case. What it matters is the OS and availability of resources.

avatar
Rising Star

i think HDP 2.5 is Cent OS 6.8, will the above steps will be applicable to the HDP 2.5 sandbox ??

avatar
Super Guru

@Subramaniyam KMV

Go to: https://mosquitto.org/download/ and follow Centos 6 instructions.

If this helps, please vote/accept best answer. Time spent to help should be appreciated.

avatar
Master Guru

o install a Mosquitto MQTT Server on Centos7

yum -y install unzip

Step 1: Add the CentOS 7 mosquitto repository

cd /etc/yum.repos.d

wget http://download.opensuse.org/repositories/home:/oojah:/mqtt/CentOS_CentOS-7/home:oojah:mqtt.repo

sudo yum update

Step 2: Install mosquitto & mosquitto-clients

sudo yum install -y mosquitto mosquitto-clients

Step 3: Run mosquitto

sudo su /usr/sbin/mosquitto -d -c /etc/mosquitto/mosquitto.conf > /var/log/mosquitto.log 2>&1

https://community.hortonworks.com/content/kbentry/55839/reading-sensor-data-from-remote-sensors-on-r...

avatar
Rising Star

i think HDP 2.5 is Cent OS 6.8, will the above steps will be applicable to the HDP 2.5 sandbox ??