Project: springxd
Issue XD-3584: Have consistent file format requirements in Spring XD and Hadoop
When the following format is specified - {noformat} home: file://hadoop/xd/custom-modules {noformat} There is no root-path ('/') following the 'file://' scheme. That makes the Hadoop job launcher interpret what follows as a host name and will look for '/xd/custom-modules' on the host 'hadoop'. This results in "java.net.UnknownHostException: hadoop". This format works for module upload though. The module upload relies on resource location resolution from Spring Framework which is more lenient [1]. The MapReduce job submission uses code from the Apache Hadoop project and uses a more stringent resolution. This results in ambiguity 'file://my/directory' and requires the root path to be specified. [1] http://docs.spring.io/autorepo/docs/spring/4.2.x/spring-framework-reference/html/resources.html#resources-filesystemresource-caveats
Story points: 2