A former Walmart employee who pleaded guilty to stabbing two people while on duty was sentenced to eight years in prison, authorities announced Tuesday afternoon.