Comments (6)
Thx for using the pkg and filing an issue!
Ah, I was anticipating this day. I knew it would come eventually.
I'll setup a Docker image and start work in this pronto. I totally understand the need for this in a real production environment and it shouldn't be too difficult.
from sergeant.
Just pushed up a commit that seems to work, but I also failed to ask the context for auth.
The commit enables auth on the REST API and is currently aligned with the DBI interface (which means it also works with the dplyr
/dbplyr
interface).
Pls give it a go when you have time.
from sergeant.
Hi,
Just gave it a go in our environment. Ran into an error where the POST response isn't JSON, but rather an html document. Seems like the drill_query returned the html page for 'Invalid username or password' rather than an expected JSON object. This is strange to me because our 'authentication' is pretty loose, and currently we only receive the 'invalid username/password' response on our drill web console when the fields are empty.
This is what the code I'm attempting to run looks like
`fetch_with_drill <- function(query) {
dc <- drill_connection(host = Sys.getenv("DRILL_HOST", "(our drill client)"),
port = Sys.getenv("DRILL_PORT", 8047),
user = Sys.getenv("DRILL_USER", "username"),
pass = Sys.getenv("DRILL_PASSWORD", "password"),
ssl = TRUE)
result <- drill_query(dc, query)
return(result)
}`
When I debug it appears that the username and password fields are making it to the drill connection object just fine, but are getting lost somewhere in authentication. I can't tell where, though.
from sergeant.
OH. My apologies. I don't think I covered this bit, just the DBI/dplyr.
Posting a fix in like 30m.
Many, many thanks for the bug report.
from sergeant.
I slipstreamed it in but won't have a chance to test until later. I figured it was better to get it up for you to potentially work with today than waiting.
from sergeant.
I toyed with it and after fixing a small variable naming error (passing username into auth_drill when user was the correct variable name) it worked! I created a pull request for the small correction. Thank you for being so responsive and working on this package!
from sergeant.
Related Issues (20)
- Implement write table methods HOT 1
- BREAKING STUFF: 0.7.0 re-introducts JDBC dependency HOT 4
- Problem with installing sergeant HOT 2
- drill_version(ds) failed HOT 6
- Provide an automated downloader and way to start drill-embedded? HOT 1
- REST API: Add support for new query metadata in 1.15.0 release
- Add example of accessing S3 files HOT 3
- Switch to rapidjsonr HOT 2
- better error messages on query failures HOT 2
- Support field type metadata prior to rapidjsonr switch HOT 3
- Column data types not being parsed under v0.8.0-dev HOT 8
- dplyr interface does not work outside of `cp` schema HOT 1
- Support dbQuoteIdentifier method for `src_drill` class HOT 2
- Should dplyr idioms work if `tbl()` source is a custom SQL statement? HOT 4
- Improve drill_up() interactive experience HOT 3
- drill_up fails (maybe due to Docker Toolkit?) HOT 2
- Out of memory Issue reading single column from parquet file
- "bad pad value" when trying to install from GitHub HOT 2
- Prepare for new streaming JSON
- table identifier escaping causing dplyr interface errors HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sergeant.