A former judge at the centre of a series of fraudulent bankruptcy cases has been sentenced to 8 years and six months.