2. Given that the three vertices $A, B, C$ of the right triangle $\triangle A B C$ are all on the parabola $y=x^{2}$, and the hypotenuse $A B$ is parallel to the $x$-axis, then the altitude $C D$ from $C$ to $A B$ equals $\qquad$ .