You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sudo visudo
>/etc/sudoers file
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
add line >> mi6 ALL=(ALL:ALL) NOPASSWD: ALL
---
^ change to user
3 Add privillege to shell files
> In exec_api_samza
sudo chmod 755 samza
> In hello-samza/bin/
sudo chmod 755 grid
4 Open ports in digitalocean droplet
sudo ufw allow 3000 //for node server
sudo ufw allow 8088 //for hadoop server
5 Start the server
npm start
or
npm install forever -g
forever start ./bin/www
Using the api
//for starting the activity
http://localhost:3000/start_dfs//for stopping the activity
http://localhost:3000/stop_dfs//request system stats periodically
http://localhost:3000/stats_dfs