Assume that I am using Tableau Desktop and have a live connection to Cloudera Hadoop data. I need to press F5 to refresh the visualization. Is there any way to automatically refresh the visualization every x minutes instead of pressing F5 everytime?

Here is how we can refresh the dashboard in every 3 seconds:
Replace api src and the server URL with ours. The interval below is for 3 seconds. Tableau JavaScript API