<?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: Would anyone be willing to share their reload script for LASR data (runs after restart)? in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Would-anyone-be-willing-to-share-their-reload-script-for-LASR/m-p/331968#M6337</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/125413"&gt;@rgreen33&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think yours is more a Linux and OS admin question than a SAS question. Reason because I say this is because you probably can get the best and quickest support at your own organization. You are looking for specific and already-made scripts, and I totally understand that, but your Linux admins can help you out perfectly. Let me explain and go through the information:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You mentioned:&lt;/P&gt;
&lt;P&gt;- You aready ahce scripts to restart LASR. And scripts to save LASR data to Hadoop (well done). and to load all your data into LASR.&lt;/P&gt;
&lt;P&gt;- You also mentioned you have the Operating Systems scheduler.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All of this means that, as you said, you can easily reuse those scripts and quickly create the trigger.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the information you need:&lt;/P&gt;
&lt;P&gt;- Operating System scheduler is the same than crontab or at. 2 well-known programs by any unix admin.&lt;/P&gt;
&lt;P&gt;- They will need to know the port or ports of your LASR server, in order to create a little bucle to check that port. When the service is restarted, then they can trigger any job you have already prepared.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there anything else you need?&lt;/P&gt;</description>
    <pubDate>Sun, 12 Feb 2017 16:21:20 GMT</pubDate>
    <dc:creator>JuanS_OCS</dc:creator>
    <dc:date>2017-02-12T16:21:20Z</dc:date>
    <item>
      <title>Would anyone be willing to share their reload script for LASR data (runs after restart)?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Would-anyone-be-willing-to-share-their-reload-script-for-LASR/m-p/330965#M6315</link>
      <description>&lt;P&gt;I (and my organization)&amp;nbsp;am new to SAS and learning as I go.&amp;nbsp; Our envionment is essentially a distributed enviornent, using Hadoop.&amp;nbsp; Most of our data in SAS will come from Oracle via queries/jobs buit in Data Builder and/or DI Studio.&amp;nbsp; Most of our data will be loaded into Hadoop and then to LASR...and then consumed by the users, using EG and VA Designer.&amp;nbsp; I currently&amp;nbsp;have my data flowing via scheduled jobs.&amp;nbsp; The only piece that I am missing is the script for reloading my LASR data from Hadoop when the LASR servers are restarted.&amp;nbsp; Based on what I have learned from classes, this community, and searching the web, this "reload" will need to be a script that is manually run during my startup process.&amp;nbsp; I am assuming that many&amp;nbsp;of you&amp;nbsp;have done this same thing.&amp;nbsp; So, I would like to ask if anyone would be willing to share the script that you are using to reload your LASR data when your servers are restarted?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One thing that I will add to the above...As I mentioned, I already have jobs setup and scheduled for loading the data into Hadoop and separate jobs/schedules for loading the data into LASR.&amp;nbsp; So, what I am thinking is that maybe I can reuse the jobs that I already have setup for loading into LASR.&amp;nbsp; So, I am thinking that this script that I am looking for would maybe be a script that calls these jobs...if that is possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One more addition to the above...this would be a script that will be run from Linux.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 21:03:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Would-anyone-be-willing-to-share-their-reload-script-for-LASR/m-p/330965#M6315</guid>
      <dc:creator>rgreen33</dc:creator>
      <dc:date>2017-02-08T21:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Would anyone be willing to share their reload script for LASR data (runs after restart)?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Would-anyone-be-willing-to-share-their-reload-script-for-LASR/m-p/330985#M6316</link>
      <description>&lt;P&gt;Ricky,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I work at SAS in IT supporting the VA environment we run internally. &amp;nbsp;Welcome to the SAS community. &amp;nbsp;The path you are headed is exactly like the setup we have employed. &amp;nbsp;We have seperated Hadoop loads and LASR loads then combined them into scheduled flows for regularly refreshing data. &amp;nbsp;The trick we crated is to take all the LASR flows/jobs and include them into one large flow "ie. Load all to LASR". &amp;nbsp;That flow is triggered via command on restart. &amp;nbsp;If this sounds like an option for you I can share the syntax we are using to trigger a flow in LSF Platform Scheduler. &amp;nbsp;Probably could be adapted for any scheduler.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brandon &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 21:05:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Would-anyone-be-willing-to-share-their-reload-script-for-LASR/m-p/330985#M6316</guid>
      <dc:creator>Brandon</dc:creator>
      <dc:date>2017-02-08T21:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Would anyone be willing to share their reload script for LASR data (runs after restart)?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Would-anyone-be-willing-to-share-their-reload-script-for-LASR/m-p/330989#M6317</link>
      <description>&lt;P&gt;Ricky,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a look at this SGF paper &lt;A href="http://support.sas.com/resources/papers/proceedings16/3660-2016.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings16/3660-2016.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps,&lt;/P&gt;
&lt;P&gt;Ahmed&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 21:10:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Would-anyone-be-willing-to-share-their-reload-script-for-LASR/m-p/330989#M6317</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2017-02-08T21:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Would anyone be willing to share their reload script for LASR data (runs after restart)?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Would-anyone-be-willing-to-share-their-reload-script-for-LASR/m-p/330990#M6318</link>
      <description>&lt;P&gt;Brandon,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is exaclty what I was just looking at...trying to find a way to see the code behind a flow...to attempt to do exactly what you are saying below.&amp;nbsp; So, yes, I would be VERY interested in seeing the syntax for this.&amp;nbsp; By the way, we are using the following Scheduling Server:&amp;nbsp; Operating System Services&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 21:12:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Would-anyone-be-willing-to-share-their-reload-script-for-LASR/m-p/330990#M6318</guid>
      <dc:creator>rgreen33</dc:creator>
      <dc:date>2017-02-08T21:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Would anyone be willing to share their reload script for LASR data (runs after restart)?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Would-anyone-be-willing-to-share-their-reload-script-for-LASR/m-p/331000#M6319</link>
      <description>&lt;P&gt;EDIT: &amp;nbsp;Just read you were using a different scheduler. &amp;nbsp;Well this is the syntax we use for the LSF Platform scheduler. &amp;nbsp;During our initialization of the LASR servers we evaluate if the servers started and if they did we kick of a .ksh which includes this info:&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;# Will source a batch version of PM profile&lt;BR /&gt;# and kick off the main flow for LASR table reload&lt;BR /&gt;. /&amp;lt;insert your path&amp;gt;/pm/conf/profile.js &lt;BR /&gt;jtrigger _LASR_LOAD_ALL&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also sounds like we have similar methodology so here are a couple of our published papers.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings15/SAS1952-2015.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings15/SAS1952-2015.pdf&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings15/SAS1890-2015.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings15/SAS1890-2015.pdf&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings16/SAS6660-2016.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings16/SAS6660-2016.pdf&lt;/A&gt;&lt;BR /&gt; &lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 21:59:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Would-anyone-be-willing-to-share-their-reload-script-for-LASR/m-p/331000#M6319</guid>
      <dc:creator>Brandon</dc:creator>
      <dc:date>2017-02-08T21:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Would anyone be willing to share their reload script for LASR data (runs after restart)?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Would-anyone-be-willing-to-share-their-reload-script-for-LASR/m-p/331826#M6332</link>
      <description>&lt;P&gt;Brandon,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, thank you for the informaion.&amp;nbsp; I have been looking at the scripts and I have gotten close to a solution.&amp;nbsp; I can find the code that is produced by flow.&amp;nbsp; However when I run/call that code, the jobs are sent to the batch server for processing...and gets rejected due to not being the correct time for running.&amp;nbsp; So, I'm guessing that I could make a copy of this code and modify the section that does the time checking (not sure).&amp;nbsp; However, at this time, we are just trying to get things in place so that we can "go live" with the system.&amp;nbsp; So, for now, I am going to settle for a single flow that loads all LASR tables, kicking off the flow manually via Schedule Manager during the startup process.&amp;nbsp; Maybe at a later date, I will come back to this and attempt to script this.&amp;nbsp; If you happen to run across a script that will do this for the scheduler that I am using, please share.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2017 15:41:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Would-anyone-be-willing-to-share-their-reload-script-for-LASR/m-p/331826#M6332</guid>
      <dc:creator>rgreen33</dc:creator>
      <dc:date>2017-02-11T15:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Would anyone be willing to share their reload script for LASR data (runs after restart)?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Would-anyone-be-willing-to-share-their-reload-script-for-LASR/m-p/331968#M6337</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/125413"&gt;@rgreen33&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think yours is more a Linux and OS admin question than a SAS question. Reason because I say this is because you probably can get the best and quickest support at your own organization. You are looking for specific and already-made scripts, and I totally understand that, but your Linux admins can help you out perfectly. Let me explain and go through the information:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You mentioned:&lt;/P&gt;
&lt;P&gt;- You aready ahce scripts to restart LASR. And scripts to save LASR data to Hadoop (well done). and to load all your data into LASR.&lt;/P&gt;
&lt;P&gt;- You also mentioned you have the Operating Systems scheduler.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All of this means that, as you said, you can easily reuse those scripts and quickly create the trigger.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the information you need:&lt;/P&gt;
&lt;P&gt;- Operating System scheduler is the same than crontab or at. 2 well-known programs by any unix admin.&lt;/P&gt;
&lt;P&gt;- They will need to know the port or ports of your LASR server, in order to create a little bucle to check that port. When the service is restarted, then they can trigger any job you have already prepared.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there anything else you need?&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2017 16:21:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Would-anyone-be-willing-to-share-their-reload-script-for-LASR/m-p/331968#M6337</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2017-02-12T16:21:20Z</dc:date>
    </item>
  </channel>
</rss>

