Changes between Version 2 and Version 3 of NCHCCloudCourse100929_1_HBInstall


Ignore:
Timestamp:
Jul 20, 2011, 12:28:47 PM (13 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NCHCCloudCourse100929_1_HBInstall

    v2 v3  
    2020
    2121{{{
    22 #!text
     22cat > /opt/hbase/conf/hbase-env.sh << EOF
    2323export JAVA_HOME=/usr/lib/jvm/java-6-sun
    2424export HBASE_HOME=/opt/hbase
     
    2626export HBASE_LOG_DIR=/var/hadoop/hbase/logs
    2727export HBASE_PID_DIR=/var/hadoop/hbase/pids
     28EOF
    2829}}}
    2930
    30  * 修改 /opt/hbase/conf/hbase-site.xml
     31
     32 * 產生 /opt/hbase/conf/hbase-site.xml
    3133
    3234{{{
    33 #!xml
     35cat > /opt/hbase/conf/hbase-site.xml << EOF
     36<?xml version="1.0"?>
     37<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
    3438<configuration>
    35 <property>   
    36 <name>hbase.rootdir</name>   
    37 <value>hdfs://localhost:9000/hbase</value>   
    38 <description>The directory shared by region servers.   </description>
    39 </property>
    40 <property>   
    41 <name>hbase.tmp.dir</name>   
    42 <value>/var/hadoop/hbase/${user.name}</value>   
     39<property>
     40<name>hbase.rootdir</name>
     41<value>hdfs://localhost:9000/hbase</value>
     42</property>
     43<property>   
     44<name>hbase.tmp.dir</name>   
     45<value>/var/hadoop/hbase/${user.name}</value>   
    4346<description>Temporary directory on the local filesystem.</description>
    4447</property>
    4548</configuration>
     49EOF
    4650}}}
    4751
     52
    4853= 啟動 =
    49 
     54 * 如果 hadoop 沒有啟動的話,請先啟動
    5055{{{
    51 $ /opt/hbase/bin/start-hbase.sh
     56/opt/hadoop/bin/start-all.sh
     57}}}
     58 * 啟動 HBase
     59{{{
     60/opt/hbase/bin/start-hbase.sh
    5261}}}
    5362
    5463= 測試 =
     64
     65 * 檢查 jps 是否有 NameNode 等 java process,以及 HMaster 與 HQuorumPeer,正常應該要有以下的 java process (PID 可能不同)
     66{{{
     6713019 HMaster
     6810513 NameNode
     6910838 SecondaryNameNode
     7012952 HQuorumPeer
     7110916 JobTracker
     7213312 Jps
     7311068 TaskTracker
     7410676 DataNode
     75}}}
    5576
    5677[http://localhost:60010] 此網頁正常