Los servicios a ejecutar en el clúster necesitan Java. Por ello se instala el kit de desarrollo de Java en todos los nodos del clúster. El stack de Hadoop que se va a instalar requiere Java 8.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# apt-get update Hit: 1 http://archive.ubuntu.com/ubuntu focal InRelease Get:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB] Hit: 3 http://archive.ubuntu.com/ubuntu focal-backports InRelease Hit:4 http://archive.ubuntu.com/ubuntu focal-security InRelease Fetched 114 kB in 1s (88.9 kB/s) Reading package lists... Done # apt-get install openjdk-8-jdk Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: adwaita-icon-theme at-spi2-core ca-certificates-java fontconfig fontconfig-config fonts-dejavu-core fonts-dejavu-extra gtk-update-icon-cache hicolor-icon-theme humanity-icon-theme java-common libasyncnse libatk-bridge2.0-0 libatk-wrapper-java libatk-wrapper-java-jni libatk1.0-0 libatk1.0-data libatspi2.0-0 libavahi-client3 libavahi-common-data libavahi-common3 libcairo-gobject2 libcairo2 libcups2 libdatrie1 libdrm-amdgpul libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libflac8 libfontconfigl libfontenc1 libgail-common libgail18 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common libgif7 libgl1 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libglvnde libglx-mesae libglxe libgraphite2-3 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libharfbuzzeb libice-dev libice6 libjbige libjpeg-turbo8 libjpeg8 liblcms2-2 libllvm12 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpciaccesse libpcsclitel libpixman-1-0 libpthread-stubse-dev libpulsee librsvg2-2 librsvg2-common libsensors-config libsensors5 libsm-dev libsm6 libsndfilel libthai-data libthaie libtiff5 libvorbisenc2 libvulkan1 libwayland-cliente libwebp6 libx11-dev libx11-xcb1 libxau-dev libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glxe libxcb-presente libxcb-randre libxcb-rendere libxcb-shape libxcb-shme libxcb-sync1 libxcb-xfixese libxcb1-dev libxcomposite1 libxcursor1 libxdamage1 libxdmcp-dev libxfixes3 libxft2 libxi6 libxineramal libxkbfilel libxmu6 libxpm4 libxrandr2 libxrender1 libxshmfencel libxt-dev libxt6 libxtst6 libxv1 libxxf86dgal libxxf86vm1 mesa-vulkan-drivers openjdk-8-jdk-headless openjdk-8-jre openjdk-8-jre-headless ubuntu-mono x11-common x11-utils x11proto-core-dev x11proto-dev xorg-seml-doctools xtrans-dev |
Una vez instalado se configuran las variables de entorno necesarias en el sistema:
1 2 3 4 5 6 7 8 |
# update-alternatives --config java There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java Nothing to configure. # echo JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre >> /etc/environment # cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre/ |