Pearl Harbor could have been predicted by a modern intelligence agency, of the sort the Department of War created in January 1942 (the timing is not accidental). In fact, nobody was in charge of putting top secret intelligence together. In fact, it was no secret that war with Japan was imminent, and Pearl Harbor received two warning messages ten days before the attack, which were pretty well ignored by the authorities there. General Short, in charge of the defenses, was a fossil who disregarded the importance of his post and sent misleading messages about readiness to Washington.
The US had been waging war in the Atlantic against Germany for about four months by the time of Pearl Harbor, and so Pearl Harbor was largely irrelevant for war against Germany, which Roosevelt wanted.