Did America know japan was going to attack pearl harbor?

There are books written that state that the US did know.