SynapseML icon indicating copy to clipboard operation
SynapseML copied to clipboard

Maven Dependency

Open KlausSchaefersAtWork opened this issue 9 years ago • 15 comments

I added the following dep to my poml.xml

com.microsoft.ml.spark mmlspark 0.6 test

and also added the repo

azureedge.net MS Azure Maven Repo https://mmlspark.azureedge.net/maven

Still maven cannot find the artifact...

KlausSchaefersAtWork avatar Jul 25 '17 13:07 KlausSchaefersAtWork

Dear @KlausSchaefersAtWork, thanks for reporting this - I'll take a look right away.

drdarshan avatar Jul 25 '17 14:07 drdarshan

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!

drdarshan avatar Jul 25 '17 18:07 drdarshan

@KlausSchaefersAtWork -- have you tried the above?

elibarzilay avatar Oct 03 '17 20:10 elibarzilay

Hi,

I took the latest dependency from maven central...

4.0.0

<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>

KlausSchaefersAtWork avatar Oct 20 '17 11:10 KlausSchaefersAtWork

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>

imatiach-msft avatar Oct 24 '17 22:10 imatiach-msft

@KlausSchaefersAtWork can you try my suggestion and let us know if the newer version in maven central works for you?

imatiach-msft avatar Oct 24 '17 22:10 imatiach-msft

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.

elibarzilay avatar Oct 25 '17 10:10 elibarzilay

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 avatar Oct 31 '17 18:10 elibarzilay

@elibarzilay can this be closed?

mhamilton723 avatar Dec 04 '17 04:12 mhamilton723

Likely stale.

elibarzilay avatar Dec 06 '17 11:12 elibarzilay

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>

bigdataexplorer avatar Jun 01 '18 06:06 bigdataexplorer

You can get mmlspark from maven central, eg: https://mvnrepository.com/artifact/Azure/mmlspark/0.13

So this is what it would look like:

Azure mmlspark 0.13

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.

imatiach-msft avatar Aug 22 '18 14:08 imatiach-msft

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.

imatiach-msft avatar Aug 27 '18 02:08 imatiach-msft

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 avatar Aug 27 '18 02:08 friyal

@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.

imatiach-msft avatar Aug 27 '18 02:08 imatiach-msft