Array modifier's coord. system
Add a curve with 2 control points
Edit mode, change type to Poli
On the sphere, add an Array Modifier select Fit Type=Curve and select the curve as target object
add a Deform/Curve modifier select the curve as target