I don't believe anybody at Pearl Harbor knew the attack was coming. I am pretty sure though that FDR and his inner circle had advanced warning, and allowed it to happen so we would have a reason to get involved in a war that up to that point, the American people had zero interest in participating in.