<?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: Script to Restart loader in Administrative Discussions</title>
    <link>https://community.incorta.com/t5/administrative-discussions/script-to-restart-loader/m-p/3514#M72</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.incorta.com/t5/user/viewprofilepage/user-id/317"&gt;@Incortaconsulta&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You can run the following stop and start commands:&lt;/P&gt;&lt;P&gt;Location:&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;lt;Incorta_installation_path&amp;gt;/IncortaNode/&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;./stopService.sh loaderService&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;./startService.sh loaderService&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2022 03:05:26 GMT</pubDate>
    <dc:creator>bryanmedeiros</dc:creator>
    <dc:date>2022-12-29T03:05:26Z</dc:date>
    <item>
      <title>Script to Restart loader</title>
      <link>https://community.incorta.com/t5/administrative-discussions/script-to-restart-loader/m-p/3510#M71</link>
      <description>&lt;P&gt;Hi All - Wondering, whether we can have an automated shell script to restart the loader box like every week which will help to clear my loader memory.&lt;/P&gt;&lt;P&gt;we have a small non-prod instance, and before every full load on my schemas, I need to restart the loader to make sure not to get an "out of memory" error. I need some solutions to overcome this manual activity.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 05:24:42 GMT</pubDate>
      <guid>https://community.incorta.com/t5/administrative-discussions/script-to-restart-loader/m-p/3510#M71</guid>
      <dc:creator>Incortaconsulta</dc:creator>
      <dc:date>2022-12-23T05:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Restart loader</title>
      <link>https://community.incorta.com/t5/administrative-discussions/script-to-restart-loader/m-p/3514#M72</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.incorta.com/t5/user/viewprofilepage/user-id/317"&gt;@Incortaconsulta&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You can run the following stop and start commands:&lt;/P&gt;&lt;P&gt;Location:&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;lt;Incorta_installation_path&amp;gt;/IncortaNode/&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;./stopService.sh loaderService&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;./startService.sh loaderService&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 03:05:26 GMT</pubDate>
      <guid>https://community.incorta.com/t5/administrative-discussions/script-to-restart-loader/m-p/3514#M72</guid>
      <dc:creator>bryanmedeiros</dc:creator>
      <dc:date>2022-12-29T03:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Restart loader</title>
      <link>https://community.incorta.com/t5/administrative-discussions/script-to-restart-loader/m-p/3519#M74</link>
      <description>&lt;P&gt;Hi Bryan - can it be automated with cronjob? usually, I do kill the currently running process id and then start the services.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 21:54:31 GMT</pubDate>
      <guid>https://community.incorta.com/t5/administrative-discussions/script-to-restart-loader/m-p/3519#M74</guid>
      <dc:creator>Incortaconsulta</dc:creator>
      <dc:date>2023-01-02T21:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Restart loader</title>
      <link>https://community.incorta.com/t5/administrative-discussions/script-to-restart-loader/m-p/3520#M75</link>
      <description>&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;You can use following stopstartLoader.sh , please test it first on your test cluster. If you have two nodes you will need to add it two other node also if you have Loader service on second node also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; vi stopstartLoader.sh&lt;/P&gt;&lt;P&gt;#!/usr/bin/env bash&lt;BR /&gt;# **********************************************************************************************&lt;BR /&gt;# start/stop Loader Service Script through crontab&lt;BR /&gt;# - Change the location of your script below according to your location&lt;BR /&gt;#***********************************************************************************************&lt;BR /&gt;&lt;BR /&gt;cd /u01/incorta/IncortaAnalytics/IncortaNode/&lt;BR /&gt;# pwd&lt;BR /&gt;./stopService.sh loaderService&lt;BR /&gt;# - sleep will sleep the execution of next startService.sh for 2 minutes ,if you # # - want remove # against it&lt;/P&gt;&lt;P&gt;# sleep 120&lt;BR /&gt;./startService.sh loaderService&lt;BR /&gt;exit;&lt;BR /&gt;# end of scirpt&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;vi stopstartLoader.sh&lt;BR /&gt;chmod 755 stopstartLoader.sh&lt;/P&gt;&lt;P&gt;You can test this script by&lt;/P&gt;&lt;P&gt;cd /u01/incorta/IncortaAnalytics/IncortaNode/&lt;BR /&gt;sh -x stopstartLoader.sh&lt;/P&gt;&lt;P&gt;crontab entry ( it will start it at 7:30 AM every Sunday)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;30 7 * * sun /u01/incorta/IncortaAnalytics/IncortaNode/stopstartLoader.sh&lt;/P&gt;&lt;P&gt;This is basic shell script , you can add more features if you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 05:38:48 GMT</pubDate>
      <guid>https://community.incorta.com/t5/administrative-discussions/script-to-restart-loader/m-p/3520#M75</guid>
      <dc:creator>RajanishJoshi</dc:creator>
      <dc:date>2023-01-03T05:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Restart loader</title>
      <link>https://community.incorta.com/t5/administrative-discussions/script-to-restart-loader/m-p/3704#M84</link>
      <description>&lt;P&gt;You may write a bash shell script to execute the commands necessary to stop and start the services.&lt;/P&gt;
&lt;P&gt;Then you could create a cron job to schedule this script to be run at the frequency that you choose.&lt;/P&gt;
&lt;P&gt;The commands would be something like:&lt;/P&gt;
&lt;P&gt;&amp;lt;path to IncortaAnalytics&amp;gt;/IncortaNode/stopService.sh loaderService&lt;/P&gt;
&lt;P&gt;&amp;lt;path to IncortaAnalytics&amp;gt;/IncortaNode/startService.sh loaderService&lt;/P&gt;
&lt;P&gt;Note: you would want to pick a time to do this when there are not loader jobs running as a best practice.&lt;/P&gt;
&lt;P&gt;If you are not sure of the service name you can run the command "cat &amp;lt;path to IncortaAnalytics&amp;gt;/IncortaNode/services/services.index" and read the name for loader in the output.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may want to implement a scripting technique to wait for a minute between commands.&amp;nbsp; Something like "sleep 60" between the 2 commands would pause the bash script for 1 minute before executing the second command.&amp;nbsp; You can easily find examples on the Internet.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 19:20:12 GMT</pubDate>
      <guid>https://community.incorta.com/t5/administrative-discussions/script-to-restart-loader/m-p/3704#M84</guid>
      <dc:creator>JeffW</dc:creator>
      <dc:date>2023-02-01T19:20:12Z</dc:date>
    </item>
  </channel>
</rss>

