The Tale of the Utterly Gutsy Padawan (Earth-2356)

The Tale of the Utterly Gutsy Padawan was Jiraiya's first book, written while training the Ame orphans. It sold poorly; nobody attended Jiraiya's book signing. Obi-Wan Kenobi enjoyed it, however, hoping that he would grow up to be just like the protagonist.

Plot
The story follows the adventures of a Padawan named Nikito, a name Jiraiya came up with while eating noodles. Minato notes that Nikito's personality and some of his travels were very similar to Jiraiya's, thus making it a sort of autobiography. Nikito never gives up and vows to break the "curse", which represents the cycles of war, conflict, and hatred that occupies the galaxy. As this was an idea Jiraiya first heard spoken of by Nagato, the novel was dedicated to him.

Source

 * https://naruto.fandom.com/wiki/The_Tale_of_the_Utterly_Gutsy_Shinobi.