Support Questions

Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

Iot Demo View Not Working 404 Error

I have installed as per the documentation. Also i have done the port forwarding to 8081.

when i access the view from the URL not able to see the html page

Response from chrome:-


Output of Curl

[root@sandbox storm-demo-webapp]# curl

<title>Error 404 </title>


Problem accessing /storm-demo-app/index.html. Reason:

    Not Found

Powered by Jetty:// 9.3.11.v20160721
[root@sandbox storm-demo-webapp]#

Kindly guide me to proceed further.


Super Mentor

@Subramaniyam KMV

Have you build the project and started it as following?

mvn clean package
mvn jetty:run -Djetty.port=8081

. Please verify if the port is opened for listening?

netstat -tnlpa | grep 8081

. Please make sure that you have unblocked port 8081 on your virtualbox as described in the following link:


I have build using the following

VERSION=`hdp-select status hadoop-client | sed 's/hadoop-client - \([0-9]\.[0-9]\).*/\1/'`
sudo git clone   /var/lib/ambari-server/resources/stacks/HDP/$VERSION/services/IOTDEMO   

#(Optional) Zeppelin already comes installed on HDP 2.4 sandbox
#sudo git clone   /var/lib/ambari-server/resources/stacks/HDP/$VERSION/services/ZEPPELIN   

#on sandbox
sudo service ambari restart

Port Forwarding --> 8091 is given

Port is working. please see the output

netstat -tnlpa | grep 8081 tcp 0 0 :::8081 :::* LISTEN 9289/java

[root@sandbox target]#

Super Mentor

@Subramaniyam KMV

Good that the port 8081 is actually opened. So now in order to access that port outside the VM (sandbox) you should add that port in the Virtual Machine N/W configuration as mentioned in the following image. (From previously shared link)

Port Forwarding for port 8081 need to be enabled.

Hi JaySenSharma,

Now i'am able to launch the IOT Demo UI, but i'm facing the Websocket error as attached.

Can you tell me what could be wrong ??




Super Mentor

@Subramaniyam KMV

Usually it is best practice to have one thread dedicated to one specific query so that the thread becomes more beneficial for the readers.

As your original issue is resolved by Port Forwarding ennoblement to 8081 hence i will suggest you to please mark this thread as Answered (Accepted) and open a new thread for the websocket issue.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.