Skip to content

Instantly share code, notes, and snippets.

@frayos
Created April 13, 2018 09:59
Show Gist options
  • Select an option

  • Save frayos/6ab97ed283a1fcae204b657276f00dd8 to your computer and use it in GitHub Desktop.

Select an option

Save frayos/6ab97ed283a1fcae204b657276f00dd8 to your computer and use it in GitHub Desktop.
TKGrid Debug SAS code
/********* Author Nicolas Housset *******************/
/* Declaration de l'environnement */
%let mySasServer=franih-hdp261.ts.sashq-r.openstack.sas.com;
%let mytkgridroot=franih-hdp261.ts.sashq-r.openstack.sas.com;
%let myLasrHost=franih-hdp261.ts.sashq-r.openstack.sas.com;
%let TKGridInstallDir=/opt/sas/TKGrid;
%let TKGridRepInstallDir=/opt/sas/TKGrid_REP;
%let TKGridsimshPath=&TKGridInstallDir/bin/simsh;
%let TKGridGridhostsFile='&TKGridInstallDir/grid.hosts';
option set=SAS_HADOOP_RESTFUL=1;
option set=SAS_HADOOP_CONFIG_PATH="/opt/install/hadoop_config/sitexmls/";
option set=SAS_HADOOP_JAR_PATH="/opt/install/hadoop_config/jars/";
option set=GRIDHOST = "&mytkgridroot";
option set=GRIDINSTALLLOC = "&TKGridRepInstallDir";
options set=SHOWGRIDMSG="1";
options set=GRIDRSHCOMMAND="/usr/bin/ssh -q -o StrictHostKeyChecking=no -vvv";
option dsaccel=any;
option msglevel=i;
/* Check de l'installation */
%macro show(command);
filename p pipe &command lrecl=32767;
data _null_;
infile p;
input;
put _infile_;
run;
%mend;
%show("ssh &mytkgridroot 'cat &TKGridGridhostsFile'")
%show("ssh &mytkgridroot '/opt/sas/TKGrid/bin/checknodes &TKGridGridhostsFile'")
%show("ssh &mytkgridroot '&TKGridsimshPath &TKGridsimshPath hostname'")
/* Check ssh Gridhost ----> Serveur SAS */
%show("ssh &mytkgridroot 'ssh &mySasServer -vvv'")
/* Proc HPA */
proc hpatest data=sashelp.baseball;performance nodes=all; run;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment