There is no open container laws on a boat in the CA ocean. While it is not illegal to crack a cold one, it is illegal to operate the vessel while impaired or under the influence. Don't be drunk OTW, don't blow more than a .08, or act stupid enough to give them a reason to deem you "under the influence", and you will be fine.
Getting legal advice from strangers on the internet? #Winning!