Python Forum
[split] Python Module for Druid Users - "druidpy!"
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Python Module for Druid Users - "druidpy!"
#1
Its good to use to use python druid

for line in lines:

producer.send('vtintel', value=line)
sleep(1)
I can fetch data through kafka consumer but not in pydruid in python.

When I try to do so like

from pydruid.db import connect

conn = connect(host='localhost', port=8082, path='/druid/v2/sql/',
scheme='http')
curs = conn.cursor()
curs.execute("""
SELECT detected,domain
FROM vtintel
LIMIT 10
""")
for row in curs:
print(row)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] openpyxl workbook module not callable yosoyebj 1 2,739 Sep-14-2020, 10:18 AM
Last Post: buran
  How to make Python 3.7.6 accessible to users Doguhan 4 2,727 May-19-2020, 05:36 PM
Last Post: snippsat
  Python redirect users to another url after form post blsturgeon 5 18,670 Jun-28-2018, 11:53 PM
Last Post: gontajones
  Recommended way to store users,db credentials in a Python project? PrateekG 2 12,230 May-31-2018, 12:22 PM
Last Post: DeaD_EyE
  Embed and extend Python in c++ without users installing Python BenKaya 2 3,240 Jan-25-2018, 12:43 PM
Last Post: BenKaya
  Python what should be name of the module for managing data of users ? harun2525 3 3,378 Dec-06-2017, 06:11 PM
Last Post: nilamo
  [split] can't find '__main__' module Blue Dog 1 9,411 Oct-18-2016, 12:23 AM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020