The in-database deployment
package binary files for Aster
nCluster
are contained in a self-extracting archive file named tkindbsrv-9.31-
n_lax.sh.
n is
a number that indicates the latest version of the file. If this is
the initial installation,
n has
a value of 1. Each time you reinstall or upgrade,
n is
incremented by 1. The self-extracting archive file is located in the
SAS-install-directory/SASTKInDatabaseServer/9.31/AsternClusteronLinuxx64/
directory.
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 in which
to put tkindbsrv-9.31-
n_lax.sh,
execute tkindbsrv-9.31-
n_lax.sh,
and install the SAS_SCORE( ) and the SAS_PUT( ) SQL/MR
functions.
Enter these commands
to install the SAS System Libraries and the binary files:
-
Change the directory
to the location of the self-extracting archive file.
cd SAS-install-directory/SASTKInDatabaseServer/9.31/AsternClusteronLinuxx64/
-
Log in to the queen
node.
ssh -l root name-or-ip-of-queen-node
-
Move to the parent of
the partner directory.
cd /home/beehive/
-
Create a partner directory
if it does not already exist.
mkdir partner
-
Move to the partner
directory.
cd partner
-
From the SAS client
machine, use Secure File Transfer Protocol (SFTP) to transfer the
self-extracting archive 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.
sftp root@name-or-ip-of-queen-node:/home/beehive/partner
-
At the SFTP prompt,
enter this command to transfer the self-extracting archive file.
put tkindbsrv-9.31-n_lax.sh
-
(Optional) If your SFTP
client does not copy the executable attribute from the client machine
to the server, change the EXECUTE permission on the self-extracting
archive file.
chmod +x tkindbsrv-9.31-n_lax.sh
-
Unpack the self-extracting
archive file in the partner directory.
./tkindbsrv-9.31-n_lax.sh
-
Change to the directory
where SAS is installed.
cd /home/beehive/partner/SAS/SASTKInDatabaseServerForAster/9.31-n/sasexe
-
Install the SAS_SCORE( ),
SAS_PUT( ), 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 by entering the following commands.
\remove sas_score.tk.so
\remove sas_put.tk.so
\remove sas_row.tk.so
\remove sas_partition.tk.so
-
Enter the following
commands to install the new SQL/MR functions. The SQL/MR functions
need to be installed under the PUBLIC schema.
\install sas_score.tk.so
\install sas_put.tk.so
\install sas_row.tk.so
\install sas_partition.tk.so
-
-
Verify the existence
and current date of the tkast-runInCluster and tkeastrmr.so files.
These two binary files are needed by the SAS SQL/MR functions.
for ip in \
'cat /home/beehive/cluster-management/hosts | grep node | awk '{print $3}''; \
do \
echo $ip; \
ssh $ip "ls -al /home/beehive/partner/SAS/SASTKInDatabaseServerForAster/
9.31-n/sasexe/tkeastmr.so"; \
ssh $ip "ls -al /home/beehive/partner/SAS/SASTKInDatabaseServerForAster/
9.31-n/utilities/bin/tkast-runInCluster"; \
done