Guest User

Untitled

a guest
Apr 21st, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. /********* Author Nicolas Housset *******************/
  2. /* Declaration de l'environnement */
  3.  
  4. %let mySasServer=franih-hdp261.ts.sashq-r.openstack.sas.com;
  5. %let mytkgridroot=franih-hdp261.ts.sashq-r.openstack.sas.com;
  6. %let myLasrHost=franih-hdp261.ts.sashq-r.openstack.sas.com;
  7. %let TKGridInstallDir=/opt/sas/TKGrid;
  8. %let TKGridRepInstallDir=/opt/sas/TKGrid_REP;
  9.  
  10.  
  11. %let TKGridsimshPath=&TKGridInstallDir/bin/simsh;
  12. %let TKGridGridhostsFile='&TKGridInstallDir/grid.hosts';
  13.  
  14. option set=SAS_HADOOP_RESTFUL=1;
  15. option set=SAS_HADOOP_CONFIG_PATH="/opt/install/hadoop_config/sitexmls/";
  16. option set=SAS_HADOOP_JAR_PATH="/opt/install/hadoop_config/jars/";
  17.  
  18. option set=GRIDHOST = "&mytkgridroot";
  19. option set=GRIDINSTALLLOC = "&TKGridRepInstallDir";
  20.  
  21. options set=SHOWGRIDMSG="1";
  22. options set=GRIDRSHCOMMAND="/usr/bin/ssh -q -o StrictHostKeyChecking=no -vvv";
  23.  
  24. option dsaccel=any;
  25. option msglevel=i;
  26.  
  27.  
  28. /* Check de l'installation */
  29.  
  30. %macro show(command);
  31. filename p pipe &command lrecl=32767;
  32. data _null_;
  33. infile p;
  34. input;
  35. put _infile_;
  36. run;
  37. %mend;
  38.  
  39. %show("ssh &mytkgridroot 'cat &TKGridGridhostsFile'")
  40. %show("ssh &mytkgridroot '/opt/sas/TKGrid/bin/checknodes &TKGridGridhostsFile'")
  41.  
  42. %show("ssh &mytkgridroot '&TKGridsimshPath &TKGridsimshPath hostname'")
  43.  
  44. /* Check ssh Gridhost ----> Serveur SAS */
  45. %show("ssh &mytkgridroot 'ssh &mySasServer -vvv'")
  46.  
  47. /* Proc HPA */
  48. proc hpatest data=sashelp.baseball;performance nodes=all; run;
Add Comment
Please, Sign In to add comment