![ubuntu14 install openjdk 7 ubuntu14 install openjdk 7](https://linuxhint.com/wp-content/uploads/2020/06/7-26.png)
usr/lib/jvm/java-7-openjdk-amd64/bin/javacĢ.
![ubuntu14 install openjdk 7 ubuntu14 install openjdk 7](https://www.howtodojo.com/wp-content/uploads/2017/07/openjdk-7-jre-headless-ubuntu-16.04.png)
Note that the JAVA_HOME should be set as the path just before the javac -version Now we can append the following to the end of vi ~/.bashrcĮxport JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64Įxport HADOOP_MAPRED_HOME=$HADOOP_INSTALLĮxport HADOOP_COMMON_HOME=$HADOOP_INSTALLĮxport HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_INSTALL/lib/nativeĮxport HADOOP_OPTS="=$HADOOP_INSTALL/lib" There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java bashrc file in our home directory, we need to find the path where Java has been installed to set the JAVA_HOME environment variable using the following update-alternatives -config java
![ubuntu14 install openjdk 7 ubuntu14 install openjdk 7](https://www.howtodojo.com/wp-content/uploads/2017/07/openjdk-7-jre-ubuntu-16.04.png)
Install wget tar xvzf hadoop-2.6.0.tar.gz Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts. The authenticity of host 'localhost (127.0.0.1)' can't be established.ĮCDSA key fingerprint is e1:8b:a0:a5:75:ef:f4:b4:5e:a9:ed:be:64:be:5c:2f.Īre you sure you want to continue connecting (yes/no)? yes The second command adds the newly created key to the list of authorized keys so that Hadoop can use ssh without prompting for a password. cat $HOME/.ssh/id_rsa.pub > $HOME/.ssh/authorized_keys Your identification has been saved in /home/hduser/.ssh/id_rsa. If asked for a filename just leave it blank and press the enter key to su ssh-keygen -t rsa -P ""Įnter file in which to save the key (/home/hduser/.ssh/id_rsa): However, this requirement can be eliminated by creating and setting up SSH certificates using the following commands. Hadoop uses SSH (to access its nodes) which would normally require the user to enter a password. So, we need to have SSH up and running on our machine and configured it to allow SSH public key authentication. For our single-node setup of Hadoop, we therefore need to configure SSH access to localhost. Hadoop requires SSH access to manage its nodes, i.e.