Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 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 {
   @Override
    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 ";"?

Thanks,
- Tsuyoshi

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

- Tsuyoshi

 
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB