databricks / sbt-databricks

An sbt plugin for deploying code to Databricks Cloud
http://go.databricks.com/register-for-dbc
Other
71 stars 26 forks source link

dbcUpload does not delete existing jar #37

Closed driquelme closed 7 years ago

driquelme commented 7 years ago

I'm using sbt-assembly to upload a unique jar and when I do a dbcUpload I get:

[error] (*:dbcUpload) org.apache.http.client.HttpResponseException: Exception: The directory already contains an element called 'eyeview-spark-jobs-assembly-1.0.0-SNAPSHOT.jar'

It would be nice for the older version to be deleted

brkyvz commented 7 years ago

Hi, do you happen to have a '/' at the end of dbcLibraryPath, e.g. '/Users/me@somewhere/Libraries/'? If so, can you please remove the final /?

On Aug 17, 2016 6:59 AM, "Daniel Riquelme" notifications@github.com wrote:

I'm using sbt-assembly to upload a unique jar and when I do a dbcUpload I get:

error org.apache.http.client.HttpResponseException: Exception: The directory already contains an element called 'eyeview-spark-jobs-assembly-1.0.0-SNAPSHOT.jar'

It would be nice for the older version to be deleted

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/databricks/sbt-databricks/issues/37, or mute the thread https://github.com/notifications/unsubscribe-auth/AFACe5OOPCo0K6hT-0cXyDMdpN4J0urtks5qgxOogaJpZM4Jmemb .

driquelme commented 7 years ago

Indeed, it works now.

Thanks !

2016-08-17 12:03 GMT-03:00 Burak Yavuz notifications@github.com:

Hi, do you happen to have a '/' at the end of dbcLibraryPath, e.g. '/Users/me@somewhere/Libraries/'? If so, can you please remove the final /?

On Aug 17, 2016 6:59 AM, "Daniel Riquelme" notifications@github.com wrote:

I'm using sbt-assembly to upload a unique jar and when I do a dbcUpload I get:

error org.apache.http.client.HttpResponseException: Exception: The directory already contains an element called 'eyeview-spark-jobs-assembly-1.0.0-SNAPSHOT.jar'

It would be nice for the older version to be deleted

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/databricks/sbt-databricks/issues/37, or mute the thread https://github.com/notifications/unsubscribe-auth/AFACe5OOPCo0K6hT- 0cXyDMdpN4J0urtks5qgxOogaJpZM4Jmemb .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/databricks/sbt-databricks/issues/37#issuecomment-240440586, or mute the thread https://github.com/notifications/unsubscribe-auth/AE8DLrVPcSK8o_jtACZJJ0OsSbGpO-kZks5qgyKmgaJpZM4Jmemb .

Daniel Riquelme CTO Cloudintelligence www.cloudintelligence.cl