Skip to content

Instantly share code, notes, and snippets.

@etheleon
Created February 19, 2019 09:47
Show Gist options
  • Save etheleon/2d61d1f5a83d1026b5f3dfa9eaa989b3 to your computer and use it in GitHub Desktop.
Save etheleon/2d61d1f5a83d1026b5f3dfa9eaa989b3 to your computer and use it in GitHub Desktop.
Connecting with spark
# API KEY for accessing it's service
QUBOLE_API="MY_QUBOLE_API_ID"
# This is the ID which is set by Qubole
CLUSTER_ID=12830
conf <- livy_config("custom_headers" = list(`X-AUTH-TOKEN`=QUBOLE_API))
sc <- spark_connect(
master = sprintf("https://us.qubole.com/livy-spark-%s", CLUSTER_ID),
method = "livy",
config = conf
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment