The jail terms will be followed by deportation.
The 36,000-dwt Arrilah-I (built 2011) was hijacked while en route from Australia to Dubai.
United Arab Emirates special forces, backed by air force units and in coordination with the Bahrain-based US Fifth Fleet, freed the Abu Dhabi-owned ship a day after it was seized.