Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
panelIconIdatlassian-note
panelIcon:note:
bgColor#DEEBFF

Note

  • You MUST perform the following steps on ALL the instances that you want to use for Kyvos deployment with Password authentication.

  • Creating and adding a node is not supported for a password-based cluster deployed via the wizard. To enable the create or add node functionality in Kyvos Manager, ensure that you use the appropriate AMI that supports password-based authentication for the deployed cluster, rather than a private key (PEM file) based AMI.

Aura tab collection
paramsJTdCJTIyZ2VuZXJhbCUyMiUzQSU3QiUyMnRhYlNwYWNpbmclMjIlM0EwJTJDJTIydGFiV2lkdGglMjIlM0ExMDAlMkMlMjJ0YWJIZWlnaHQlMjIlM0E1MCUyQyUyMmRpcmVjdGlvbiUyMiUzQSUyMmhvcml6b250YWwlMjIlN0QlMkMlMjJjb250ZW50JTIyJTNBJTdCJTIyYmFja2dyb3VuZENvbG9yJTIyJTNBJTdCJTIyY29sb3IlMjIlM0ElMjIlMjNmZmYlMjIlN0QlMkMlMjJib3JkZXIlMjIlM0ElN0IlMjJzdHlsZSUyMiUzQSUyMnNvbGlkJTIyJTJDJTIyd2lkdGglMjIlM0ExJTJDJTIydG9wJTIyJTNBdHJ1ZSUyQyUyMmJvdHRvbSUyMiUzQXRydWUlMkMlMjJsZWZ0JTIyJTNBdHJ1ZSUyQyUyMnJpZ2h0JTIyJTNBdHJ1ZSUyQyUyMmNvbG9yJTIyJTNBJTdCJTIybGlnaHQlMjIlM0ElMjIlMjNjY2NlY2YlMjIlN0QlN0QlMkMlMjJwYWRkaW5nJTIyJTNBJTdCJTIydG9wJTIyJTNBMTAlMkMlMjJyaWdodCUyMiUzQTEwJTJDJTIyYm90dG9tJTIyJTNBMTAlMkMlMjJsZWZ0JTIyJTNBMTAlN0QlN0QlMkMlMjJhY3RpdmUlMjIlM0ElN0IlMjJiYWNrZ3JvdW5kQ29sb3IlMjIlM0ElN0IlMjJjb2xvciUyMiUzQSU3QiUyMmxpZ2h0JTIyJTNBJTIyJTIzZjU4MjI3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jJsaWdodCUyMiUzQSUyMiUyM2NjY2VjZiUyMiU3RCU3RCU3RCU3RA==
Aura tab
summaryAWS
paramsJTdCJTIydGl0bGUlMjIlM0ElMjJBV1MlMjIlN0Q=
  1. SSH to EC2 instance from sudo user.

  2. Copy and paste the below commands in the terminal:

    Code Block
    sudo -i
    sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
    rm -rf /home/kyvos/.ssh/authorized_keys
    rm -rf /home/centos/.ssh/authorized_keys
    sudo passwd $user
    Enter the password you want to set
    sudo passwd centos
    Enter the password you want to set
    sudo service sshd restart
  3. Close the terminal and use the password to SSH.

  4. Run the below command from root user to add a linux user and give permissions:

    Code Block
    sudo useradd -m $user
    sudo passwd $user
    sudo usermod -a -G $user $user
  5. Increase ulimit of Linux User user on all nodes using the command:

    Code Block
    echo $user hard nofile 524288 >> /etc/security/limits.conf
    echo $user hard nofile 524288 >> /etc/security/limits.d/20-nproc.conf
    echo $user soft nofile 524288 >> /etc/security/limits.conf
    echo $user soft nofile 524288 >> /etc/security/limits.d/20-nproc.conf
  6. Add $user in /etc/cron.allow

    Code Block
    cd /var/spool/cron/
    touch $user
  7. Make the Linux user owner of these directories, using the command:

    Code Block
    chown -R $user:$user /data/kyvos/app
    chown -R $user:$user /data/kyvos/installs
    chown -R $user:$user /mnt/s3
    sudo chown -R $user:$user /var/spool/cron/$user
  8. Use the JRE shipped with the Kyvos bundle (recommended), modify the /home/$user/.bashrc using the below command from $user.

    Code Block
    cd
    vi .bashrc
    export PATH=<install path>/kyvosmanager_war/kyvosmanager/jre/bin/:$PATH
    source .bashrc

Adding Step for EMR

Panel
panelIconIdatlassian-info
panelIcon:info:
bgColor#FFFAE6

Important

This information mentioned-below are only applicable for Spark-based deployments.

