'Read files from a VM from Databricks
I want to read files from a VM from databricks. I am able to SFTP to VM from Databricks driver. However I want to read using spark.read. I have tried:
val read_input_df = spark.read
.format("com.springml.spark.sftp")
.option("host", "SFTP_HOST")
.option("username", "username")
.option("password", "password")
.option("fileType", "csv")
.load("/home/file1.csv")
Getting error NoClassDefFoundError: scala/Product$class. Has anyone done this successfully?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
