Advertisement
Guest User

Untitled

a guest
Jul 10th, 2015
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. ## Ambari-Server Debian troubleshooting
  2.  
  3. ### Install java8 on all nodes
  4.  
  5. apt-get install openjdk-8-jdk
  6.  
  7. echo "export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64" > /etc/profile.d/Z99-java-env.sh
  8.  
  9. source /etc/profile.d/Z99-java-env.sh
  10.  
  11.  
  12. ### Fake debian_version
  13.  
  14. echo "12" > /etc/debian_version
  15.  
  16.  
  17. ### Install ambari-server (see official documentation on how to install it in ubuntu)
  18.  
  19. apt-get install ambari-server
  20.  
  21. ambari-server setup
  22.  
  23.  
  24. ### Create ca keypair (use content of /var/lib/ambari-server/keys/pass.txt as passphrase)
  25.  
  26. openssl req -config /var/lib/ambari-server/keys/ca.config.hack -new -x509 -keyout /var/lib/ambari-server/keys/ca.key -out /var/lib/ambari-server/keys/ca.crt -days 3650
  27.  
  28.  
  29. ### Create keystore.p12
  30.  
  31. openssl pkcs12 -export -in '/var/lib/ambari-server/keys/ca.crt' -inkey '/var/lib/ambari-server/keys/ca.key' -certfile '/var/lib/ambari-server/keys/ca.crt' -out '/var/lib/ambari-server/keys/keystore.p12' -password file:'/var/lib/ambari-server/keys/pass.txt'
  32.  
  33.  
  34. ### Review keystore.p12
  35.  
  36. openssl pkcs12 -info -in '/var/lib/ambari-server/keys/keystore.p12' -password file:'/var/lib/ambari-server/keys/pass.txt'
  37.  
  38.  
  39. ### Get and trush ambari-server ssl cert
  40.  
  41. mkdir /usr/share/ca-certificates/ambari
  42.  
  43. echo | openssl s_client -connect ec2-52-28-136-202.eu-central-1.compute.amazonaws.com:8440 2>&1 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /usr/share/ca-certificates/ambari/server.crt
  44.  
  45. dpkg-reconfigure ca-certificates # and then choose ask and select ambari/server.crt
  46.  
  47.  
  48. ### On installation zookeeper-server fails to install. Manually install zookeeper-server.deb package on each zookeeper server because it conflicts with zookeeper.deb and we need to --force-overwrite. Then retry installation from ambari-server WEB UI.
  49.  
  50. dpkg --force-overwrite -i /var/cache/apt/archives/zookeeper-2-2-6-0-2800-server_3.4.6.2.2.6.0-2800_all.deb
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement