ubontu singlenode configration

Upload: rezzu786

Post on 07-Jul-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/18/2019 ubontu singlenode Configration

    1/2

    single node configuration and HADOOP COMMANDS==================== ==========================

    update the repositary

    $sudo apt-get update

    Step 6: Download Hadoop 1.2.0

    $ wget http://archive.apache.org/dist/hadoop/core/hadoop-1.2.0/hadoop-1.2.0.tar.gz-----------------------6.1 Extract the downloaded package

    $ tar -xvf hadoop-1.2.0.tar.gz========================================update path of hadoop

    user@ubuntu$ vi .bashrc

    export PATH=$PATH:/home/user/hadoop-1.2.0/bin (after this save nquit)

    goto hadoop folder and type $gedit .bashrc

    UPDATING CONFIGURATION FILE--------------------------JAVA PATH IN HADOOP -ENV.SH FILE-------------$ cd hadoop-1.2.0/conf$ vi hadoop-env.sh (in this file type below command )

    --------------export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-i386------------------------

    EDIT CORE SITE XML FILE-----------------------$cd hadoop-1.2.0/conf$vi core-site.xml (edit below program in editd file)=========================

    fs.default.namehdfs://localhost:8020

    -=============================cd hadoop-1.2.0/confvi hdfs-site.xml (type below program in edited file)=============================

    dfs.replication1

    dfs.permissions

    false

  • 8/18/2019 ubontu singlenode Configration

    2/2

    =====================

    cd hadoop 1.2.0/conf

    vi mapred-site.xml (type below program)============================

    mapred.job.trackerlocalhost:8021

    =========================

    install SSH server

    sudo apt -get install openssh -server

    ifconfig

    copy ip address in host file

    $sudo gedit /etc/hosts

    creating password -less SSH login

    $ssh-keygen t rsa P

    for moving authorised keys to$cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys

    ============= =================== =================