SlideShare a Scribd company logo
1 of 6
visit me at http://jamesjara.com or follow me at http://twitter.com/jamesjara by ww

  source:http://linux-costarica.blogspot.com/2012/02/installing-hadoophivederby-on-centos.html, http://linux-costarica.blogspot.com/2012/02/installing-
  hadoophivederby-on-centos.html
  More:visitmeathttp://jamesjara.comorfollowmeathttp://twitter.com/jamesjara
  source:http://linux-costarica.blogspot.com/2012/02/installing-hadoophivederby-on-centos.html, http://linux-costarica.blogspot.com/2012/02/installing-
  hadoophivederby-on-centos.html
  More:visitmeathttp://jamesjara.comorfollowmeathttp://twitter.com/jamesjara


  INSTALLING HADOOP,HIVE,DERBY ON CENTOS
  Please subscribe to my site www.jamesjara.com to get more tutorials.

  INSTALLING HADOOP IN centos 6
  INSTALLING HIVE IN centos 6
  INSTALLING DERBY IN centos 6
  hadoop-0.20.203.0rc1

  thisistheguidefortheinstallationofHadoopecosystem,
  is very extended so please follow step by step

  ====INSTALLATION=====

  1.Installingjava
   Âyum installsun-java6-jdk

  2.Adding a dedicated user for hadoop
  Thiswilladdtheuserhdoopuserandthegrouphdoopgrouptoyourlocalmachine.
  Â Â Â /usr/sbin/useradd hdoopuser
  Â Â Â groupadd hdoopgroup
  Â Â Â usermod -a -G hdoopgroup hdoopuser

  3.ConfiguringSSH
visit me at http://jamesjara.com or follow me at http://twitter.com/jamesjara by ww
      su - hdoopuser      #login as hdoopuser
  ÂÂ   Â ssh-keygen -t rsa -P ""Â Â Â #generate key without password
      cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys   #enable the new key
      chmod 0600 $HOME/.ssh/authorized_keys   #enable empty password


  4.DisablingIPv6
  Â Â Â sed -i s/^(NETWORKINGs*=s*).*$/NETWORKING=NO/ /etc/sysconfig/network

  5.Installation/Conf/startupofHadoop
  Â Â Â mkdir /hadoop
  Â Â Â chown -R hdoopuser /hadoop
  Â Â Â cd /hadoop/
  Â Â Â wget http://mirrors.abdicar.com/Apache-HTTP-Server//hadoop/common/stable/hadoop-0.20.203.0rc1.tar.gz
  Â Â Â tar -xvzf hadoop-0.20.203.0rc1.tar.gz
  Â Â Â ln -s /hadoop/hadoop-0.20.203.0rc1/ /hadoop/hadoop
  Â Â Â cd /hadoop/hadoop


  ÂÂ   Â#basicconfig
  ÂÂ   Â 1)
  ÂÂ   Âvimconf/core-site.xml
  ÂÂ   ÂÂÂ Â#Addthefollowinginsidethe<configuration>tag
  ÂÂ   Â Â Â Â <property>
  ÂÂ   ÂÂÂ ÂÂ <name>fs.default.name</name>
  ÂÂ   ÂÂÂ ÂÂ <value>hdfs://localhost:9000/</value>
  ÂÂ   Â Â Â Â </property>
  ÂÂ   Â Â Â Â <property>
  ÂÂ   ÂÂÂ Â<name>dfs.permissions</name>
  ÂÂ   ÂÂÂ Â<value>false</value>
  ÂÂ   Â Â Â Â </property>
  ÂÂ   Â 2)
  ÂÂ   Âvimconf/hdfs-site.xml
  ÂÂ   ÂÂÂ Â#Addthefollowinginsidethe<configuration>tag
  ÂÂ   Â Â Â Â <property>
visit me at http://jamesjara.com or follow me at http://twitter.com/jamesjara by ww
  ÂÂ   Â Â Â Â Â <name>dfs.name.dir</name>
  ÂÂ   Â Â Â Â Â <value>/hadoop/hdfs/name</value>
  ÂÂ   Â Â Â Â </property>
  ÂÂ   Â Â Â Â <property>
  ÂÂ   Â Â Â Â Â <name>dfs.data.dir</name>
  ÂÂ   Â Â Â Â Â <value>/hadoop/hdfs/data</value>
  ÂÂ   Â Â Â Â </property>
  ÂÂ   Â Â Â Â <property>
  ÂÂ   Â Â Â Â Â <name>dfs.replication</name>
  ÂÂ   Â Â Â Â Â <value>2</value>
  ÂÂ   Â Â Â Â </property>
  ÂÂ   Â 3)
  ÂÂ   Âvimconf/mapred-site.xml
  ÂÂ   ÂÂÂ Â#Addthefollowinginsidethe<configuration>tag
  ÂÂ   Â Â Â Â <property>
  ÂÂ   Â Â Â Â Â <name>mapred.job.tracker</name>
  ÂÂ   Â Â Â Â Â <value>localhost:9001</value>
  ÂÂ   Â Â Â Â </property>
  ÂÂ   Â 4)
  ÂÂ   Âvimconf/hadoop-env.sh
  ÂÂ   Â Â Â Â export JAVA_HOME=/opt/jre/
  ÂÂ   Â Â Â Â export HADOOP_OPTS=-Djava.net.preferIPv4Stack=true
  ÂÂ   Â 5)
  ÂÂ   Â Fomart nodes
  ÂÂ   Â Â Â Â su - hdoopuser
  ÂÂ   Â Â Â Â cd /hadoop/hadoop
  ÂÂ   Â Â Â Â bin/hadoop namenode -format
  ÂÂ   Â 6)Start hadoop
  ÂÂ   Â Â Â Â bin/start-all.sh
  ÂÂ   Â Â Â Â notes:Â HTTP CONSOLE OF HADOOP
  ÂÂ   Â Â Â Â Â Â Â http://localhost:50030/ for the jobtrackeR
  ÂÂ   Â Â Â Â Â Â Â http://localhost:50070/ for the namenode
