Maven Dependency
I added the following dep to my poml.xml
and also added the repo
Still maven cannot find the artifact...
Dear @KlausSchaefersAtWork, thanks for reporting this - I'll take a look right away.
Dear @KlausSchaefersAtWork, it is possibly an issue with the CDN on our side.
Could you please try the instructions to get it working via SBT here? I just tried a simple program and it worked for me.
Also, if you are able to attach your POM file, we can look into it more.
Sorry for the inconvenience and thanks for your patience while we figure this out!
@KlausSchaefersAtWork -- have you tried the above?
Hi,
I took the latest dependency from maven central...
<groupId>com.quant-ux</groupId>
<artifactId>spark-example</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.11</artifactId>
<version>2.1.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_2.11</artifactId>
<version>2.1.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-mllib_2.11</artifactId>
<version>2.1.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>Azure</groupId>
<artifactId>mmlspark</artifactId>
<version>0.6</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>azureedge.net</id>
<name>MS Azure Maven Repo</name>
<url>https://mmlspark.azureedge.net/maven</url>
</repository>
</repositories>
I don't believe 0.6 version exists, see here: https://mvnrepository.com/artifact/Azure/mmlspark The latest version is 0.9, so I would recommend using that: https://mvnrepository.com/artifact/Azure/mmlspark/0.9
I see you are using 0.6 based on this:
<dependency> <groupId>Azure</groupId> <artifactId>mmlspark</artifactId> <version>0.6</version> </dependency>
@KlausSchaefersAtWork can you try my suggestion and let us know if the newer version in maven central works for you?
I'm not sure what's wrong exactly, but in general, we have no early packages (definitely not 0.6) on maven central itself, I think that it went on there later as part of the spark package uploads. But if you're specifying our maven url as a repository, then it should exist there.
Something that came up now when @mhamilton723 was entering the coordinates of a build: the artifact id for the maven coordinates should be mmlspark_2.11.
@elibarzilay can this be closed?
Likely stale.
It works for me with the following
<repository>
<id>azureedge.net</id>
<name>MS Azure Maven Repo</name>
<url>https://mmlspark.azureedge.net/maven</url>
</repository>
<dependency>
<groupId>com.microsoft.ml.spark</groupId>
<artifactId>mmlspark_2.11</artifactId>
<version>0.12</version>
</dependency>
You can get mmlspark from maven central, eg: https://mvnrepository.com/artifact/Azure/mmlspark/0.13
So this is what it would look like:
Thank you, Ilya
From: Yichun Duan [email protected] Sent: Wednesday, August 22, 2018 4:50 AM To: Azure/mmlspark [email protected] Cc: Ilya Matiach [email protected]; Comment [email protected] Subject: Re: [Azure/mmlspark] Maven Dependency (#85)
Hello, I use the following pom.xml:
azureedge.net MS Azure Maven Repo https://mmlspark.azureedge.net/mavenhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmmlspark.azureedge.net%2Fmaven&data=02%7C01%7Cilmat%40microsoft.com%7C5151746217ea43a5009008d6080c33cc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636705245835896111&sdata=6JSy2IqWfIk%2F%2BlHXcg8W8Q8ly6%2Fekmh9C95jmeqQwWg%3D&reserved=0
com.microsoft.ml.spark mmlspark_2.11 0.13
But there is an error when I was trying to run it in spark:
Downloading: Downloading: https://repository.cloudera.com/artifactory/cloudera-repos/com/microsoft/ml/spark/mmlspark_2.11/0.13/mmlspark_2.11-0.13.pomhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepository.cloudera.com%2Fartifactory%2Fcloudera-repos%2Fcom%2Fmicrosoft%2Fml%2Fspark%2Fmmlspark_2.11%2F0.13%2Fmmlspark_2.11-0.13.pom&data=02%7C01%7Cilmat%40microsoft.com%7C5151746217ea43a5009008d6080c33cc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636705245835896111&sdata=kltFpam0ORMsm4r%2FZK1Re9HmBVrt%2BktH3NgdnehXvMs%3D&reserved=0 Downloading: http://packages.confluent.io/maven/com/microsoft/ml/spark/mmlspark_2.11/0.13/mmlspark_2.11-0.13.pomhttps://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpackages.confluent.io%2Fmaven%2Fcom%2Fmicrosoft%2Fml%2Fspark%2Fmmlspark_2.11%2F0.13%2Fmmlspark_2.11-0.13.pom&data=02%7C01%7Cilmat%40microsoft.com%7C5151746217ea43a5009008d6080c33cc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636705245835896111&sdata=iPAflSSZATavt3%2FwIZ8fho0c0muZa770mNO8JoNMhjc%3D&reserved=0 Downloading: https://mmlspark.azureedge.net/maven/com/microsoft/ml/spark/mmlspark_2.11/0.13/mmlspark_2.11-0.13.pomhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmmlspark.azureedge.net%2Fmaven%2Fcom%2Fmicrosoft%2Fml%2Fspark%2Fmmlspark_2.11%2F0.13%2Fmmlspark_2.11-0.13.pom&data=02%7C01%7Cilmat%40microsoft.com%7C5151746217ea43a5009008d6080c33cc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636705245835896111&sdata=FmevBaRLCuU0QeA%2F%2B1f6jW2SS0NJk3pvigeW4E8syWc%3D&reserved=0 Aug 22, 2018 1:26:52 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute INFO: I/O exception (java.net.SocketException) caught when processing request to {s}->https://mmlspark.azureedge.net:443https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmmlspark.azureedge.net%3A443&data=02%7C01%7Cilmat%40microsoft.com%7C5151746217ea43a5009008d6080c33cc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636705245835896111&sdata=p1yhuUXEE3c%2FfrHwFYt1ZmtufneVpSpisH4ybtwYzUA%3D&reserved=0: Connection reset Aug 22, 2018 1:26:52 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute INFO: Retrying request to {s}->https://mmlspark.azureedge.net:443https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmmlspark.azureedge.net%3A443&data=02%7C01%7Cilmat%40microsoft.com%7C5151746217ea43a5009008d6080c33cc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636705245835896111&sdata=p1yhuUXEE3c%2FfrHwFYt1ZmtufneVpSpisH4ybtwYzUA%3D&reserved=0 Aug 22, 2018 1:26:52 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute INFO: I/O exception (java.net.SocketException) caught when processing request to {s}->https://mmlspark.azureedge.net:443https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmmlspark.azureedge.net%3A443&data=02%7C01%7Cilmat%40microsoft.com%7C5151746217ea43a5009008d6080c33cc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636705245835896111&sdata=p1yhuUXEE3c%2FfrHwFYt1ZmtufneVpSpisH4ybtwYzUA%3D&reserved=0: Connection reset Aug 22, 2018 1:26:52 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute INFO: Retrying request to {s}->https://mmlspark.azureedge.net:443https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmmlspark.azureedge.net%3A443&data=02%7C01%7Cilmat%40microsoft.com%7C5151746217ea43a5009008d6080c33cc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636705245835896111&sdata=p1yhuUXEE3c%2FfrHwFYt1ZmtufneVpSpisH4ybtwYzUA%3D&reserved=0 Aug 22, 2018 1:26:52 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute INFO: I/O exception (java.net.SocketException) caught when processing request to {s}->https://mmlspark.azureedge.net:443https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmmlspark.azureedge.net%3A443&data=02%7C01%7Cilmat%40microsoft.com%7C5151746217ea43a5009008d6080c33cc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636705245835896111&sdata=p1yhuUXEE3c%2FfrHwFYt1ZmtufneVpSpisH4ybtwYzUA%3D&reserved=0: Connection reset Aug 22, 2018 1:26:52 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute INFO: Retrying request to {s}->https://mmlspark.azureedge.net:443https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmmlspark.azureedge.net%3A443&data=02%7C01%7Cilmat%40microsoft.com%7C5151746217ea43a5009008d6080c33cc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636705245835896111&sdata=p1yhuUXEE3c%2FfrHwFYt1ZmtufneVpSpisH4ybtwYzUA%3D&reserved=0 Downloading: https://repo.maven.apache.org/maven2/com/microsoft/ml/spark/mmlspark_2.11/0.13/mmlspark_2.11-0.13.pomhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepo.maven.apache.org%2Fmaven2%2Fcom%2Fmicrosoft%2Fml%2Fspark%2Fmmlspark_2.11%2F0.13%2Fmmlspark_2.11-0.13.pom&data=02%7C01%7Cilmat%40microsoft.com%7C5151746217ea43a5009008d6080c33cc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636705245835896111&sdata=j4r7ctdMrJsNHj6DyvAHk%2BrS5ozWW23VQoUZUXW8QJU%3D&reserved=0 [ERROR] Failed to execute goal on project XXX: Could not resolve dependencies for project XXX:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at com.microsoft.ml.spark:mmlspark_2.11:jar:0.13: Failed to read artifact descriptor for com.microsoft.ml.spark:mmlspark_2.11:jar:0.13: Could not transfer artifact com.microsoft.ml.spark:mmlspark_2.11:pom:0.13 from/to azureedge.net (https://mmlspark.azureedge.net/mavenhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmmlspark.azureedge.net%2Fmaven&data=02%7C01%7Cilmat%40microsoft.com%7C5151746217ea43a5009008d6080c33cc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636705245835896111&sdata=6JSy2IqWfIk%2F%2BlHXcg8W8Q8ly6%2Fekmh9C95jmeqQwWg%3D&reserved=0): Connection reset -> [Help 1]
And I found that nowhere exists required pom file. May I know how I can use the mmlspark in my project?
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fmmlspark%2Fissues%2F85%23issuecomment-414960324&data=02%7C01%7Cilmat%40microsoft.com%7C5151746217ea43a5009008d6080c33cc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636705245836052366&sdata=Kyvuwko90jO8%2FzXlZai%2BEB7niJDRlYlwVCbqF8vHHac%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAXiisGTQEp7sClTTdKDef7PRMgI7XQ0Lks5uTRslgaJpZM4OijJH&data=02%7C01%7Cilmat%40microsoft.com%7C5151746217ea43a5009008d6080c33cc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636705245836052366&sdata=IBi0hwKMk00qP8Hl29voAD3s3eqZmf2cieSpPUuo3fk%3D&reserved=0.
This is still using mmlspark repo instead of maven central. Could you use maven central instead? Also, I’m not sure why, but your comments are not appearing on github, strange. Thank you, Ilya
From: Yichun Duan [email protected] Sent: Sunday, August 26, 2018 10:23 PM To: Azure/mmlspark [email protected] Cc: Ilya Matiach [email protected]; Comment [email protected] Subject: Re: [Azure/mmlspark] Maven Dependency (#85)
Similar problem. And here is my log. Downloading: https://mmlspark.azureedge.net/maven/com/microsoft/ml/spark/mmlspark_2.11/0.13/mmlspark_2.11-0.13.pomhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmmlspark.azureedge.net%2Fmaven%2Fcom%2Fmicrosoft%2Fml%2Fspark%2Fmmlspark_2.11%2F0.13%2Fmmlspark_2.11-0.13.pom&data=02%7C01%7Cilmat%40microsoft.com%7Ceae1b1ad21b74467472308d60bc3f3c9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636709333571672697&sdata=4lDYPnwH7gHqDEIprkKvnDwmdbyl%2FovQX%2BtmumW0PWk%3D&reserved=0 Aug 26, 2018 7:20:11 PM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute INFO: I/O exception (java.net.SocketException) caught when processing request to {s}->https://mmlspark.azureedge.net:443https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmmlspark.azureedge.net%3A443&data=02%7C01%7Cilmat%40microsoft.com%7Ceae1b1ad21b74467472308d60bc3f3c9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636709333571672697&sdata=cBs1cdvnbxbfm9kmKC%2Bcj8vVpCYlA1hMjmfYs2SFrDo%3D&reserved=0: Connection reset Aug 26, 2018 7:20:11 PM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute INFO: Retrying request to {s}->https://mmlspark.azureedge.net:443https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmmlspark.azureedge.net%3A443&data=02%7C01%7Cilmat%40microsoft.com%7Ceae1b1ad21b74467472308d60bc3f3c9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636709333571672697&sdata=cBs1cdvnbxbfm9kmKC%2Bcj8vVpCYlA1hMjmfYs2SFrDo%3D&reserved=0 Aug 26, 2018 7:20:11 PM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute INFO: I/O exception (java.net.SocketException) caught when processing request to {s}->https://mmlspark.azureedge.net:443https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmmlspark.azureedge.net%3A443&data=02%7C01%7Cilmat%40microsoft.com%7Ceae1b1ad21b74467472308d60bc3f3c9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636709333571672697&sdata=cBs1cdvnbxbfm9kmKC%2Bcj8vVpCYlA1hMjmfYs2SFrDo%3D&reserved=0: Connection reset Aug 26, 2018 7:20:11 PM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute INFO: Retrying request to {s}->https://mmlspark.azureedge.net:443https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmmlspark.azureedge.net%3A443&data=02%7C01%7Cilmat%40microsoft.com%7Ceae1b1ad21b74467472308d60bc3f3c9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636709333571672697&sdata=cBs1cdvnbxbfm9kmKC%2Bcj8vVpCYlA1hMjmfYs2SFrDo%3D&reserved=0 Aug 26, 2018 7:20:11 PM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute INFO: I/O exception (java.net.SocketException) caught when processing request to {s}->https://mmlspark.azureedge.net:443https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmmlspark.azureedge.net%3A443&data=02%7C01%7Cilmat%40microsoft.com%7Ceae1b1ad21b74467472308d60bc3f3c9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636709333571672697&sdata=cBs1cdvnbxbfm9kmKC%2Bcj8vVpCYlA1hMjmfYs2SFrDo%3D&reserved=0: Connection reset Aug 26, 2018 7:20:11 PM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute INFO: Retrying request to {s}->https://mmlspark.azureedge.net:443https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmmlspark.azureedge.net%3A443&data=02%7C01%7Cilmat%40microsoft.com%7Ceae1b1ad21b74467472308d60bc3f3c9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636709333571672697&sdata=cBs1cdvnbxbfm9kmKC%2Bcj8vVpCYlA1hMjmfYs2SFrDo%3D&reserved=0
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fmmlspark%2Fissues%2F85%23issuecomment-416096270&data=02%7C01%7Cilmat%40microsoft.com%7Ceae1b1ad21b74467472308d60bc3f3c9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636709333571672697&sdata=6As0FOVgFt11YHnju9468nQgh%2FUxeRIu9aSXniMT6lU%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAXiisDKwSB7q3L-uoU477Hn5-LZYiFHBks5uU1frgaJpZM4OijJH&data=02%7C01%7Cilmat%40microsoft.com%7Ceae1b1ad21b74467472308d60bc3f3c9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636709333571672697&sdata=YO6efzy4oC60y3NAR39k8hVsOABsjckUQJUbVnuNKGs%3D&reserved=0.
Hello, I've solved the problem by using something like:
<repository>
<id>Maven</id>
<url>https://dl.bintray.com/spark-packages/maven/</url>
</repository>
<dependency>
<groupId>Azure</groupId>
<artifactId>mmlspark</artifactId>
<version>0.13</version>
</dependency>
I think I just took a wrong repository before.
Thank you very much!
@friyal Yes, that looks better, glad you were able to find it. The package is on maven central as well so you don't even need to specify the repository, you only need to specify the dependency.