Open payt0nc opened 6 years ago
Are you using any HTTPBasicAuth for connecting to presto? Using any certs or anything?
We did not use any auth on Presto. In other words, anyone can be connected into our presto if she/he get the connection string and given any username.(But she/he must be in our intranet first).
We are able to get it working on our setup. We use nginx for security to handle users, and we actually use a password as well. Our presto.py file has the following connection details (and added password to the schema) and it works:
connection = presto.connect(
host=self.configuration.get('host', ''),
protocol='https',
port=self.configuration.get('port', 8080),
username=self.configuration.get('username', 'redash'),
password=self.configuration.get('password', 'redash'),
catalog=self.configuration.get('catalog', 'hive'),
schema=self.configuration.get('schema', 'default'))
I have opened PR #3723 that resolves this issue.
@
symbol in the email address and finally, if all of that is missing, defaults to redash
.source
identifier for pyhive
so that instead of reporting itself as pyhive
to Presto, it declares itself as redash
.Just waiting for them to review, approve and merge it.
Awesome. Thank you so much for creating this feature.🙇🏼♂️
Issue Summary
Can redash use different users to query Presto?
We have nearly a hundred users sharing a redash to query our Presto. From Presto configuration, it's configured that only accepted two queries / user. I don't think enlarged presto limit is good solution because the instances of presto are limited and accepted more queries per user will let other users(we have other access like Tableau) slow down.
Will you consider that to use real user account in redash to query Presto instead of sharing
redash
?Technical details:
Thanks.