Magnetohydrodynamic rotation of electrically conducting liquid in a cylindrical vessel of finite dimensions