Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # user >> Yarn - Running multiple commands on container

Copy link to this message
Re: Yarn - Running multiple commands on container
Hi Anand and YARN developers,

I found that UnixShellScriptBuilder#command just concatenates
each commands with space, not with ";".
Therefore, you need to suffix ";" after commands you'd like to execute.

UnixShellScriptBuilder {
    public void command(List<String> command) {
      line("exec /bin/bash -c \"", StringUtils.join(" ", command), "\"");

Is this expected behavior? IMO, this seems to go against instinct of users.
Javadoc of ContainerLaunchContext#setCommands says:
"@param commands the list of commands for launching the container",
so should we each commands with ";"?

- Tsuyoshi

On Mon, Feb 17, 2014 at 10:16 PM, Anand Mundada <[EMAIL PROTECTED]> wrote:

- Tsuyoshi