change 'sink.batchsize' to 'batchsize'