Man sentenced to 8 years in cannabis case