A total solar eclipse will create a celestial spectacle in the sky for the first time in more than two years.