Rumor has it that McCartney would have played Frodo, George Harrison would’ve portrayed Gandalf, Ringo Starr would’ve been Sam, and, funnily enough, John Lennon would have played Gollum.
Fortunately, Tolkien himself had the wisdom to cast this idea into the fires of Orodruin.