India's top court on Monday ordered the southern state of Karnataka to release water from a disputed river to neighboring Tamil Nadu after violence erupted in both states over water sharing. The Supreme Court ordered Karnataka to release 12,000 cusecs (cubic feet per second) per day to Tamil Nadu until Sept. 20. Farmers in both states, who depend on river water to irrigate their crops, have complained of severe water shortages. Karnataka officials told the court that the state did not have enough water reserves to share. The Cauvery River, which originates in Karnataka and flows into Tamil Nadu, has been the source of more than a century of tension between the states, and the anger has previously turned violent — in 1991 an interim court order telling Karnataka to release water to Tamil Nadu sparked riots against Tamils in Bengaluru, leaving more than 18 people dead. "Rapid Action Force Teams have been deployed all over the city," Bengaluru city police said on Twitter on Monday. "We urge to all Bengalurians...Stay calm and not to be panic." Bengaluru is home to top Indian IT companies such as Infosys Ltd, Wipro Ltd and Mphasis as well has offices of several multinational companies like Samsung Electronics. A witness saw a group of 20 to 30 protesters, some armed with sticks and stones, stopping and searching cars. They pulled several Tamil Nadu-registered trucks and motorcycles to the side of the road and pelted them with stones. At least one truck driver was beaten with a stick. The protesters let Karnataka-registered vehicles through the makeshift roadblock. Police said that more than 15,000 officers had been deployed to keep the peace including riot police and border security forces. They denied media reports that forces had imposed prohibitory orders on crowds gathering in public places. Earlier on Monday, protesters in Tamil Nadu vandalized a hotel in the city of Chennai owned by people from Karnataka, triggering violent protests in both states. Last week, the Supreme Court had ordered Karnataka to release 15,000 cusecs of water for 10 days to Tamil Nadu, a move that led to protests by Karnataka farmers, who say they have no water for their fields. The Karnataka government then appealed the ruling to the top court, which reduced the daily supply to Tamil Nadu. Police in India's IT hub of Bangalore, the capital of Karnataka, passed prohibitory orders preventing the gathering of more than five people after angry mobs smashed the windows of several buses from Tamil Nadu and attacked bus drivers. Many schools in Bangalore were closed on Monday. Offices were closed and shop owners downed shutters as groups of young men wandered the streets attacking properties owned by people from Tamil Nadu. In the city of Mandya, 100 km southeast of Bangalore, protesters set fire to trucks and buses bearing Tamil Nadu license plates. In the nearby city of Mysore, several vehicles were set ablaze and mobs of young men roamed the streets wielding iron rods, smashing windows of shops owned by people from Tamil Nadu. Karnataka authorities have stopped bus services to Tamil Nadu for an unspecified period of time to prevent passengers from being attacked. Farmers in India are largely dependent on monsoon rains and rivers to irrigate their crops. But with successive poor monsoons, rivers and reservoirs have been running dry and farmers in many places have been forced to reduce the number of crops they grow.