JAVA_OPTS is a sequence of strings, so the space gets inserted when the sequence is joined inside of YARN.