What is the version of the Nomad agent?
How many file inside the file hadoop-${var.hadoop_version}.tar.gz
?
The latest versions imposed a limit to how many files can be extracted by default.
The setting is now an agent side setting to override it.
ref: