A local court on Wednesday sentenced eight persons to four-year rigorous imprisonment,while acquitting six others, including a BJP legislator, in a case of setting ablaze houses during last year's communal violence in Kandhamal district of Orissa.