visit me at http://jamesjara.com or follow me at http://twitter.com/jamesjara by ww
  5.Installation/Conf/startupofHive/Derby
  Â Â Â cd /hadoop
  ÂÂ Âwgethttp://mirrors.ucr.ac.cr/apache//hive/stable/hive-0.8.1-bin.tar.gz
  Â Â Â tar -xvzf hive-0.8.1-bin.tar.gz
  Â Â Â ln -s /hadoop/hive-0.8.1-bin/ /hadoop/hive
  Â Â Â export HADOOP_HOME=/hadoop/hadoop/
  linux-costarica.blogspot.com   cd /hadoop/hive
  ÂÂÂ Âmvconf/hive-default.xml.templateconf/hive-site.xml
  Â Â Â #test hive
  ÂÂ Âbin/hive
  Â Â Â Â Â Â > show tables;
  ÂÂ Â#installingderbymetadatastore
  Â Â Â cd /hadoop
  Â Â Â wget http://archive.apache.org/dist/db/derby/db-derby-10.4.2.0/db-derby-10.4.2.0-bin.tar.gz
  Â Â Â tar -xzf db-derby-10.4.2.0-bin.tar.gz
  Â Â Â ln -s db-derby-10.4.2.0-bin derby
  Â Â Â mkdir derby/data
  Â Â Â export DERBY_INSTALL=/hadoop/derby/
  Â Â Â export DERBY_HOME=/hadoop/derby/
     export HADOOP=/hadoop/hadoop/bin/hadoop Â


  ÂÂ   Â vim /hadoop/hadoop/bin/start-dfs.sh
  ÂÂ   Â #add to the file start-dfs.sh the next 2 lines
  ÂÂ   Â Â Â Â cd /hadoop/derby/data
  ÂÂ   Â Â Â Â nohup /hadoop/derby/bin/startNetworkServer -h 0.0.0.0 &

  ÂÂ   Âvim/hadoop/hadoop/bin/start-all.sh
  ÂÂ   Â#addtothefilestart-all.shthenext2lines
  ÂÂ   Â Â Â Â cd /hadoop/derby/data
  ÂÂ   Â Â Â Â nohup /hadoop/derby/bin/startNetworkServer -h 0.0.0.0 &

  Â Â Â #HIVE CONF
  ÂÂ Âvim/hadoop/hive/conf/hive-site.xmlÂÂ Â#installingwebpanelforhive,searchandreplace
visit me at http://jamesjara.com or follow me at http://twitter.com/jamesjara by ww
  ÂÂ   Â#searchfor"javax.jdo.option.ConnectionURL"andeditlikethefollowing
  ÂÂ   Â Â Â Â <property>
  ÂÂ   Â Â Â Â Â <name>javax.jdo.option.ConnectionURL</name>
  ÂÂ   Â Â Â Â Â <value>jdbc:derby://localhost:1527/metastore_db;create=true</value>
  ÂÂ   Â Â Â Â Â <description>JDBC connect string for a JDBC metastore</description>
  ÂÂ   Â Â Â Â </property>
  ÂÂ   Â #HTTP CONSOLE OF HIVE
  ÂÂ   Â bin/hive --service hwi &Â Â Â Â Â Â Â Â Â Â Â
  ÂÂ   ÂÂÂ ÂURL:http://localhost:9999/

  ÂÂ   Â #create new file
  ÂÂ   Âvim/hadoop/hive/conf/jpox.properties
  ÂÂ   Â#addthefollowing
  ÂÂ   Â Â Â Â javax.jdo.PersistenceManagerFactoryClass=org.jpox.PersistenceManagerFactoryImpl
  ÂÂ   Â Â Â Â org.jpox.autoCreateSchema=false
  ÂÂ   Â Â Â Â org.jpox.validateTables=false
  ÂÂ   Â Â Â Â org.jpox/usr/share/javadoc/java-1.6.0-openjdk/jre/.validateColumns=false
  ÂÂ   Â Â Â Â org.jpox.validateConstraints=false
  ÂÂ   Â Â Â Â org.jpox.storeManagerType=rdbms
         org.jpox.autoCreateSccp /hadoop/derby/lib/derbytools.jar /hadoop/hive/libhema=true
  ÂÂ   Â Â Â Â org.jpox.autoStartMechanismMode=checked
  ÂÂ   Â Â Â Â org.jpox.transactionIsolation=read_committed
  ÂÂ   ÂÂÂ Âjavax.jdo.option.DetachAllOnCommit=true
  ÂÂ   Â Â Â Â javax.jdo.option.NontransactionalRead=true
  ÂÂ   Â Â Â Â javax.jdo.option.ConnectionDriverName=org.apache.derby.jdbc.ClientDriver
  ÂÂ   Â Â Â Â javax.jdo.option.ConnectionURL=jdbc:derby://localhost:1527/metastore_db;create=true
  ÂÂ   Â Â Â Â javax.jdo.option.ConnectionUserName=APP
  ÂÂ   Â Â Â Â javax.jdo.option.ConnectionPassword=mine
  ÂÂ   Â #now copy derby jar sources to Hive lib
  ÂÂ   Âcp/hadoop/derby/lib/derbyclient.jar/hadoop/hive/lib
      cp /hadoop/derby/lib/derbytools.jar /hadoop/hive/lib


  Â Â Â #HTTP CONSOLE OF HIVEÂ Â Â Â Â
