hadoop install

hadoop install

install java

PDF 下載

 

powen@ubuntu:~$ java -version

The program 'java' can be found in the following packages:

* default-jre

* gcj-4.9-jre-headless

* gcj-5-jre-headless

* openjdk-8-jre-headless

* gcj-4.8-jre-headless

* openjdk-9-jre-headless

Try: sudo apt install <selected package>

powen@ubuntu:~$ sudo apt-get update

Hit:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease

Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]

Get:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [94.5 kB]

Get:4 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages [73.7 kB]

powen@ubuntu:~$ sudo apt-get install default-jdk

powen@ubuntu:~$ update-alternatives --display java

java - auto mode

link best version is /usr/lib/jvm/java-8-openjdk-i386/jre/bin/java

link currently points to /usr/lib/jvm/java-8-openjdk-i386/jre/bin/java

link java is /usr/bin/java

slave java.1.gz is /usr/share/man/man1/java.1.gz

/usr/lib/jvm/java-8-openjdk-i386/jre/bin/java - priority 1081

slave java.1.gz: /usr/lib/jvm/java-8-openjdk-i386/jre/man/man1/java.1.gz

powen@ubuntu:~$ sudo apt-get install ssh

[sudo] password for powen:

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following additional packages will be installed:

ncurses-term openssh-client openssh-server openssh-sftp-server ssh-import-id

Suggested packages:

ssh-askpass libpam-ssh keychain monkeysphere rssh molly-guard

The following NEW packages will be installed:

ncurses-term openssh-server openssh-sftp-server ssh ssh-import-id

The following packages will be upgraded:

openssh-client

powen@ubuntu:~$ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa

Generating public/private dsa key pair.

Created directory '/home/powen/.ssh'.

Your identification has been saved in /home/powen/.ssh/id_dsa.

Your public key has been saved in /home/powen/.ssh/id_dsa.pub.

The key fingerprint is:

SHA256:Be+Q4bgfAQ4MGRZl/5uiULoEKGDp3t3hxkFvPJ3uT0g powen@ubuntu

The key's randomart image is:

+---[DSA 1024]----+

| =B+ . o |

| .o..+ + = |

|.o +.= o |

|= .oo=. . |

|+. . .oS=.E |

|o..o. +.+++ . |

| .+. ..=+ o . |

| . o ... . . |

| . . ... |

+----[SHA256]-----+

powen@ubuntu:~$ ll ~/.ssh

total 16

drwx------ 2 powen powen 4096 May 31 19:40 ./

drwxr-xr-x 17 powen powen 4096 May 31 19:40 ../

-rw------- 1 powen powen 668 May 31 19:40 id_dsa

-rw-r--r-- 1 powen powen 602 May 31 19:40 id_dsa.pub

powen@ubuntu:~$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

powen@ubuntu:~$ cd Desktop/

powen@ubuntu:~/Desktop$ wget http://apache.stu.edu.tw/hadoop/common/hadoop-2.6.4/hadoop-2.6.4.tar.gz

  • 教學 724
  • 柯博文個人 356