·ÖÏí

hbaseÖ÷¼üÉè¼Æ

bingoyin ·¢±íÓÚ 2014-10-25 15:16:33 [ÏÔʾȫ²¿Â¥²ã] »ØÌû½±Àø ÔĶÁģʽ ¹Ø±ÕÓÒÀ¸ 8 34590
ÏÖÓÐgpsµ¼º½Êý¾Ý £¬È˵ÄidºÍ»ñȡʱ¼äcreatetime£¬Î»Öà ÐÅÏ¢µÈ¡£ÒòΪÊý¾ÝÿÌìÔö¼Ó¼¸Ç§ÍòÌõ¼Ç¼£¬Òò´Ë½«Êý¾Ý´æ·Åµ½hbaseÖУ¬µ«ÏÖÔÚÏ£ÍûÄܲéѯһ¸öÈËÒ»¶Îʱ¼äµÄÇé¿öºÍÒ»¶Îʱ¼äÄÚÓÐÄÄЩÈËÉÏ´«ÁËλÖÃÐÅÏ¢¡£²»ÖªµÀÕâ¸örowkeyÔõôÉè¼Æ¡£²»ÖªµÀ´ó¼ÒÊÇÔõôÉè¼ÆrowkeyµÄ£¬»¹Çë¸÷λ°ï棡~лл

ÒÑÓÐ(8)ÈËÆÀÂÛ

Ìøתµ½Ö¸¶¨Â¥²ã
271592448 ·¢±íÓÚ 2014-10-25 16:00:23
¿ÉÒÔ²ÎÕÕÒ»ÏÂȺÀïµÄÎÄÕ¡£
http://www.aboutyun.com/thread-7119-1-1.html
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

rsgg03 ·¢±íÓÚ 2014-10-25 17:49:55
СºÍÉÐÕý½â

ͨ¹ýÎÒÃÇÔÚÉè¼ÆrowkeyµÄʱºòÐèÒª¿¼ÂÇÁ½¸ö¹Ø¼üÎÊÌâ
1.ÈÝÒײéѯ
2.²»Òª²úÉúÈÈÊý¾Ý

ÕâÁ½¶þÕß´æÔÚ×Åì¶ÜÐÔ£¬±ÈÈçΪÁËÈÝÒ×°´ÕÕʱ¼ä¶Î²éѯ£¬ÎÒÃÇÐèÒªÔÚrowkeyÖмÓÈëʱ¼ä£¬µ«ÊÇÈç¹ûrowkeyÖÐÒÔʱ¼äǰ׺£¬ÈçÏÂ
ʱ¼ä+ÈËid
ÕâÑù»á²úÉúÈÈÊý¾Ý£¬ÔÚ²éѯµÄʱºò£¬»áÓÐioÆ¿¾±¡£

Èç¹ûÎÒÃÇÒÔÏÂÃæÕâÖÖ

É¢ÁÐÖµ+ʱ¼ä+ÈËid

ÆäÖÐÉ¢ÁÐÖ¸ÊÇ·ÀÖ¹ÈÈÊý¾Ý£¬·Àֹͬһʱ¼ä¶ÎÊý¾ÝÅܵ½Í¬Ò»Ì¨·þÎñÆ÷£¬²»ÄÜ·¢»Ó·Ö²¼Ê½µÄÓÅÊÆ£¬ËùÒÔÎÒÃÇÐèÒªÕâôÉè¼Æ¡£µ«ÊÇËæÖ®´øÀ´Ò»¸öÎÊÌ⣬¾ÍÊÇÈçºÎ°´ÕÕʱ¼ä¶ÎÀ´²éѯ¡£

ÎÒÃÇ¿ÉÒÔÔÚscanµÄʱºò¹ýÀ´É¢ÁÐÖµ£¬×îºó´ïµ½Äܹ»°´ÕÕʱ¼ä¶ÎÀ´²éѯ¡£
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

bingoyin ·¢±íÓÚ 2014-10-25 20:41:20
rsgg03 ·¢±íÓÚ 2014-10-25 17:49
СºÍÉÐÕý½â

ͨ¹ýÎÒÃÇÔÚÉè¼ÆrowkeyµÄʱºòÐèÒª¿¼ÂÇÁ½¸ö¹Ø¼üÎÊÌâ

ÄãºÃ£¬ÎÒÊÇͨ¹ýsqoop´ÓSqlServerµ¼Èëµ½hbaseµÄ£¬²»ÖªµÀÕâ¸öÉ¢ÁÐֵŪ¡£²¢ÇÒÎÒÒª²éÕÒÒ»¸öÈËÒ» ¶Îʱ¼äµÄÊý¾Ý¡£Èç¹ûÊÇʱ¼ä+ÈËidµÄ»°¡£²éѯÄѵÀÈ«±íɨÃ衣лл£¡
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

rsgg03 ·¢±íÓÚ 2014-10-25 21:14:29
bingoyin ·¢±íÓÚ 2014-10-25 20:41
ÄãºÃ£¬ÎÒÊÇͨ¹ýsqoop´ÓSqlServerµ¼Èëµ½hbaseµÄ£¬²»ÖªµÀÕâ¸öÉ¢ÁÐֵŪ¡£²¢ÇÒÎÒÒª²éÕÒÒ»¸öÈËÒ» ¶Îʱ¼äµÄÊý¾Ý ...
ÒªÊǵ¼ÈëÊý¾ÝÁíÍâ˵£¬¿ÉÒÔÌáÇ°Ô¤Ö÷ÖÇø£¬rowkeyÀï°üº¬Ê±¼ä+ÈËid£¬µÄ»°£¬²¢ÇÒͨ¹ýrowkey²éѯ²»»áÈ«±íɨÃè¡£
Èç¹ûͨ¹ýÁÐ×å»òÔòÁлáÈ«±íɨÃè¡£
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

