ufo22940268
V2EX  ›  Hadoop

怎么把 elasticsearch 里面的数据导入到 hadoop 里面

  •  
  •   ufo22940268 · Mar 2, 2017 · 4335 views
    This topic created in 3381 days ago, the information mentioned may be changed or developed.

    我又 tm 不要脸地来问了,因为研究了很久还是搞不明白。

    好像有这个项目,但是不知道怎么导数据,求大神给个链接或者指导下。现在数据都放在 es 里面,然后 es 分析数据的能力不够想导入到 hadoop 里面分析试试。

    4 replies    2019-03-20 16:55:16 +08:00
    knightdf
        1
    knightdf  
       Mar 2, 2017
    先从 es 里导到硬盘上去呗,你每次从 es 里读那得多慢啊
    bbx
        2
    bbx  
       Mar 2, 2017
    不太懂你在说什么。不过从你提供的链接来看,貌似你是想用 mapreduce 来读 es 的数据。其实很简答,你网上找个可用的 inputformat (你链接上的),然后写个 mapreduc 程序就行了。。貌似我说了和没说一样,不过你那个链接里面已经说的很清楚了
    onesuper
        3
    onesuper  
       Mar 3, 2017
    LZ 提到的 elasticsearch-hadoop 这个项目把 ES 作为一个 storage 层直接访问。

    在 ES 里做简单的分析( aggregation ),参考这个项目: https://github.com/onesuper/pandasticsearch
    37Y37
        4
    37Y37  
       Mar 20, 2019
    当我把这个问题解决后,写了一篇详细的操作文档
    https://mp.weixin.qq.com/s/qOw1a83pQImXiDRRZ0e9Aw
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5822 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 57ms · UTC 02:08 · PVG 10:08 · LAX 19:08 · JFK 22:08
    ♥ Do have faith in what you're doing.