To create a user directory for the Deployment user on HDFS, you need to Add Step in EMR.

NOTE: Replace $USER with the user being used for Kyvos deployment.

  1. Click Add Step on the existing EMR.

  2. On the Step screen, enter details as:

    1. Step type: Select the Custom JAR option.

    2. Name: Create temp directory for $USER on HDFS.

    3. JAR location: Provide the value as command-runner.jar

    4. Arguments: Provide the value as bash -c "sudo -u hdfs hadoop fs -mkdir -p /user/$USER/tmp; sudo -u hdfs hadoop fs -chmod -R 777 /user/$USER"

    5. Action on failure: Select the Continue option.

  3. Click the Add button.

  4. Restart BI Server so that EMR changes get synchronized with BI Server.

  5. Delete the Temp folder

Aura tab
summaryAzure
paramsJTdCJTIydGl0bGUlMjIlM0ElMjJBenVyZSUyMCUyMiU3RA==
  1. SSH to Azure VM using sudo user.

    Code Block
    sudo -i
    sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
    rm -rf /home/kyvos/.ssh/authorized_keys
    rm -rf /home/adminuser/.ssh/authorized_keys
    sudo passwd $user
    Enter the password you want to set
    sudo passwd adminuser
    Enter the password you want to set
    sudo service sshd restart
  2. Copy the below commands on the terminal:

  3. Close the terminal and use the password to SSH.

  4. Run the below command from the root user to add a Linux user and give permissions:

    Code Block
    sudo useradd -m $user
    sudo passwd $user
    sudo usermod -a -G  $user $user
  5. Increase ulimit of Linux User user on all nodes using the command:

    Code Block
    echo $user hard nofile 524288 >> /etc/security/limits.conf  
    echo $user hard nofile 524288 >> /etc/security/limits.d/20-nproc.conf 
    echo $user soft nofile 524288 >> /etc/security/limits.conf 
    echo $user soft nofile 524288 >> /etc/security/limits.d/20-nproc.conf
  6. Add $user in /etc/cron.allow using the command:

    Code Block
    cd /var/spool/cron/
    touch $user
  7. Make Linux user owner of these directories using the command:

    Code Block
    chown -R $user:$user /data/kyvos/app
    chown -R $user:$user /data/kyvos/installs
    sudo chown -R $user:$user /var/spool/cron/$user 

  8. To use the JRE shipped with the Kyvos bundle (recommended), modify the /home/$user/.bashrc using the below command from $user:

    Code Block
    cd 
    vi .bashrc
    export PATH=<install path>/kyvosmanager_war/kyvosmanager/jre/bin/: /data/kyvos/installs/bin:$PATH
    export HD_INSIGHT_BINARIES=<install path>/hdinsights/lib
    export JAVA_HOME=/data/kyvos/app/jre
    source .bashrc
Aura tab
summaryGCP
paramsJTdCJTIydGl0bGUlMjIlM0ElMjJHQ1AlMjIlN0Q=
  1. SSH to GCP VM from sudo user.

  2. Copy and paste the below commands in the terminal:

    Code Block
    sudo -i
    sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
    rm -rf /home/kyvos/.ssh/authorized_keys
    sudo passwd $user
    Enter the password you want to set
    sudo service sshd restart
  3. Close the terminal and use the password to SSH.

  4. Run the below command from the root user to add a Linux user and give permissions:

    Code Block
    sudo useradd -m $user
    sudo passwd $user
    sudo usermod -a -G $user $user
  5. Increase ulimit of Linux User user on all nodes using the command:

    Code Block
    echo $user hard nofile 524288 >> /etc/security/limits.conf
    echo $user hard nofile 524288 >> /etc/security/limits.d/20-nproc.conf
    echo $user soft nofile 524288 >> /etc/security/limits.conf
    echo $user soft nofile 524288 >> /etc/security/limits.d/20-nproc.conf
  6. Add $user in /etc/cron.allow

    Code Block
    cd /var/spool/cron/
    touch $user
  7. Make Linux user owner of these directories.

    Code Block
    chown -R $user:$user /data/kyvos/app
    chown -R $user:$user /data/kyvos/installs
    sudo chown -R $user:$user /var/spool/cron/$user
  8. Use the JRE shipped with the Kyvos bundle (recommended), modify the /home/$user/.bashrc using the below command from the root user.

    Code Block
    cd /home/$user
    vi .bashrc
    export PATH=<install path>/kyvosmanager_war/kyvosmanager/jre/bin/:$PATH
    source .bashrc
  9. On the Master node of Dataproc, run the below commands on the terminal:

    Code Block
    hadoop fs -mkdir -p /user/$user/temp
    hadoop fs -chmod -R 777 /user/$user

...