SHARE
TWEET

IM2.0 Install - InstallDR1

sweenig Apr 25th, 2014 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #echo "Updating the system..."
  2. #yum -y update
  3. echo "Installing missing libraries..."
  4. yum -y install glibc.i686 unzip bc sudo libstdc++-4.4.6-4.el6.i686
  5. echo "Making CentOS look like RHEL 5.8..."
  6. echo "Red Hat Enterprise Linux Server release 5.8 (Tikanga)" > /etc/redhat-release
  7. echo "Disabling SELinux..."
  8. cat /etc/selinux/config | sed -e 's/SELINUX=.*/SELINUX=disabled/' > /etc/selinux/config
  9. echo "Downloading the installer..."
  10. curl -u im20:******** -# -o /opt/CA/installDR.bin http://192.168.1.110/IM20/CA_DA_20_Linux/installDR.bin
  11. echo "Preparing Vertica installer using default settings..."
  12. chmod u+x /opt/CA/installDR.bin
  13. echo 'USER_INSTALL_DIR=/opt/CA/IMDataRepository
  14. -fileOverwrite_/opt/CA/IMDataRepository/Uninstall/Uninstall.lax=Yes
  15. -fileOverwrite_/opt/CA/IMDataRepository/vertica-5.0.4-0.x86_64.RHEL5.rpm=Yes
  16. -fileOverwrite_/opt/CA/IMDataRepository/vlicense.dat=Yes
  17. -fileOverwrite_/opt/CA/IMDataRepository/bin/drAnalyzeTimestamps.sh=Yes
  18. -fileOverwrite_/opt/CA/IMDataRepository/bin/drAnalyzeDimensionTables.sh=Yes' > /opt/CA/DRinstaller.properties
  19. /opt/CA/installDR.bin -i silent -f /opt/CA/DRinstaller.properties
  20. rpm -ivh /opt/CA/IMDataRepository/vertica-5.0.4-0.x86_64.RHEL5.rpm
  21. echo "Setting up DRAdmin user..."
  22. /usr/sbin/useradd dradmin -p qosisking
  23. /usr/bin/chsh -s /bin/bash dradmin
  24. echo "Modifying security settings..."
  25. cp /etc/security/access.conf /etc/security/access.conf.old
  26. echo "-:ALL EXCEPT dradmin root:LOCAL" >> /etc/security/access.conf
  27. echo "Setting up the license..."
  28. cp /opt/CA/IMDataRepository/vlicense.dat /tmp/vlicense.dat
  29. chown dradmin:dradmin /tmp/vlicense.dat
  30. chmod 664 /tmp/vlicense.dat
  31. echo "Setting up data directory..."
  32. mkdir -p /data
  33. chown dradmin:dradmin /data
  34. echo "Installing Vertica..."
  35. /opt/vertica/sbin/install_vertica -s 'localhost' -u dradmin -l /home/dradmin -d /data -L /tmp/vlicense.dat #install vertica
RAW Paste Data
Top