The latter is more portable, while the former only works on systems where /bin/bash exists (or is symlinked appropriately).
This includes an HDFS docker image to use with the integration tests. Co-authored-by: Ivan Andreev <ivandeex@gmail.com> Co-authored-by: Nick Craig-Wood <nick@craig-wood.com>