So you're looking to become a mortgage loan originator/banker/broker?
If so, just find a legit company. They will pay for your licensing/training. Also, look for an actual lender and not a broker, as they have far more staying power. The constantly increasing regulation is pushing brokers out of the market.
You have to be sponsored by a company - they will tell you the process you need. In short, you will have to pass a background check, be fingerprinted and then take a 20 hour course then pass the NMLS national test as well as the state test for any state you want to be licensed in. 39 of the states have a Uniform State Test that is pretty easy, but as of April 1, the test increases from 25 to 125 questions.