[SPARK-8902] Correctly print hostname in error
[SPARK-8902] Correctly print hostname in error

With "+" the strings are separate expressions, and format() is called on the last string before concatenation. (So substitution does not happen.) Without "+" the string literals are merged first by the parser, so format() is called on the complete string.

Should I make a JIRA for this?

Author: Daniel Darabos <darabos.daniel@gmail.com>

Closes #7288 from darabos/patch-2 and squashes the following commits:

be0d3b7 [Daniel Darabos] Correctly print hostname in error

(cherry picked from commit 5687f76552369fa20b3a4385eab4810214653aa7)
Signed-off-by: Kousuke Saruta <7d45abe39fd242ee2f6575da28f13d66568418b3@oss.nttdata.co.jp>

andrewor14/iolap,andrewor14/iolap,andrewor14/iolap,andrewor14/iolap,andrewor14/iolap,andrewor14/iolap,andrewor14/iolap