hadoop2.6.0+HBase1.0.1.1°²×°+Hive°²×°+Òì³£×ܽá - ͼÎÄ ÏÂÔØ±¾ÎÄ

1. /usr/local/hadoop-2.6.0/sbin/mr-jobhistory-daemon.sh start historyserver Ö´ÐÐÍê±ÏºóµÄÊä³ö½á¹û£º MapReduce×÷ÒµµÄÊä³ö½á¹û

²Î¿¼×ÊÁÏ£º

http://www.powerxing.com/install-hadoop-cluster/

http://blog.csdn.net/zoohanyoo/article/details/20625175

HBase1.0.1.1°²×°½Ì³Ì

1¡¢½«hbaseÌí¼Óµ½»·¾³±äÁ¿ÖÐ/etc/profile

exportHBASE_HOME=/usr/local/Hadoop-2.6.0/hbase-1.0.1.1 export PATH=$HBASE_HOME/bin:$PATH 2¡¢ÐÞ¸ÄÅäÖÃÎļþ

1)ÐÞ¸Ähbase-env.sh

exportJAVA_HOME=/usr/java/jdk1.7.0_79

export HBASE_MANAGES_ZK=true

2)ÐÞ¸Ähbase-site.xml

hbase.rootdir

hdfs://Master:9000/hbase

hbase.cluster.distributed true

hbase.master master:60000

hbase.zookeeper.quorum Master,Slave1,Slave2

hbase.zookeeper.property.dataDir

/usr/local/Hadoop-2.6.0/hbase-1.0.1.1/zookeeper

±¸×¢£º

ÔÚÉÏÃæµÄÅäÖÃÎļþÖУ¬µÚÒ»¸öÊôÐÔÖ¸¶¨±¾»úµÄhbaseµÄ´æ´¢Ä¿

¼£»µÚ¶þ¸öÊôÐÔÖ¸¶¨hbaseµÄÔËÐÐģʽ£¬true´ú±íÈ«·Ö²¼Ä£Ê½£»µÚÈýºÍµÚËĸöÊôÐÔÊǹØÓÚZookeeper¼¯ÈºµÄÅäÖá£

3)ÐÞ¸Äregionservers£¬ÔÚregionserversÖÐÌí¼ÓÈçÏÂÄÚÈÝ£º Slave1

Slave2

(5)Æô¶¯hbase

Æô¶¯hbaseʱҪȷ±£hdfsÒѾ­Æô¶¯¡£ÔÚÖ÷½ÚµãÉÏÖ´ÐУº bin/start-hbase.sh

Æô¶¯³É¹¦ºó¼¯Èº»á¶à³öÈçϽø³Ì£º NameNode½Úµã£º

Datanode½Úµã£º

ͨ¹ýä¯ÀÀÆ÷²é¿´£º

ÊäÈ룺http://hadoop130:16030

2.3 Hbase shell²âÊÔ £¨1£©Ö´ÐÐhbase shell ÃüÁ £¨2£©´´½¨testtable±í

create 'testtable', 'colfaml' £¨3£©putÊý¾Ý

hbase shellÊÇ»ùÓÚRubyʵÏֵģ¬Òò´ËʹÓùý³ÌÖпÉÒÔ½«hbase shellÓëRuby´úÂë»ìºÏʹÓ㬴ËʾÀý²Î¿¼¡¶HBaseȨÍþÖ¸ÄÏ¡·p-66Ò³shell½éÉÜ¡£

for i in 'a'..'z' do for j in 'a'..'z' do \\