Skip to content

Instantly share code, notes, and snippets.

@andrewstevenson
Created September 11, 2016 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewstevenson/8c8b2d9e088f4cb58238cba332c7cac9 to your computer and use it in GitHub Desktop.
Save andrewstevenson/8c8b2d9e088f4cb58238cba332c7cac9 to your computer and use it in GitHub Desktop.
val jdbcDF = sqlContext.read.format("jdbc").options(
Map("jdbc:sqlserver://host:port;instanceName=MyInstance;databaseName=myDB;" +
"integratedSecurity=true;authenticationSchema=JavaKeberos;principal=my_principal;keytab=my_keytab;")
).load()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment