Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Register by January 31 for $300 off your Qlik Connect pass: Register Now!
Francis_Kabinoff
Former Employee
Former Employee

With the Qlik Sense June 2017 release comes server side extensions, which allow you to extend the Qlik built-in expression library with functionality from external calculation engines. We've released an open source server side extension that enables interaction with R, and if you use the R-Plugin, you know that you have to start Rserve.exe and SSEtoRserve.exe, then restart the Qlik Sense Engine Service. What I'm going to walk you through is how to setup Rserve.exe and SSEtoRserve.exe to run as services, and then make the Qlik Sense Engine Service depend on those services so that they start whenever the Qlik Sense Engine Service starts.

This post is for people who have already installed the open source R-Plugin and would like to run the plugin as a Windows service instead of starting it manually. If you haven't gotten started with the open source R-Plugin, and would like to, please check out this guide sse-r-plugin - get started‌.

 

The first thing we need is NSSM‌. Download and unzip, then open a command prompt with admin privileges and change directory to  <path-to-nssm>\nssm-{x}.{x}{x}\win64.

nssm.png

 

Now we need to install our 2 new services. In the command prompt, enter nssm install RserveService. An interface will pop up where we can define the service. Enter <directory>\Rserve.exe into "Path", and set "Startup directory" to the directory Rserve.exe is in. Then, go to the "Environment" tab, and enter PATH=%Path%;C:\R\R-3.4.1\bin\x64 (assuming you have R-3.4.1 installed in the C:\R directory, otherwise make adjustments as necessary). Now click the "Install service" button.

rservepath.pngrserveenv.png

 

Next, we need to install a service for SSEtoRserve.exe. So, again, at the command prompt enter nssm install SSEtoRserveService, and then enter <directory>\SSEtoRserve.exe into "Path", and set "Startup directory" to the directory SSEtoRserve.exe is in. Now click "Install service".

ssetorserve.png

 

Now that the two services are installed, we can set the Qlik Sense Engine Service to depend on them, so that any time the Qlik Sense Engine Service starts, these services will be available. Back at the command prompt enter nssm edit QlikSenseEngineService. Go to the "Dependencies" tab and add RserveService and SSEtoRserveService, each on their own new lines under the already existing QlikSenseRepositoryService.

engineservice.png

 

All of you have to do now is restart the Qlik Sense Engine Service and you should be good to go.

18 Comments
kkkumar82
Specialist III
Specialist III

Hi Francis,

Is there any way that we can try R analysis using

Desktop version.

5,615 Views
Francis_Kabinoff
Former Employee
Former Employee

Yep! In the getting started guide here sse-r-plugin - get started‌ there are instructions for Qlik Sense Desktop as well.

0 Likes
5,615 Views
gladi-cz
Creator
Creator

Good question 🙂

0 Likes
5,615 Views
joydipp1988
Creator
Creator

Is it available for QlikView desktop client ?

0 Likes
5,615 Views
sridhar55
Partner - Contributor
Partner - Contributor

Hi, any one help on below mentioned issue.

SSEtoRserve could not start in Services.msc

0 Likes
5,615 Views
prees959
Creator II
Creator II

HI,

I am trying to set up R with QlikSense Desktop (June 2017).  Do I need visual studio installed also?

Thanks,

Phil

0 Likes
5,615 Views
ljjtimmermans
Contributor II
Contributor II

prees959 Hi Phil,

There is no need to install visual studio.

0 Likes
4,712 Views
ljjtimmermans
Contributor II
Contributor II

joydipp1988 I think it will be available in the next version of Qlikview desktop (novermber release, don't know if it's available yet).

0 Likes
4,712 Views
prees959
Creator II
Creator II

Hi Leo,

Thanks for your reply.  I'm completely new to R - so getting things set up is quite a challenge for me.  I have installed R and have Qliksense Septermber 2017 on the same client.  Just need to get them running together

0 Likes
4,712 Views
ljjtimmermans
Contributor II
Contributor II

Hi Phil,

 

You probably best take a look here: Server Side Extensions (formerly Advanced Analytics Integration)

There are some instructions there. I got it up and running with those instructions.

0 Likes
4,712 Views