Although I am an active user of SE, I have chosen to remain anonymous because of the nature of this question. I am currently a graduate student at a university that lands in the mid 70s among U.S. News' top graduate schools in mathematics, which by my understanding is very poor. My grades were quite good and although I didn't do terrifically on the subject GRE, I had a few offers from schools in the mid 40 range which I turned down. This was partially because I think I undervalued the importance of choosing a better school, and for a variety of personal reasons. My university has some unique opportunities in applied math, but is otherwise unremarkable.
As I enter my second year, I am increasingly convinced that a career as an active research mathematician is what I want for myself. However, I've heard so much contradictory information that I'm unsure if this is a realistic goal given the status of my university. While a variety of people have told me that there are plenty of desirable jobs available in "industry," the general consensus is that graduate students from low-ranking schools tend to end up as community college professors. The fact that most universities (including my own) are full of doctors from strictly high ranking schools seems to support this.
I have the chance to receive a terminal masters at the end of this year, rather than continue on for another four and complete my PhD, so I'm considering trying to retake the GRE and reapplying (I am unclear whether this is frowned upon in the math community in general, although at my school I have been reassured it is not). On the other hand, my university has a few professors who seem to be well known within their niche, mainly because their particular specialties are very unique.
My general questions are these: How important is the quality of the university when it comes to having a full career in pure mathematics research? Is a well known adviser a factor, possibly outweighing the school? Is this significantly different among applied mathematicians?