The in-database deployment
package binary files for Aster
nCluster are contained in a self-extracting tar file named accelastrfmt.sh.
To install the in-database
deployment package binary files for Aster
nCluster, you need root privileges for the queen node. Once you are
logged in to the queen node as root, you need to create a directory
to put accelastrfmt.sh in, execute accelastrfmt.sh, then install the
SAS_SCORE function.
Enter these commands
to install the SAS System Libraries and the binary files:
-
Log in to the queen
node.
ssh -l root name-or-ip-of-queen-node
-
Move to the parent of
the partner directory.
The directories are
different between the Gentoo and Unbuntu installations.
For Gentoo, use the
following command:
cd /cluster/common/workerimage/home/beehive/
For Unbuntu, use the
following command:
cd /home/beehive/
-
Create a partner directory
if it does not already exist.
mkdir partner
-
Move to the partner
directory.
cd partner
-
Use Secure File Transfer
Protocol (SFTP) to transfer the self-extracting TAR file to the partner
directory.
-
Using a method of your
choice, start the SFTP client.
Here is an example of
starting SFTP from a command line.
For Gentoo, you could
use the following command.
sftp root@name-or-ip-of-queen-node: /cluster/common/workerimage/
home/beehive/partner
For Unbuntu, you could
use the following command.
sftp root@name-or-ip-of-queen-node:/home/beehive/partner
-
For both Gentoo and
Unbuntu, enter this command from the SFTP prompt to transfer the TAR
file.
-
(Optional) If your SFTP
client does not copy the executable attribute from the client machine
to the server, change the execute permission on the TAR file.
chmod +x accelastrfmt.sh
-
Create a directory named
SAS and unpack the TAR file into it.
./accelastrfmt.sh
Note: If a SAS directory already
exists in the partner directory, you can use
rm —rf SAS
to remove it
and any previous versions of the in-database deployment package for
Aster
nCluster.
-
Remove the TAR file
from the partner directory.
rm accelastrfmt.sh
-
Change to the directory
where SAS is installed.
cd SAS/SASAcceleratorForAster/9.2-3.1/sasexe
-
Enter the following
commands to install the SAS_SCORE and other SQL/MR functions.
-
Start the ACT tool.
/home/beehive/clients/act -U db_superuser -w db_superuser-password
-d database-to-install-sas_score-into
-
(Optional) If this is
not the first time you have installed the in-database deployment package
for Aster
nCluster, it is recommended
that you remove the existing SQL/MR functions before installing the
new ones.
\remove sas_score.tk.so
-
Enter the following
command to install the new SQL/MR functions.
\install sas_score.tk.so
-