Question: who wrote the theme to the andy griffith show
Answer: The show 's theme music , `` The Fishin ' Hole '' , was composed by Earle Hagen and Herbert Spencer , with lyrics written by Everett Sloane , who also guest starred as Jubal Foster in the episode `` The Keeper of the Flame '' ( 1962 ) .