Azure-Samples / cdm-azure-data-services-integration

Tutorials and sample code for integrating CDM folders with Azure Data Services
MIT License
70 stars 46 forks source link

Getting a failure in the notebook - "org.apache.http.client.HttpResponseException: The specified path does not exist." #10

Closed jsalchpros closed 5 years ago

jsalchpros commented 5 years ago

Could be either, or a user error

Minimal steps to reproduce

Configured the secrets per the tutorial. Triple checked that I have the tenantID correct from AAD. Run the whole notebook. Get the error.

I also attempted to hard code the tenantID and got the same error

Any log messages given by the failure

salesOrderDf = (spark.read.format("com.microsoft.cdm") .option("cdmModel", inputLocation) .option("entity", "Sales Orders") .option("appId", appID) .option("appKey", appKey)

ERROR highlights the line below .option("tenantId", tenantID)

                      .load())

org.apache.http.client.HttpResponseException: The specified path does not exist.

Py4JJavaError Traceback (most recent call last)

in () 4 .option("appId", appID) 5 .option("appKey", appKey) ----> 6 .option("tenantId", tenantID) 7 .load()) /databricks/spark/python/pyspark/sql/readwriter.py in load(self, path, format, schema, **options) 170 return self._df(self._jreader.load(self._spark._sc._jvm.PythonUtils.toSeq(path))) 171 else: --> 172 return self._df(self._jreader.load()) 173 174 @since(1.4) /databricks/spark/python/lib/py4j-0.10.7-src.zip/py4j/java_gateway.py in __call__(self, *args) 1255 answer = self.gateway_client.send_command(command) 1256 return_value = get_return_value( -> 1257 answer, self.gateway_client, self.target_id, self.name) 1258 1259 for temp_arg in temp_args: ### Expected/desired behavior I expect the Notebook to execute correctly. ### OS and Version? MacOS - but everything is done through browser and Azure ### Versions Not sure what is sought after here. I configured the cluster using the article versions. ### Mention any other details that might be useful None that I can think of.
jsalchpros commented 5 years ago

screenshot-northcentralus azuredatabricks net-2019-01-18-16-27-39

This screenshot may help.

jsalchpros commented 5 years ago

Closed by accident

jsalchpros commented 5 years ago

Issue appears to be an incorrect inputLocation string. Once fixed, error goes away.