visit me at http://jamesjara.com or follow me at http://twitter.com/jamesjara by ww
  ÂÂ Âhttp://localhost:9999/hwi/forthehive

  6.START CLUSTER
  Â Â Â /hadoop/hadoop/bin/start-all.sh
  ÂÂ Â/hadoop/hive/bin/hive--servicehwi&ÂÂ #hwi=webpanel
  ÂÂ

  7. FOR NEXT TIME AND EVER. Create a bash profile
  ÂÂ Âvi/etc/profile
  Â Â Â export JAVA_HOME=/opt/jre/
  Â Â Â export HADOOP_OPTS=-Djava.net.preferIPv4Stack=true
  Â Â Â export HADOOP_HOME=/hadoop/hadoop/
  Â Â Â export DERBY_INSTALL=/hadoop/derby/
  Â Â Â export DERBY_HOME=/hadoop/derby/
  Â Â Â export HADOOP=/hadoop/hadoop/bin/hadoop


  ======RUNNING======
  PANELS:
  http://localhost:50030/ for the jobtrackeR
  http://localhost:50060/ for the tasktracker
  http://localhost:50070/forthenamenode
  http://localhost:9999/hwi/forthehive
   source:http://linux-costarica.blogspot.com/2012/02/installing-hadoophivederby-on-centos.html, http://linux-costarica.blogspot.com/2012/02/installing-
   hadoophivederby-on-centos.html
   More:followmehttp://twitter.com/jamesjaraorvisitmeathttp://jamesjara.com
   source:http://linux-costarica.blogspot.com/2012/02/installing-hadoophivederby-on-centos.html, http://linux-costarica.blogspot.com/2012/02/installing-
   hadoophivederby-on-centos.html
   More:followmehttp://twitter.com/jamesjaraorvisitmeathttp://jamesjara.com

More Related Content

What's hot

Clearance: Simple, complete Ruby web app authentication.
Clearance: Simple, complete Ruby web app authentication.Clearance: Simple, complete Ruby web app authentication.
Clearance: Simple, complete Ruby web app authentication.Jason Morrison
 
Take Command of WordPress With WP-CLI at WordCamp Long Beach
Take Command of WordPress With WP-CLI at WordCamp Long BeachTake Command of WordPress With WP-CLI at WordCamp Long Beach
Take Command of WordPress With WP-CLI at WordCamp Long BeachDiana Thompson
 
So you want to build a Facebook app
So you want to build a Facebook appSo you want to build a Facebook app
So you want to build a Facebook appkamal.fariz
 
Jlook web ui framework
Jlook web ui frameworkJlook web ui framework
Jlook web ui frameworkHongSeong Jeon
 
Contributing to WordPress Core - Peter Wilson
Contributing to WordPress Core - Peter WilsonContributing to WordPress Core - Peter Wilson
Contributing to WordPress Core - Peter WilsonWordCamp Sydney
 
How Danga::Socket handles asynchronous processing and how to write asynchrono...
How Danga::Socket handles asynchronous processing and how to write asynchrono...How Danga::Socket handles asynchronous processing and how to write asynchrono...
How Danga::Socket handles asynchronous processing and how to write asynchrono...Gosuke Miyashita
 
How do speed up web pages? CSS & HTML Tricks
How do speed up web pages? CSS & HTML TricksHow do speed up web pages? CSS & HTML Tricks
How do speed up web pages? CSS & HTML TricksCompare Infobase Limited
 
Beyond the WordPress 5 minute Install
Beyond the WordPress 5 minute InstallBeyond the WordPress 5 minute Install
Beyond the WordPress 5 minute InstallSteve Taylor
 
Progressive Web Apps: o melhor da Web appficada
Progressive Web Apps: o melhor da Web appficadaProgressive Web Apps: o melhor da Web appficada
Progressive Web Apps: o melhor da Web appficadaCaelum
 
All you need to know about JavaScript loading and execution in the browser - ...
All you need to know about JavaScript loading and execution in the browser - ...All you need to know about JavaScript loading and execution in the browser - ...
All you need to know about JavaScript loading and execution in the browser - ...Caelum
 
Web20expo 20080425
Web20expo 20080425Web20expo 20080425
Web20expo 20080425Media Gorod
 
Energy ~ nikola tesla secret ~ 9 79% conv ~ 100% comm of $110 sale teslaecoe...
Energy ~ nikola tesla secret ~ 9 79% conv ~ 100% comm of $110 sale  teslaecoe...Energy ~ nikola tesla secret ~ 9 79% conv ~ 100% comm of $110 sale  teslaecoe...
Energy ~ nikola tesla secret ~ 9 79% conv ~ 100% comm of $110 sale teslaecoe...Miroslav Miskovic
 
The Themer's Guide to WP-CLI
The Themer's Guide to WP-CLIThe Themer's Guide to WP-CLI
The Themer's Guide to WP-CLIEdmund Turbin
 
