Skip to content

Instantly share code, notes, and snippets.

@thanoojgithub
Created January 20, 2017 19:52
Show Gist options
  • Save thanoojgithub/ced885799655f8df5c679de158ae80c8 to your computer and use it in GitHub Desktop.
Save thanoojgithub/ced885799655f8df5c679de158ae80c8 to your computer and use it in GitHub Desktop.
1. Install JAVA
2.
thanooj@thanooj-Inspiron-3521:~$ sudo addgroup hadoop
Adding group `hadoop' (GID 1001) ...
Done.
thanooj@thanooj-Inspiron-3521:~$ sudo adduser --ingroup hadoop hadoopuser
Adding user `hadoopuser' ...
Adding new user `hadoopuser' (1001) with group `hadoop' ...
Creating home directory `/home/hadoopuser' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for hadoopuser
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] Y
thanooj@thanooj-Inspiron-3521:~$
thanooj@thanooj-Inspiron-3521:~$ su - hadoopuser
Password:
hadoopuser@thanooj-Inspiron-3521:~$ ssh-keygen -t rsa -P ""
Generating public/private rsa key pair.
Enter file in which to save the key (/home/hadoopuser/.ssh/id_rsa):
Created directory '/home/hadoopuser/.ssh'.
Your identification has been saved in /home/hadoopuser/.ssh/id_rsa.
Your public key has been saved in /home/hadoopuser/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:28Lp2Y8cp51I4Jt8C5/7f7tmHl9tEOKqm59UwDl6Hkw hadoopuser@thanooj-Inspiron-3521
The key's randomart image is:
+---[RSA 2048]----+
| |
| . . |
| E . . |
| + + . . |
| S + o . |
| o B + ..|
| B B . .+|
| o #.X . +=|
| X+&==.==+|
+----[SHA256]-----+
hadoopuser@thanooj-Inspiron-3521:~$ cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys
hadoopuser@thanooj-Inspiron-3521:~$ ssh localhost
The authenticity of host 'localhost (127.0.0.1)' can't be established.
ECDSA key fingerprint is SHA256:LMWwdw55yUq2Z4qZAkWTKPwB7FGFYjSADR+YFuwMA8I.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
Welcome to Ubuntu 16.10 (GNU/Linux 4.8.0-22-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
181 packages can be updated.
63 updates are security updates.
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment