3. Stage 1--Define and Create the Test Environment : Installation : Installing Without Privileged Access
 
Share this page                  
Installing Without Privileged Access
If the installation must be performed with an unprivileged account, then the steps that require administrative operations must be done before the installation process starts.
Pre-requisites: As per root based installs with the additional requirements: the installation user exists on all nodes, passwordless SSH access between the master node and the slave nodes is already setup, the Linux and HDFS directories exist and are owned by the installation owner.
Example Noroot/Nosudo Installation: Use defaults of installation VH, user actian, installation directory /opt/Actian/VectorVH, HDFS location /Actian/VectorVH.
# Create user (repeat on all nodes):
useradd actian
passwd actian
 
# On master nodesetup passwordless ssh:
su - actian
ssh-keygen
ssh-copy-id actian@[Fully qualified hostname] # Repeat for all hosts
exit
 
# Setup HDFS location:
su hdfs
hdfs dfs -mkdir /Actian
hdfs dfs -mkdir /Actian/VectorVH
hdfs dfs -chown actian /Actian
hdfs dfs -chown actian /Actian/VectorVH
hdfs dfs -chmod 755 /Actian
hdfs dfs -chmod 755 /Actian/VectorVH
exit
 
# On all nodes setup Linux file system directories:
mkdir -p /opt/Actian/VectorVH
chown actian /opt/Actian/VectorVH
 
# Run install
su - actian
cd [Directory where install.sh is located]
./install.sh -noroot
Because the Hadoop slaves information may not be visible to the user performing the installation, it may be necessary to complete the slave node installation as a separate step. If the installer does not prompt for information about the slave nodes, then also execute these commands:
# Setup the required environment variables and stop the current instance
. ~/.ingVHsh
ingstop
 
# Edit the slave nodes list and add the required nodes:
vi $II_SYSTEM/ingres/files/hdfs/slaves
 
# Perform setup of slave nodes and restart the instance
iisuhdfs datanodes
ingstart
Note:  The iisuhdfs datanodes command can also be used to make modifications to an existing installation. Running the command more than once does not harm the installation; the command, however, will reset the installation parallelism settings based on the number of nodes active in the system. If you have made changes to the default values (as described in Configuring Database Resources), then the configuration file may need to be modified after running iisuhdfs datanodes.