使用python,批量导入数据到elasticsearch中

使用python,批量导入数据到elasticsearch中

使用python官方模块,批量将文件中的数据导入到elasticsearch中。

1、文件内容

文件以{url:content}组成且以“\t”隔开,例子如下:

http://www.avsforum.com/forum/39-networking-media-servers-content-streaming/1624586-network-switch-types-there-differences.html	Join Date: Feb 2006 Mentioned: 1 Post(s) Tagged: 0 Thread(s) Quoted: 63 Post(s) Network switch types. Are there differences? Most people think that a network switch (the device you plug your network cables into) is a very simple device that helps split and share your network signals among multiple devices. At its most basic level that’s true. Switches though do much more. They assign what traffic goes to which device, they determine the best speeds of those devices and in more advanced switches can provide a host of features including adding QOS (Quality of Service), virtualization of your networks to isolate certain devices from one another (VLAN)
http://www.netgear.com/business/prod	us-switch.aspx Bob Silver Netgear AV Consultant Last edited by bobsilver; 07-31-2014 at 02:09 PM . bobsilver is offline   (LCD - Sony KDL -52 XBR4) (Receiver - Sony STR-DA4ES)(Blu Ray - Oppo BDP-83) (PS3)( Dish Hopper DVR With Sling) Speakers (L & R - Paradigm Studio 20) (Center -Paradigm CC-470) (Surrounds & Back Surrounds - Paradigm SA-15R in walls) (Subwoofer 1 - Sunfire HRS-12) (Subwoofer 2 - Paradigm PW-2100) Skytrooper is offline   Join Date: Feb 2006 Mentioned: 1 Post(s) Tagged: 0 Thread(s) Quoted: 63 Post(s) Originally Posted by Skytrooper Nice read. (Or ad) I currently have a Netgear unmanaged switch. If I would upgrade to the plus, would someone be able to just plug into one of my Ethernet jacks and be good t
  • 1
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值