BookmarkSubscribeRSS Feed
sandeep_reddy
Quartz | Level 8

Hi Team,

I am trying to start VA services through code line.

I am trying to run a program and failed with base sas.

 

/path/to/sas restart.sas . This program is getting timed out and failing in starting the services.

 

But, when i do from ./Workspaceserver.sh -nodms and run the same code, I am able to running an start the services successfully.

 

/* Start the LASR server process in the cluster */
proc lasr create PORT=10053
path="/opt/sas/sigfiles"
signer="https://hostURL:3443/SASLASRAuthorization"
tablemem=80
logging
(
PATH = "/opt/sas/Logs"

)
;
performance host="firstnamenode" nodes=ALL
install="/opt/sas/TKGrid"
;
run;

 

Please hep me to run the same code in background like integrating in batch.

 

Best Regards,
Sandeep

6 REPLIES 6
Anand_V
Ammonite | Level 13
Why are you trying to run it directly using SAS Foundation? I would suggest to use SAS batch server instead of that. It should be located under your app context directory just like workspace server.
SASKiwi
PROC Star

@sandeep_reddy  - Please note, as @Anand_V has already said this has to be run as a batch job. Once started the job must be left running so that PROC LASR stays in memory. If you kill the batch job your VA services will also stop.

alexal
SAS Employee

@sandeep_reddy ,

 As you are using the SAS LASR Authorization service, PROC LASR requires a connection to the metadata server. If you wantto run your program from Base SAS, you have to define the following options:

options metaserver='your.metadata.server.fqdn' metaport=8561 metaprotocol='bridge' metauser='USERNAME' metapass='PASSWORD' metarepository='Foundation';
sandeep_reddy
Quartz | Level 8

Dear All,

Thanks for your reply.

 

I tried suggested "options" statement while running from Foundation and sasbatch, still issue is same.

When I did strace on PID, I am getting "connection timed" out continuously.

 

The code which executed in Workspace server successfully is doing nothing(no lines in log) in foundation and sasbatch. I am confused here.

How to debug above error?

Best Regards,
Sandeep

 

alexal
SAS Employee

@sandeep_reddy ,

 

Please run the SAS program shown below in Base SAS and show me the log:

options metaserver='METADARA.SERVER.FQDN' metaport=8561 metaprotocol='bridge' metauser='USERNAME' metapass='PASSWORD' metarepository='Foundation';
options set=SHOWGRIDMSG="1";
options set=GRIDHOST="HEAD.NODE.FQDN";
options set=GRIDINSTALLLOC="/opt/sas/TKGrid";
options set=GRIDRSHCOMMAND="/opt/sas/TKGrid/bin/ssh.sh";
proc hpatest data=sashelp.cars; performance nodes=all; run;
proc lasr create PORT=10053 path="/opt/sas/sigfiles" signer="https://MIDDLE.TIER.FQDN:3443/SASLASRAuthorization" tablemem=80 logging ( PATH = "/opt/sas/Logs" KEEPLOG ); nodes=all; run;

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 6 replies
  • 993 views
  • 0 likes
  • 5 in conversation