lulasasx.blogg.se

Installing openjdk 7 on ubuntu 14.04
Installing openjdk 7 on ubuntu 14.04











installing openjdk 7 on ubuntu 14.04

installing openjdk 7 on ubuntu 14.04

The /usr/local/hadoop/etc/hadoop/core-site.xml file contains configuration properties that Hadoop uses when starting up. usr/local/hadoop/etc/hadoop/core-site.xml: We need to set JAVA_HOME by modifying hadoop-env.sh vi /usr/local/hadoop/etc/hadoop/hadoop-env.shĪdding the above statement in the hadoop-env.sh file ensures that the value of JAVA_HOME variable will be available to Hadoop whenever it is started up.ģ. usr/local/hadoop/etc/hadoop/hadoop-env.sh usr/lib/jvm/java-7-openjdk-amd64/bin/javacĢ. 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

installing openjdk 7 on ubuntu 14.04

  • /usr/local/hadoop/etc/hadoop/hdfs-site.xmlīefore editing the.
  • /usr/local/hadoop/etc/hadoop/core-site.xml.
  • installing openjdk 7 on ubuntu 14.04

  • /usr/local/hadoop/etc/hadoop/hadoop-env.sh.
  • The following files will have to be modified to complete the Hadoop setup: Now, the hduser has root priviledge, we can move the Hadoop installation to the /usr/local/hadoop directory without any sudo su sudo mv * sudo chown -R hduser:hadoop /usr/local/hadoop This error can be resolved by logging in as a root user, and then add hduser to su sudo adduser hduser sudo We want to move the Hadoop installation to the /usr/local/hadoop directory using the following sudo mv * /usr/local/hadoop

    #Installing openjdk 7 on ubuntu 14.04 install#

    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.













    Installing openjdk 7 on ubuntu 14.04