3. Start YARN

  1. Execute these commands from the ResourceManager server:

    <login as $YARN_USER>
    export HADOOP_LIBEXEC_DIR=/usr/lib/hadoop/libexec
    /usr/lib/hadoop-yarn/sbin/yarn-daemon.sh --config $HADOOP_CONF_DIR start resourcemanager
  2. Execute these commands from all NodeManager nodes:

    <login as $YARN_USER>
    export HADOOP_LIBEXEC_DIR=/usr/lib/hadoop/libexec
    /usr/lib/hadoop-yarn/sbin/yarn-daemon.sh --config $HADOOP_CONF_DIR start nodemanager

where:

  • $YARN_USER is the user owning the YARN services. For example, yarn.

  • $HADOOP_CONF_DIR is the directory for storing the Hadoop configuration files. For example, /etc/hadoop/conf.


loading table of contents...