2

I am trying to configure the spark-submits to use JARs that are stored in artifactory. I've tried a few ways to do this

  • Attempt 1: Changing the --jars parameter to point to the https end point

    • Result 1: 401 Error. Credentials are being passed like so: https://username:password@jfrog-endpoint. The link was tested using wget and it authenticates and downloads the JAR fine. Error
  • Attempt 2: Using a combination of --packages --repositories

    • Result 2: URL doesn't resolve to the right location of the jar
  • Attempt 3:Using combination of --packages and modified ivysettings.xml (containing repo and artifact pattern) ivy settings

    • Result 3: URL resolves correctly but still results in "Not Found" After some research it looks like the error might say "Not Found" and the it looks like it has "tried" the repo, it could still very well be a 401 error. Error

Any ideas would be helpful! Links i've explored:

TylerH
  • 20,799
  • 66
  • 75
  • 101
Mark Wan
  • 21
  • 1

1 Answers1

0

You can use https://username:password@jfrog.com/rep, however you need to specify port. https://username:password@jfrog.com:443/repo

I discovered this using Artifactory's "set me up" tool for package type Ivy. If you look in the resolver url it specifies the port.

smingerson
  • 1,368
  • 9
  • 12