Skip to content

Instantly share code, notes, and snippets.

@aboussetta
Forked from hkhamm/install_connector.sh
Created May 28, 2017 15:24
Show Gist options
  • Select an option

  • Save aboussetta/ccb6dd2679e36120df79821036d82d37 to your computer and use it in GitHub Desktop.

Select an option

Save aboussetta/ccb6dd2679e36120df79821036d82d37 to your computer and use it in GitHub Desktop.

Revisions

  1. @hkhamm hkhamm revised this gist Aug 17, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install_connector.sh
    Original file line number Diff line number Diff line change
    @@ -8,8 +8,8 @@ rm *.jar

    curl -o ivy-2.3.0.jar \
    'http://search.maven.org/remotecontent?filepath=org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar'
    curl -o spark-cassandra-connector_2.10-1.0.0-beta1.jar \
    'http://search.maven.org/remotecontent?filepath=com/datastax/spark/spark-cassandra-connector_2.10/1.0.0-beta1/spark-cassandra-connector_2.10-1.0.0-beta1.jar'
    curl -o spark-cassandra-connector_2.10-1.0.0-rc2.jar \
    'http://search.maven.org/remotecontent?filepath=com/datastax/spark/spark-cassandra-connector_2.10/1.0.0-rc2/spark-cassandra-connector_2.10-1.0.0-rc2.jar'

    java -jar ivy-2.3.0.jar -dependency org.apache.cassandra cassandra-thrift 2.0.9 -retrieve "[artifact]-[revision](-[classifier]).[ext]"
    java -jar ivy-2.3.0.jar -dependency com.datastax.cassandra cassandra-driver-core 2.0.3 -retrieve "[artifact]-[revision](-[classifier]).[ext]"
  2. @hkhamm hkhamm revised this gist Aug 16, 2014. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions install_connector.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,9 @@
    #!/bin/bash
    # Installs the spark-cassandra-connector and support libs

    mkdir /opt/connector
    cd /opt/connector

    rm *.jar

    curl -o ivy-2.3.0.jar \
  3. @hkhamm hkhamm created this gist Aug 15, 2014.
    16 changes: 16 additions & 0 deletions install_connector.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    #!/bin/bash
    # Installs the spark-cassandra-connector and support libs

    rm *.jar

    curl -o ivy-2.3.0.jar \
    'http://search.maven.org/remotecontent?filepath=org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar'
    curl -o spark-cassandra-connector_2.10-1.0.0-beta1.jar \
    'http://search.maven.org/remotecontent?filepath=com/datastax/spark/spark-cassandra-connector_2.10/1.0.0-beta1/spark-cassandra-connector_2.10-1.0.0-beta1.jar'

    java -jar ivy-2.3.0.jar -dependency org.apache.cassandra cassandra-thrift 2.0.9 -retrieve "[artifact]-[revision](-[classifier]).[ext]"
    java -jar ivy-2.3.0.jar -dependency com.datastax.cassandra cassandra-driver-core 2.0.3 -retrieve "[artifact]-[revision](-[classifier]).[ext]"
    java -jar ivy-2.3.0.jar -dependency joda-time joda-time 2.3 -retrieve "[artifact]-[revision](-[classifier]).[ext]"
    java -jar ivy-2.3.0.jar -dependency org.joda joda-convert 1.6 -retrieve "[artifact]-[revision](-[classifier]).[ext]"

    rm -f *-{sources,javadoc}.jar