推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
parcuse
V2EX  ›  Python

问一个问题: Hbase,大量数据下(几千万条),能否根据某个 Column 值的大小进行排序并取出前数条。

  •  
  •   parcuse · Jul 20, 2016 · 7243 views
    This topic created in 3587 days ago, the information mentioned may be changed or developed.
    语言是 python ,如果有 Java 的实现思路也可以。
    2 replies    2016-07-22 09:40:57 +08:00
    wander2008
        1
    wander2008  
       Jul 20, 2016 via iPhone
    可以。 mapruduce 可以。 hbase 本身也可以的
    firstway
        2
    firstway  
       Jul 22, 2016 via Android
    HBase 本身不行, HBase 是按 raw key 排序的,不会理会 column 排序。
    楼上说 MapReduce 可以( MapReduce 不是 HBase 一部分,只是很容易集成),是可以的,本质上是 scan 所有数据,读出数据,然后以你指定的 column 值为 key 排序。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2932 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 10:12 · PVG 18:12 · LAX 03:12 · JFK 06:12
    ♥ Do have faith in what you're doing.