You don’t know JS about SharePoint - Mastering javascript performance (Hugh W...
You don’t know JS about SharePoint - Mastering javascript performance (Hugh W...You don’t know JS about SharePoint - Mastering javascript performance (Hugh W...
You don’t know JS about SharePoint - Mastering javascript performance (Hugh W...Rencore
 
PHPDay 2013 - High Performance PHP
PHPDay 2013 - High Performance PHPPHPDay 2013 - High Performance PHP
PHPDay 2013 - High Performance PHPJonathan Klein
 
How to start with eZ Publish 5
How to start with eZ Publish 5How to start with eZ Publish 5
How to start with eZ Publish 5Donat Fritschy
 
Performance as User Experience [An Event Apart Denver 2017]
Performance as User Experience [An Event Apart Denver 2017]Performance as User Experience [An Event Apart Denver 2017]
Performance as User Experience [An Event Apart Denver 2017]Aaron Gustafson
 

What's hot (19)

Clearance: Simple, complete Ruby web app authentication.
Clearance: Simple, complete Ruby web app authentication.Clearance: Simple, complete Ruby web app authentication.
Clearance: Simple, complete Ruby web app authentication.
 
Take Command of WordPress With WP-CLI at WordCamp Long Beach
Take Command of WordPress With WP-CLI at WordCamp Long BeachTake Command of WordPress With WP-CLI at WordCamp Long Beach
Take Command of WordPress With WP-CLI at WordCamp Long Beach
 
Boceto de mi webquest
Boceto de mi webquestBoceto de mi webquest
Boceto de mi webquest
 
So you want to build a Facebook app
So you want to build a Facebook appSo you want to build a Facebook app
So you want to build a Facebook app
 
Jlook web ui framework
Jlook web ui frameworkJlook web ui framework
Jlook web ui framework
 
Contributing to WordPress Core - Peter Wilson
Contributing to WordPress Core - Peter WilsonContributing to WordPress Core - Peter Wilson
Contributing to WordPress Core - Peter Wilson
 
How Danga::Socket handles asynchronous processing and how to write asynchrono...
How Danga::Socket handles asynchronous processing and how to write asynchrono...How Danga::Socket handles asynchronous processing and how to write asynchrono...
How Danga::Socket handles asynchronous processing and how to write asynchrono...
 
How do speed up web pages? CSS & HTML Tricks
How do speed up web pages? CSS & HTML TricksHow do speed up web pages? CSS & HTML Tricks
How do speed up web pages? CSS & HTML Tricks
 
Beyond the WordPress 5 minute Install
Beyond the WordPress 5 minute InstallBeyond the WordPress 5 minute Install
Beyond the WordPress 5 minute Install
 
Progressive Web Apps: o melhor da Web appficada
Progressive Web Apps: o melhor da Web appficadaProgressive Web Apps: o melhor da Web appficada
Progressive Web Apps: o melhor da Web appficada
 
Seven deadly theming sins
Seven deadly theming sinsSeven deadly theming sins
Seven deadly theming sins
 
All you need to know about JavaScript loading and execution in the browser - ...
All you need to know about JavaScript loading and execution in the browser - ...All you need to know about JavaScript loading and execution in the browser - ...
All you need to know about JavaScript loading and execution in the browser - ...
 
Web20expo 20080425
Web20expo 20080425Web20expo 20080425
Web20expo 20080425
 
Energy ~ nikola tesla secret ~ 9 79% conv ~ 100% comm of $110 sale teslaecoe...
Energy ~ nikola tesla secret ~ 9 79% conv ~ 100% comm of $110 sale  teslaecoe...Energy ~ nikola tesla secret ~ 9 79% conv ~ 100% comm of $110 sale  teslaecoe...
Energy ~ nikola tesla secret ~ 9 79% conv ~ 100% comm of $110 sale teslaecoe...
 
The Themer's Guide to WP-CLI
The Themer's Guide to WP-CLIThe Themer's Guide to WP-CLI
The Themer's Guide to WP-CLI
 
You don’t know JS about SharePoint - Mastering javascript performance (Hugh W...
You don’t know JS about SharePoint - Mastering javascript performance (Hugh W...You don’t know JS about SharePoint - Mastering javascript performance (Hugh W...
You don’t know JS about SharePoint - Mastering javascript performance (Hugh W...
 
PHPDay 2013 - High Performance PHP
PHPDay 2013 - High Performance PHPPHPDay 2013 - High Performance PHP
PHPDay 2013 - High Performance PHP
 
How to start with eZ Publish 5
How to start with eZ Publish 5How to start with eZ Publish 5
How to start with eZ Publish 5
 
Performance as User Experience [An Event Apart Denver 2017]
Performance as User Experience [An Event Apart Denver 2017]Performance as User Experience [An Event Apart Denver 2017]
Performance as User Experience [An Event Apart Denver 2017]
 

Viewers also liked

James Jara Portfolio 2014 Part 1
James Jara Portfolio 2014 Part 1James Jara Portfolio 2014 Part 1
James Jara Portfolio 2014 Part 1James Jara
 
LSF Interactive SEMPO Google Places Presentation
LSF Interactive SEMPO Google Places PresentationLSF Interactive SEMPO Google Places Presentation
LSF Interactive SEMPO Google Places PresentationLSF Interactive
 
Sun Grid Engine at Synopsys
Sun Grid Engine at SynopsysSun Grid Engine at Synopsys
Sun Grid Engine at Synopsysbogdanv
 
James Jara Portfolio 2014 - Enterprise datagrid - Part 3
James Jara Portfolio 2014  - Enterprise datagrid - Part 3James Jara Portfolio 2014  - Enterprise datagrid - Part 3
James Jara Portfolio 2014 - Enterprise datagrid - Part 3James Jara
 
James Jara Portfolio 2014 - InfoSec White Paper- Part 5
James Jara Portfolio 2014 - InfoSec White Paper- Part 5James Jara Portfolio 2014 - InfoSec White Paper- Part 5
James Jara Portfolio 2014 - InfoSec White Paper- Part 5James Jara
 

Viewers also liked (6)

James Jara Portfolio 2014 Part 1
James Jara Portfolio 2014 Part 1James Jara Portfolio 2014 Part 1
James Jara Portfolio 2014 Part 1
 
LSF Interactive SEMPO Google Places Presentation
LSF Interactive SEMPO Google Places PresentationLSF Interactive SEMPO Google Places Presentation
LSF Interactive SEMPO Google Places Presentation
 
Sun Grid Engine at Synopsys
Sun Grid Engine at SynopsysSun Grid Engine at Synopsys
Sun Grid Engine at Synopsys
 
James Jara Portfolio 2014 - Enterprise datagrid - Part 3
James Jara Portfolio 2014  - Enterprise datagrid - Part 3James Jara Portfolio 2014  - Enterprise datagrid - Part 3
James Jara Portfolio 2014 - Enterprise datagrid - Part 3
 
James Jara Portfolio 2014 - InfoSec White Paper- Part 5
James Jara Portfolio 2014 - InfoSec White Paper- Part 5James Jara Portfolio 2014 - InfoSec White Paper- Part 5
James Jara Portfolio 2014 - InfoSec White Paper- Part 5
 
Clark ch 8 and 9
Clark ch 8 and 9Clark ch 8 and 9
Clark ch 8 and 9
 

Similar to Installing hadoophivederby on_centos

Null bhopal Sep 2016: What it Takes to Secure a Web Application
Null bhopal Sep 2016: What it Takes to Secure a Web ApplicationNull bhopal Sep 2016: What it Takes to Secure a Web Application
Null bhopal Sep 2016: What it Takes to Secure a Web ApplicationAnant Shrivastava
 
NLIT 2011: Chef & Capistrano
NLIT 2011: Chef & CapistranoNLIT 2011: Chef & Capistrano
NLIT 2011: Chef & Capistranonickblah
 
Deploy Rails Application by Capistrano
Deploy Rails Application by CapistranoDeploy Rails Application by Capistrano
Deploy Rails Application by CapistranoTasawr Interactive
 
Setting up a HADOOP 2.2 cluster on CentOS 6
Setting up a HADOOP 2.2 cluster on CentOS 6Setting up a HADOOP 2.2 cluster on CentOS 6
Setting up a HADOOP 2.2 cluster on CentOS 6Manish Chopra
 
WordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটি
WordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটিWordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটি
WordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটিFaysal Shahi
 
Hadoop installation
Hadoop installationHadoop installation
Hadoop installationhabeebulla g
 
Hadoop installation on windows
Hadoop installation on windows Hadoop installation on windows
Hadoop installation on windows habeebulla g
 
Apache and PHP: Why httpd.conf is your new BFF!
Apache and PHP: Why httpd.conf is your new BFF!Apache and PHP: Why httpd.conf is your new BFF!
Apache and PHP: Why httpd.conf is your new BFF!Jeff Jones
 
Deploying Symfony | symfony.cat
Deploying Symfony | symfony.catDeploying Symfony | symfony.cat
Deploying Symfony | symfony.catPablo Godel
 
Nginx Workshop Aftermath
Nginx Workshop AftermathNginx Workshop Aftermath
Nginx Workshop AftermathDenis Zhdanov
 
Systems Automation with Puppet
Systems Automation with PuppetSystems Automation with Puppet
Systems Automation with Puppetelliando dias
 
Deploying Rails Applications with Capistrano
Deploying Rails Applications with CapistranoDeploying Rails Applications with Capistrano
Deploying Rails Applications with CapistranoAlmir Mendes
 
The Enterprise Wor/d/thy/Press
The Enterprise Wor/d/thy/PressThe Enterprise Wor/d/thy/Press
The Enterprise Wor/d/thy/PressJeroen van Dijk
 

Similar to Installing hadoophivederby on_centos (20)

Domain mapping
Domain mappingDomain mapping
Domain mapping
 
Null bhopal Sep 2016: What it Takes to Secure a Web Application
Null bhopal Sep 2016: What it Takes to Secure a Web ApplicationNull bhopal Sep 2016: What it Takes to Secure a Web Application
Null bhopal Sep 2016: What it Takes to Secure a Web Application
 
NLIT 2011: Chef & Capistrano
NLIT 2011: Chef & CapistranoNLIT 2011: Chef & Capistrano
NLIT 2011: Chef & Capistrano
 
Deploy Rails Application by Capistrano
Deploy Rails Application by CapistranoDeploy Rails Application by Capistrano
Deploy Rails Application by Capistrano
 
Setting up a HADOOP 2.2 cluster on CentOS 6
Setting up a HADOOP 2.2 cluster on CentOS 6Setting up a HADOOP 2.2 cluster on CentOS 6
Setting up a HADOOP 2.2 cluster on CentOS 6
 
WordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটি
WordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটিWordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটি
WordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটি
 
Hadoop installation
Hadoop installationHadoop installation
Hadoop installation
 
Hadoop 2.4 installing on ubuntu 14.04
Hadoop 2.4 installing on ubuntu 14.04Hadoop 2.4 installing on ubuntu 14.04
Hadoop 2.4 installing on ubuntu 14.04
 
Hadoop installation on windows
Hadoop installation on windows Hadoop installation on windows
Hadoop installation on windows
 
Domain mapping
Domain mappingDomain mapping
Domain mapping
 
Wcmtl andrear-domain-mapping
Wcmtl andrear-domain-mappingWcmtl andrear-domain-mapping
Wcmtl andrear-domain-mapping
 
Perl Dancer, FPW 2010
Perl Dancer, FPW 2010Perl Dancer, FPW 2010
Perl Dancer, FPW 2010
 
Apache and PHP: Why httpd.conf is your new BFF!
Apache and PHP: Why httpd.conf is your new BFF!Apache and PHP: Why httpd.conf is your new BFF!
Apache and PHP: Why httpd.conf is your new BFF!
 
Deploying Symfony | symfony.cat
Deploying Symfony | symfony.catDeploying Symfony | symfony.cat
Deploying Symfony | symfony.cat
 
Capistrano
CapistranoCapistrano
Capistrano
 
Nginx Workshop Aftermath
Nginx Workshop AftermathNginx Workshop Aftermath
Nginx Workshop Aftermath
 
Centos config
Centos configCentos config
Centos config
 
Systems Automation with Puppet
Systems Automation with PuppetSystems Automation with Puppet
Systems Automation with Puppet
 
Deploying Rails Applications with Capistrano
Deploying Rails Applications with CapistranoDeploying Rails Applications with Capistrano
Deploying Rails Applications with Capistrano
 
The Enterprise Wor/d/thy/Press
The Enterprise Wor/d/thy/PressThe Enterprise Wor/d/thy/Press
The Enterprise Wor/d/thy/Press
 

More from James Jara

Unlimited marine clean energy
Unlimited  marine clean energyUnlimited  marine clean energy
Unlimited marine clean energyJames Jara
 
James Jara Portfolio 2014 - Cloud Operating System Voip -Part 2
James Jara Portfolio 2014  - Cloud Operating System Voip -Part 2James Jara Portfolio 2014  - Cloud Operating System Voip -Part 2
James Jara Portfolio 2014 - Cloud Operating System Voip -Part 2James Jara
 
Ver rmbv en_linux_centos
Ver rmbv en_linux_centosVer rmbv en_linux_centos
Ver rmbv en_linux_centosJames Jara
 
Ver logs de_apache_en_linux
Ver logs de_apache_en_linuxVer logs de_apache_en_linux
Ver logs de_apache_en_linuxJames Jara
 
Unzip un archivo
Unzip un archivoUnzip un archivo
Unzip un archivoJames Jara
 
Ultima linea ejecutada_en_terminal_linux
Ultima linea ejecutada_en_terminal_linuxUltima linea ejecutada_en_terminal_linux
Ultima linea ejecutada_en_terminal_linuxJames Jara
 
Tar file linux
Tar file linuxTar file linux
Tar file linuxJames Jara
 
Which configuration file_is_used_by_your_php
Which configuration file_is_used_by_your_phpWhich configuration file_is_used_by_your_php
Which configuration file_is_used_by_your_phpJames Jara
 
Which configuration file is used by your php
Which configuration file is used by your phpWhich configuration file is used by your php
Which configuration file is used by your phpJames Jara
 
Ver rmbv en_linux_centos
Ver rmbv en_linux_centosVer rmbv en_linux_centos
Ver rmbv en_linux_centosJames Jara
 
Ver logs de_apache_en_linux
Ver logs de_apache_en_linuxVer logs de_apache_en_linux
Ver logs de_apache_en_linuxJames Jara
 
Ultima linea ejecutada_en_terminal_linux
Ultima linea ejecutada_en_terminal_linuxUltima linea ejecutada_en_terminal_linux
Ultima linea ejecutada_en_terminal_linuxJames Jara
 
Permisos archivo chmod linux
Permisos archivo chmod linuxPermisos archivo chmod linux
Permisos archivo chmod linuxJames Jara
 
Matar un proceso_linux__kill_linux_process
Matar un proceso_linux__kill_linux_processMatar un proceso_linux__kill_linux_process
Matar un proceso_linux__kill_linux_processJames Jara
 
Listar servicios conectado_a_la_red
Listar servicios conectado_a_la_redListar servicios conectado_a_la_red
Listar servicios conectado_a_la_redJames Jara
 
Listar rpm installados_linux
Listar rpm installados_linuxListar rpm installados_linux
Listar rpm installados_linuxJames Jara
 
Listar archivo con_detalle_linux
Listar archivo con_detalle_linuxListar archivo con_detalle_linux
Listar archivo con_detalle_linuxJames Jara
 
Installar un paquete_rpm_linux
Installar un paquete_rpm_linuxInstallar un paquete_rpm_linux
Installar un paquete_rpm_linuxJames Jara
 

More from James Jara (20)

Unlimited marine clean energy
Unlimited  marine clean energyUnlimited  marine clean energy
Unlimited marine clean energy
 
Hack.lu 2016
Hack.lu 2016   Hack.lu 2016
Hack.lu 2016
 
James Jara Portfolio 2014 - Cloud Operating System Voip -Part 2
James Jara Portfolio 2014  - Cloud Operating System Voip -Part 2James Jara Portfolio 2014  - Cloud Operating System Voip -Part 2
James Jara Portfolio 2014 - Cloud Operating System Voip -Part 2
 
Portafolio
PortafolioPortafolio
Portafolio
 
Ver rmbv en_linux_centos
Ver rmbv en_linux_centosVer rmbv en_linux_centos
Ver rmbv en_linux_centos
 
Ver logs de_apache_en_linux
Ver logs de_apache_en_linuxVer logs de_apache_en_linux
Ver logs de_apache_en_linux
 
Unzip un archivo
Unzip un archivoUnzip un archivo
Unzip un archivo
 
Ultima linea ejecutada_en_terminal_linux
Ultima linea ejecutada_en_terminal_linuxUltima linea ejecutada_en_terminal_linux
Ultima linea ejecutada_en_terminal_linux
 
Tar file linux
Tar file linuxTar file linux
Tar file linux
 
Which configuration file_is_used_by_your_php
Which configuration file_is_used_by_your_phpWhich configuration file_is_used_by_your_php
Which configuration file_is_used_by_your_php
 
Which configuration file is used by your php
Which configuration file is used by your phpWhich configuration file is used by your php
Which configuration file is used by your php
 
Ver rmbv en_linux_centos
Ver rmbv en_linux_centosVer rmbv en_linux_centos
Ver rmbv en_linux_centos
 
Ver logs de_apache_en_linux
Ver logs de_apache_en_linuxVer logs de_apache_en_linux
Ver logs de_apache_en_linux
 
Ultima linea ejecutada_en_terminal_linux
Ultima linea ejecutada_en_terminal_linuxUltima linea ejecutada_en_terminal_linux
Ultima linea ejecutada_en_terminal_linux
 
Permisos archivo chmod linux
Permisos archivo chmod linuxPermisos archivo chmod linux
Permisos archivo chmod linux
 
Matar un proceso_linux__kill_linux_process
Matar un proceso_linux__kill_linux_processMatar un proceso_linux__kill_linux_process
Matar un proceso_linux__kill_linux_process
 
Listar servicios conectado_a_la_red
Listar servicios conectado_a_la_redListar servicios conectado_a_la_red
Listar servicios conectado_a_la_red
 
Listar rpm installados_linux
Listar rpm installados_linuxListar rpm installados_linux
Listar rpm installados_linux
 
Listar archivo con_detalle_linux
Listar archivo con_detalle_linuxListar archivo con_detalle_linux
Listar archivo con_detalle_linux
 
Installar un paquete_rpm_linux
Installar un paquete_rpm_linuxInstallar un paquete_rpm_linux
Installar un paquete_rpm_linux
 

Installing hadoophivederby on_centos

  • 1. visit me at http://jamesjara.com or follow me at http://twitter.com/jamesjara by ww source:http://linux-costarica.blogspot.com/2012/02/installing-hadoophivederby-on-centos.html, http://linux-costarica.blogspot.com/2012/02/installing- hadoophivederby-on-centos.html More:visitmeathttp://jamesjara.comorfollowmeathttp://twitter.com/jamesjara source:http://linux-costarica.blogspot.com/2012/02/installing-hadoophivederby-on-centos.html, http://linux-costarica.blogspot.com/2012/02/installing- hadoophivederby-on-centos.html More:visitmeathttp://jamesjara.comorfollowmeathttp://twitter.com/jamesjara INSTALLING HADOOP,HIVE,DERBY ON CENTOS Please subscribe to my site www.jamesjara.com to get more tutorials. INSTALLING HADOOP IN centos 6 INSTALLING HIVE IN centos 6 INSTALLING DERBY IN centos 6 hadoop-0.20.203.0rc1 thisistheguidefortheinstallationofHadoopecosystem, is very extended so please follow step by step ====INSTALLATION===== 1.Installingjava  Âyum installsun-java6-jdk 2.Adding a dedicated user for hadoop Thiswilladdtheuserhdoopuserandthegrouphdoopgrouptoyourlocalmachine.    /usr/sbin/useradd hdoopuser    groupadd hdoopgroup    usermod -a -G hdoopgroup hdoopuser 3.ConfiguringSSH
  • 2. visit me at http://jamesjara.com or follow me at http://twitter.com/jamesjara by ww   su - hdoopuser      #login as hdoopuser   ssh-keygen -t rsa -P ""   #generate key without password   cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys   #enable the new key   chmod 0600 $HOME/.ssh/authorized_keys   #enable empty password 4.DisablingIPv6    sed -i s/^(NETWORKINGs*=s*).*$/NETWORKING=NO/ /etc/sysconfig/network 5.Installation/Conf/startupofHadoop    mkdir /hadoop    chown -R hdoopuser /hadoop    cd /hadoop/    wget http://mirrors.abdicar.com/Apache-HTTP-Server//hadoop/common/stable/hadoop-0.20.203.0rc1.tar.gz    tar -xvzf hadoop-0.20.203.0rc1.tar.gz    ln -s /hadoop/hadoop-0.20.203.0rc1/ /hadoop/hadoop    cd /hadoop/hadoop  Â#basicconfig   1)  Âvimconf/core-site.xml  Â Â#Addthefollowinginsidethe<configuration>tag      <property>  Â  <name>fs.default.name</name>  Â  <value>hdfs://localhost:9000/</value>      </property>      <property>  Â Â<name>dfs.permissions</name>  Â Â<value>false</value>      </property>   2)  Âvimconf/hdfs-site.xml  Â Â#Addthefollowinginsidethe<configuration>tag      <property>
  • 3. visit me at http://jamesjara.com or follow me at http://twitter.com/jamesjara by ww ÂÂ Â Â Â Â Â <name>dfs.name.dir</name> ÂÂ Â Â Â Â Â <value>/hadoop/hdfs/name</value> ÂÂ Â Â Â Â </property> ÂÂ Â Â Â Â <property> ÂÂ Â Â Â Â Â <name>dfs.data.dir</name> ÂÂ Â Â Â Â Â <value>/hadoop/hdfs/data</value> ÂÂ Â Â Â Â </property> ÂÂ Â Â Â Â <property> ÂÂ Â Â Â Â Â <name>dfs.replication</name> ÂÂ Â Â Â Â Â <value>2</value> ÂÂ Â Â Â Â </property> ÂÂ Â 3) ÂÂ Âvimconf/mapred-site.xml ÂÂ ÂÂÂ Â#Addthefollowinginsidethe<configuration>tag ÂÂ Â Â Â Â <property> ÂÂ Â Â Â Â Â <name>mapred.job.tracker</name> ÂÂ Â Â Â Â Â <value>localhost:9001</value> ÂÂ Â Â Â Â </property> ÂÂ Â 4) ÂÂ Âvimconf/hadoop-env.sh ÂÂ Â Â Â Â export JAVA_HOME=/opt/jre/ ÂÂ Â Â Â Â export HADOOP_OPTS=-Djava.net.preferIPv4Stack=true ÂÂ Â 5) ÂÂ Â Fomart nodes ÂÂ Â Â Â Â su - hdoopuser ÂÂ Â Â Â Â cd /hadoop/hadoop ÂÂ Â Â Â Â bin/hadoop namenode -format ÂÂ Â 6)Start hadoop ÂÂ Â Â Â Â bin/start-all.sh ÂÂ Â Â Â Â notes:Â HTTP CONSOLE OF HADOOP ÂÂ Â Â Â Â Â Â Â http://localhost:50030/ for the jobtrackeR ÂÂ Â Â Â Â Â Â Â http://localhost:50070/ for the namenode
  • 4. visit me at http://jamesjara.com or follow me at http://twitter.com/jamesjara by ww 5.Installation/Conf/startupofHive/Derby    cd /hadoop  Âwgethttp://mirrors.ucr.ac.cr/apache//hive/stable/hive-0.8.1-bin.tar.gz    tar -xvzf hive-0.8.1-bin.tar.gz    ln -s /hadoop/hive-0.8.1-bin/ /hadoop/hive    export HADOOP_HOME=/hadoop/hadoop/ linux-costarica.blogspot.com   cd /hadoop/hive  Âmvconf/hive-default.xml.templateconf/hive-site.xml    #test hive  Âbin/hive       > show tables;  Â#installingderbymetadatastore    cd /hadoop    wget http://archive.apache.org/dist/db/derby/db-derby-10.4.2.0/db-derby-10.4.2.0-bin.tar.gz    tar -xzf db-derby-10.4.2.0-bin.tar.gz    ln -s db-derby-10.4.2.0-bin derby    mkdir derby/data    export DERBY_INSTALL=/hadoop/derby/    export DERBY_HOME=/hadoop/derby/    export HADOOP=/hadoop/hadoop/bin/hadoop  Â  vim /hadoop/hadoop/bin/start-dfs.sh   #add to the file start-dfs.sh the next 2 lines      cd /hadoop/derby/data      nohup /hadoop/derby/bin/startNetworkServer -h 0.0.0.0 &  Âvim/hadoop/hadoop/bin/start-all.sh  Â#addtothefilestart-all.shthenext2lines      cd /hadoop/derby/data      nohup /hadoop/derby/bin/startNetworkServer -h 0.0.0.0 &    #HIVE CONF  Âvim/hadoop/hive/conf/hive-site.xml Â#installingwebpanelforhive,searchandreplace
  • 5. visit me at http://jamesjara.com or follow me at http://twitter.com/jamesjara by ww  Â#searchfor"javax.jdo.option.ConnectionURL"andeditlikethefollowing      <property>       <name>javax.jdo.option.ConnectionURL</name>       <value>jdbc:derby://localhost:1527/metastore_db;create=true</value>       <description>JDBC connect string for a JDBC metastore</description>      </property>   #HTTP CONSOLE OF HIVE   bin/hive --service hwi &           Â Â ÂURL:http://localhost:9999/   #create new file  Âvim/hadoop/hive/conf/jpox.properties  Â#addthefollowing      javax.jdo.PersistenceManagerFactoryClass=org.jpox.PersistenceManagerFactoryImpl      org.jpox.autoCreateSchema=false      org.jpox.validateTables=false      org.jpox/usr/share/javadoc/java-1.6.0-openjdk/jre/.validateColumns=false      org.jpox.validateConstraints=false      org.jpox.storeManagerType=rdbms      org.jpox.autoCreateSccp /hadoop/derby/lib/derbytools.jar /hadoop/hive/libhema=true      org.jpox.autoStartMechanismMode=checked      org.jpox.transactionIsolation=read_committed  Â Âjavax.jdo.option.DetachAllOnCommit=true      javax.jdo.option.NontransactionalRead=true      javax.jdo.option.ConnectionDriverName=org.apache.derby.jdbc.ClientDriver      javax.jdo.option.ConnectionURL=jdbc:derby://localhost:1527/metastore_db;create=true      javax.jdo.option.ConnectionUserName=APP      javax.jdo.option.ConnectionPassword=mine   #now copy derby jar sources to Hive lib  Âcp/hadoop/derby/lib/derbyclient.jar/hadoop/hive/lib   cp /hadoop/derby/lib/derbytools.jar /hadoop/hive/lib    #HTTP CONSOLE OF HIVE    Â
  • 6. visit me at http://jamesjara.com or follow me at http://twitter.com/jamesjara by ww  Âhttp://localhost:9999/hwi/forthehive 6.START CLUSTER    /hadoop/hadoop/bin/start-all.sh  Â/hadoop/hive/bin/hive--servicehwi& #hwi=webpanel  7. FOR NEXT TIME AND EVER. Create a bash profile  Âvi/etc/profile    export JAVA_HOME=/opt/jre/    export HADOOP_OPTS=-Djava.net.preferIPv4Stack=true    export HADOOP_HOME=/hadoop/hadoop/    export DERBY_INSTALL=/hadoop/derby/    export DERBY_HOME=/hadoop/derby/    export HADOOP=/hadoop/hadoop/bin/hadoop ======RUNNING====== PANELS: http://localhost:50030/ for the jobtrackeR http://localhost:50060/ for the tasktracker http://localhost:50070/forthenamenode http://localhost:9999/hwi/forthehive source:http://linux-costarica.blogspot.com/2012/02/installing-hadoophivederby-on-centos.html, http://linux-costarica.blogspot.com/2012/02/installing- hadoophivederby-on-centos.html More:followmehttp://twitter.com/jamesjaraorvisitmeathttp://jamesjara.com source:http://linux-costarica.blogspot.com/2012/02/installing-hadoophivederby-on-centos.html, http://linux-costarica.blogspot.com/2012/02/installing- hadoophivederby-on-centos.html More:followmehttp://twitter.com/jamesjaraorvisitmeathttp://jamesjara.com