Created
February 19, 2019 09:47
-
-
Save etheleon/2d61d1f5a83d1026b5f3dfa9eaa989b3 to your computer and use it in GitHub Desktop.
Connecting with spark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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