Giter Club home page Giter Club logo

elixir's Introduction

Setting up Hadoop and other softwares for Elixir Professional Services - Big Data and Hadoop training

Download the tar ball https://drive.google.com/open?id=0B5BbiPqrIgf8QkRFUTk2cnl6eVk . By default it will be saved in Downloads directory. Run following commands

cd $HOME # Takes you to your home directory
tar -zxvf \<hadoop.tgz path - mostly ~/Downloads/hadoop.tgz\> 

Check Your JAVA_HOME path copy the latest one and use in next step

ls /usr/lib/jvm/ | grep 0-openjdk

Edit your .bashrc file and add following lines at the end

gedit .bashrc

#use path that you copied in previous step export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64/

export HADOOP_HOME=$HOME/hadoop/hadoop-2.7.2/

PATH=$PATH:$HADOOP_HOME/bin/:$HADOOP_HOME/sbin/:$HOME/hadoop/bin/

Now go to the following hadoop configuration directory and replace elixir word with your login name.

cd $HOME/hadoop/hadoop-2.7.2/etc/hadoop
 sed -i ~s/elixir/<YOUR_USER_NAME>/g *

Now setup the passwordless ssh for your login PRESS ENTER WHEN ASKED FOR PASSPHRASE (BLANK)

ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/elixir/.ssh/id_rsa): 
Created directory '/home/elixir/.ssh'.
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/elixir/.ssh/id_rsa.
Your public key has been saved in /home/elixir/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:3JHop0oTKd3488b3TR6HAxUU8W1zav1QkGQL3KnD/wE elixir@1511250d0578
The key's randomart image is:
+---[RSA 2048]----+
|           ..+O= |
|         . ..o+=.|
|        . o. .o.*|
|     . * . .+E =o|
|    . = S o .o= .|
|     . o o   o.+.|
|      o +.    oo=|
|     . o oo .  =+|
|      .  ... .. o|
+----[SHA256]-----+

Last step in setting ssh key

cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

Format HDFS and check if that is working fine.

hdfs namenode -format
start-hadoop.sh
hdfs dfs -mkdir -p input
hdfs dfs -ls 

If there is no error in the last command, and you see input directory as the output, congratulate yourself for setting up the Hadoop successfully.

elixir's People

Contributors

harsh306 avatar daemon12 avatar

Watchers

James Cloos avatar Sandeep Deshmukh avatar

Forkers

harsh306 daemon12

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.