<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Order of start/stop scripts for SAS VA 9.4 + HADOOP on RHEL 6 in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Order-of-start-stop-scripts-for-SAS-VA-9-4-HADOOP-on-RHEL-6/m-p/259721#M4589</link>
    <description>&lt;P&gt;Thanks for that info, FriedEgg.&lt;BR /&gt;&lt;BR /&gt;I know the &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;sas.servers&lt;/STRONG&gt;&lt;/FONT&gt; script is used to start/stop the SAS servers, but I'm new about &lt;STRONG&gt;HADOOP&lt;/STRONG&gt; and my questions hinge on how HADOOP changes the SAS start/stop procedure.&lt;BR /&gt;&lt;BR /&gt;Today I've found the&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; slaves.sh &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;script in the&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; $HADOOP_HOME/sbin &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;subdirectory and it is based on SSH. It is used by&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; yarn-daemons.sh &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;and&lt;STRONG&gt;&lt;FONT color="#0000FF" face="courier new,courier"&gt; hadoop-daemons.sh &lt;/FONT&gt;&lt;/STRONG&gt;to start the remote daemons. This solves my 3rd question.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2016 15:23:51 GMT</pubDate>
    <dc:creator>JDamian</dc:creator>
    <dc:date>2016-03-29T15:23:51Z</dc:date>
    <item>
      <title>Order of start/stop scripts for SAS VA 9.4 + HADOOP on RHEL 6</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Order-of-start-stop-scripts-for-SAS-VA-9-4-HADOOP-on-RHEL-6/m-p/259621#M4583</link>
      <description>&lt;P&gt;Hi everyone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, I must say I was familiar with &lt;STRONG&gt;SAS VA 9.4&lt;/STRONG&gt; in just a only box, not in a HADOOP distributed platform. And I must emphasize I recently started to work in this company and I've found the SAS VA platform as I'm explaining here -- I'm now the RHEL administrator but I neither configured nor installed this SAS VA platform and its RHEL boxes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My SAS VA 9.4 platform includes 16 RedHat Enterprise Linux 6.4 boxes (16 cores and 256 MiB).&lt;/P&gt;&lt;P&gt;One of these boxes are the "main node" or "core node" where all processes run. In the others ("slaves") just a few HADOOP processes (I guess) are running.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that &lt;U&gt;&lt;STRONG&gt;there are no startup/stop scripts&lt;/STRONG&gt;&lt;/U&gt; in either&lt;FONT color="blue"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; /etc/init &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;or&lt;FONT color="blue"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; /etc/init.d &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;subdirectories. The only guide made by the SAS staff I can consult shows there should be &lt;FONT color="blue"&gt;&lt;STRONG&gt;five stages&lt;/STRONG&gt;&lt;/FONT&gt; to start up the SAS VA platform in the main box. They are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Start SAS servers.&lt;/LI&gt;&lt;LI&gt;Start LASR monitor.&lt;/LI&gt;&lt;LI&gt;Start HADOOP HDFS.&lt;/LI&gt;&lt;LI&gt;Start HADOOP Yarn.&lt;/LI&gt;&lt;LI&gt;Start HADOOP Map Reduce&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same guide shows the procedure to shut down the main box matches the start procedure in reversed order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is that start/stop procedure correct?&lt;/LI&gt;&lt;LI&gt;Does SAS have start/stop scripts to implement the right start/stop procedure?&lt;/LI&gt;&lt;LI&gt;What start/stop scripts should be configured in the "slaves" boxes?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 10:11:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Order-of-start-stop-scripts-for-SAS-VA-9-4-HADOOP-on-RHEL-6/m-p/259621#M4583</guid>
      <dc:creator>JDamian</dc:creator>
      <dc:date>2016-03-29T10:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Order of start/stop scripts for SAS VA 9.4 + HADOOP on RHEL 6</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Order-of-start-stop-scripts-for-SAS-VA-9-4-HADOOP-on-RHEL-6/m-p/259652#M4587</link>
      <description>These scripts should be generated as part of your installation process.  A copy should exist in your LEV directory or you can try to regenerate them&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/bisag/68240/HTML/default/viewer.htm#n0crcjp2e0r6fln0z1sgiutzmyo5.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/bisag/68240/HTML/default/viewer.htm#n0crcjp2e0r6fln0z1sgiutzmyo5.htm&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Mar 2016 13:26:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Order-of-start-stop-scripts-for-SAS-VA-9-4-HADOOP-on-RHEL-6/m-p/259652#M4587</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2016-03-29T13:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Order of start/stop scripts for SAS VA 9.4 + HADOOP on RHEL 6</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Order-of-start-stop-scripts-for-SAS-VA-9-4-HADOOP-on-RHEL-6/m-p/259721#M4589</link>
      <description>&lt;P&gt;Thanks for that info, FriedEgg.&lt;BR /&gt;&lt;BR /&gt;I know the &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;sas.servers&lt;/STRONG&gt;&lt;/FONT&gt; script is used to start/stop the SAS servers, but I'm new about &lt;STRONG&gt;HADOOP&lt;/STRONG&gt; and my questions hinge on how HADOOP changes the SAS start/stop procedure.&lt;BR /&gt;&lt;BR /&gt;Today I've found the&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; slaves.sh &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;script in the&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; $HADOOP_HOME/sbin &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;subdirectory and it is based on SSH. It is used by&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; yarn-daemons.sh &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;and&lt;STRONG&gt;&lt;FONT color="#0000FF" face="courier new,courier"&gt; hadoop-daemons.sh &lt;/FONT&gt;&lt;/STRONG&gt;to start the remote daemons. This solves my 3rd question.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 15:23:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Order-of-start-stop-scripts-for-SAS-VA-9-4-HADOOP-on-RHEL-6/m-p/259721#M4589</guid>
      <dc:creator>JDamian</dc:creator>
      <dc:date>2016-03-29T15:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Order of start/stop scripts for SAS VA 9.4 + HADOOP on RHEL 6</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Order-of-start-stop-scripts-for-SAS-VA-9-4-HADOOP-on-RHEL-6/m-p/259739#M4593</link>
      <description>&lt;PRE&gt;#!/usr/bin/env bash
set -e
set -o pipefail

HADOOP_PREFIX=/usr/local/hadoop
HADOOP_YARN_HOME=\${HADOOP_PREFIX}
HADOOP_CONF_DIR=${HADOOP_CONF_DIR}
YARN_LOG_DIR=\${HADOOP_YARN_HOME}/logs
YARN_IDENT_STRING=root
HADOOP_MAPRED_IDENT_STRING=root
HADOOP_CONF_DIR=/etc/hadoop/conf

function _fmt ()      {
  color_ok="\x1b[32m"
  color_bad="\x1b[31m"

  color="${color_bad}"
  if [ "${1}" = "info" ]; then
    color="${color_ok}"
  fi

  color_reset="\x1b[0m"
  if [ "${TERM}" != "xterm" ] || [ -t 1 ]; then
    # Don't use colors on pipes or non-recognized terminals
    color=""
    color_reset=""
  fi
  echo -e "$(date -u +"%Y-%m-%d %H:%M:%S UTC") ${color}$(printf "[%4s]" ${1})${color_reset}";
}

function info () { echo "$(_fmt info) ${@}" 1&amp;gt;&amp;amp;2; }

function startHdfs {
info "starting hdfs"
$HADOOP_PREFIX/sbin/start-dfs.sh --config $HADOOP_CONF_DIR
}

function startYarn {
info "starting yarn"
$HADOOP_YARN_HOME/sbin/yarn-daemon.sh --config $HADOOP_CONF_DIR start resourcemanager
$HADOOP_YARN_HOME/sbin/yarn-daemon.sh --config $HADOOP_CONF_DIR start nodemanager
$HADOOP_PREFIX/sbin/mr-jobhistory-daemon.sh start historyserver --config $HADOOP_CONF_DIR
}

startHdfs
startYarn
&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Mar 2016 15:38:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Order-of-start-stop-scripts-for-SAS-VA-9-4-HADOOP-on-RHEL-6/m-p/259739#M4593</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2016-03-29T15:38:15Z</dc:date>
    </item>
  </channel>
</rss>

