Hardware store burglar sentenced to 17 years