added `--sample` hdfsavro command. fixed sync and eof handling.