Please, suggest the best way to export data from clickhouse using python.
Right now I am using this code but have an error stating that hotsname can't be reached.
from clickhouse_driver import Client
client=Client(host='http://ipaddress',user='user',password='pass',port=8123)
print(client.execute('select * from table limit 5'))
Are there any other ways to do that?
In the code sample you provided,
you put
http://ipaddress
which is not a valid hostname, if you change this to a valid hostname, it should work fine.