rsgg03 ·¢±íÓÚ 2014-10-25 21:16:42
Ô¤Ö÷ÖÇø¿ÉÒԲο¼ÏÂÃæÀý×Ó






ÓÃHBase Shell½¨±íµÄʱºò£¬³ýÁËһЩ³£ÓõÄoptionÒÔÍ⣬ÎÒÃÇ»¹¿ÉÒÔͬʱ½¨Á¢Ò»Ð©Ô¤·ÖÇø£¬ÕâÑù¿ÉÒÔÔ¤·À³õ´Î²åÈëÊý¾ÝʱÈȵãÎÊÌâ¡£

ͨ¹ýÖ±½ÓÊäÈëcreate£¬ÎÒÃÇ¿ÉÒÔ¿´µ½ÓÐÈçÏÂÌáʾ£º

  1. Examples:
  2.   hbase> create 't1', {NAME => 'f1', VERSIONS => 5}
  3.   hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'}, {NAME => 'f3'}
  4.   hbase> # The above in shorthand would be the following:
  5.   hbase> create 't1', 'f1', 'f2', 'f3'
  6.   hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000, BLOCKCACHE => true}
  7.   hbase> create 't1', 'f1', {SPLITS => ['10', '20', '30', '40']}
  8.   hbase> create 't1', 'f1', {SPLITS_FILE => 'splits.txt'}
  9.   hbase> # Optionally pre-split the table into NUMREGIONS, using
  10.   hbase> # SPLITALGO ("HexStringSplit", "UniformSplit" or classname)
  11.   hbase> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => 'HexStringSplit'}
¸´ÖÆ´úÂë
Àý×ÓÖнö¸ø³öÁËҪôÓÐÆÕͨoption£¬ÒªÃ´ÊÇÓÐÖ¸¶¨·ÖÇøµÈÑ¡Ïµ«ÊÇûÓиø³ö¼ÈÓÐÆÕͨoption(ÀýÈçVERSIONS£¬COMPRESSIONµÈ)£¬ÓÖ´´½¨Ô¤·ÖÇøµÄÀý×Ó¡£

Èç¹ûÓÐÕâ¸öÐèÇóÄØ£¿Èç϶ÔÂð£¿

  1. create 't', {NAME => 'f', VERSIONS => 1, COMPRESSION => 'SNAPPY', SPLITS => ['10','20','30']
¸´ÖÆ´úÂë

ÔËÐкó·¢Ïֿ϶¨ÊDz»Ðеġ£ÕýÈ·µÄд·¨Ó¦¸ÃÊÇÕâÑùµÄ£º
  1. create 't', {NAME => 'f', VERSIONS => 1, COMPRESSION => 'SNAPPY'},
  2.     {SPLITS => ['10','20','30']}
¸´ÖÆ´úÂë

ÒòΪ·ÖÇøʱÕë¶ÔÈ«±í¶ø·Çij¸öColumn FamilyµÄ¡£








»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

bingoyin ·¢±íÓÚ 2014-10-25 21:23:57
rsgg03 ·¢±íÓÚ 2014-10-25 21:14
ÒªÊǵ¼ÈëÊý¾ÝÁíÍâ˵£¬¿ÉÒÔÌáÇ°Ô¤Ö÷ÖÇø£¬rowkeyÀï°üº¬Ê±¼ä+ÈËid£¬µÄ»°£¬²¢ÇÒͨ¹ýrowkey²éѯ²»»áÈ«±íɨÃè¡£ ...

²»ÊÇrowkey²éѯֻÓе¥Ò»²éѯºÍÇø¼ä²éѯ£¬Èç¹ûÊDzéѯһ¸öÈËÒ»¶Îʱ¼äµÄÊý¾Ý£¬ÕâЩÊý¾Ý¿Ï¶¨²»ÊÇÔÚÒ»¸öÇø¼äµÄ£¬ÕâÑù²éѯÄѵÀ²»ÒªÈ«±íɨÃèÂ
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

rsgg03 ·¢±íÓÚ 2014-10-25 23:32:56
bingoyin ·¢±íÓÚ 2014-10-25 21:23
²»ÊÇrowkey²éѯֻÓе¥Ò»²éѯºÍÇø¼ä²éѯ£¬Èç¹ûÊDzéѯһ¸öÈËÒ»¶Îʱ¼äµÄÊý¾Ý£¬ÕâЩÊý¾Ý¿Ï¶¨²»ÊÇÔÚÒ»¸öÇø¼äµÄ ...
²éѯ·ÇrowkeyÈ«±íɨÃ裬Èç¹ûʹÓÃrowkeyÔò²»»á¡£¿ÉÒÔÁ˽âÏÂrowkeyµÄÔ­Àí
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

chuyuan_zhou ·¢±íÓÚ 2014-12-26 16:48:12
Æ®¹ý£¬Ñ§Ï°Ñ§Ï°£¡
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

ÄúÐèÒªµÇ¼ºó²Å¿ÉÒÔ»ØÌû µÇ¼ | Á¢¼´×¢²á

±¾°æ»ý·Ö¹æÔò

¹Ø±Õ

ÍƼöÉÏÒ»Ìõ /2 ÏÂÒ»Ìõ