I’m facing issues while trying to store Matplotlib graph in Azure Data Lake Store Gen2 by processing the Kmeans Elbow method from Local Pycharm pointing to Azure Databricks cluster.
For the below sample piece of ML code, am getting the error.
Elbow Curve:
import matplotlib.pyplot as plt
plt.savefig(graph_path, bbox_inches='tight')
Class shaded.databricks.azurebfs.org.apache.hadoop.fs.azurebfs.SecureAzureBlobFileSystem not found. OSError: [Errno 22] Invalid argument: 'abfss://cluster-container@project.dfs.core.windows.net/project/output/Elbow-Curve-20210325-222650.png'
Note: The code runs without any issues when pointed to local spark and local folder structure, the issue is with either Databricks or Azure Data Lake Store Gen2.
Any help is much appreciated!