Setup a Drill connection

drill_connection(host = Sys.getenv("DRILL_HOST", "localhost"),
  port = Sys.getenv("DRILL_PORT", 8047), ssl = FALSE,
  user = Sys.getenv("DRILL_USER", ""),
  password = Sys.getenv("DRILL_PASSWORD", ""))

Arguments

host

Drill host (will pick up the value from DRILL_HOST env var)

port

Drill port (will pick up the value from DRILL_PORT env var)

ssl

use ssl?

user, password

(will pick up the values from DRILL_USER/DRILL_PASSWORD env vars)

Note

If user/password are set this function will make a POST to the REST interface immediately to prime the cookie-jar with the session id.

See also

Examples

dc <- drill_connection()