incompatibility of max_allowed_packet in mysql
16777216 is a reasonable value; 1024 is not.  The error message is just a warning, saying that 1024 is below the minimum allowed value.

Try the mysqldump with 16777216.