You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/11/07 04:56:00 UTC

[jira] [Commented] (HBASE-21446) [hbase-connectors] Update spark and scala versions; add some doc on how to generate artifacts with different versions

    [ https://issues.apache.org/jira/browse/HBASE-21446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16677683#comment-16677683 ] 

ASF GitHub Bot commented on HBASE-21446:
----------------------------------------

saintstack closed pull request #9: HBASE-21446 [hbase-connectors] Update spark and scala versions;
URL: https://github.com/apache/hbase-connectors/pull/9
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/spark/README.md b/spark/README.md
index dcd11c7..acb46bc 100755
--- a/spark/README.md
+++ b/spark/README.md
@@ -1 +1,11 @@
 # Apache HBase&trade; Spark Connector
+
+## Scala and Spark Versions
+
+To generate an artifact for a different [spark version](https://mvnrepository.com/artifact/org.apache.spark/spark-core) and/or [scala version](https://www.scala-lang.org/download/all.html), pass command-line options as follows (changing version numbers appropriately):
+
+```
+$ mvn -Dspark.version=2.2.2 -Dscala.version=2.11.7 -Dscala.binary.version=2.11 clean install
+```
+
+Spark 2.1.x, 2.2.x, 2.3.x, and 2.4.0 work as does scala 2.11.x. Scala 2.12.x and 2.10.x need work.
diff --git a/spark/hbase-spark/pom.xml b/spark/hbase-spark/pom.xml
index aed7da0..4554ceb 100644
--- a/spark/hbase-spark/pom.xml
+++ b/spark/hbase-spark/pom.xml
@@ -1,6 +1,5 @@
 <?xml version="1.0"?>
 <!--
-
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
  distributed with this work for additional information
@@ -127,7 +126,7 @@
     <dependency>
       <groupId>org.scalatest</groupId>
       <artifactId>scalatest_${scala.binary.version}</artifactId>
-      <version>2.2.4</version>
+      <version>3.0.5</version>
       <scope>test</scope>
       <exclusions>
        <exclusion>
@@ -737,7 +736,10 @@
           <scalaVersion>${scala.version}</scalaVersion>
           <args>
             <arg>-feature</arg>
+            <arg>-target:jvm-1.8</arg>
           </args>
+          <source>${compileSource}</source>
+          <target>${compileSource}</target>
         </configuration>
         <executions>
           <execution>
diff --git a/spark/pom.xml b/spark/pom.xml
index dcbc4da..a5dcaaf 100644
--- a/spark/pom.xml
+++ b/spark/pom.xml
@@ -41,10 +41,10 @@
     <protobuf.plugin.version>0.6.1</protobuf.plugin.version>
     <hbase-thirdparty.version>2.1.0</hbase-thirdparty.version>
     <jackson.version>2.9.2</jackson.version>
-    <spark.version>2.1.1</spark.version>
+    <spark.version>2.4.0</spark.version>
     <!-- The following version is in sync with Spark's choice
          Please take caution when this version is modified -->
-    <scala.version>2.11.8</scala.version>
+    <scala.version>2.11.12</scala.version>
     <scala.binary.version>2.11</scala.binary.version>
     <json4s.version>3.2.11</json4s.version>
   </properties>


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> [hbase-connectors] Update spark and scala versions; add some doc on how to generate artifacts with different versions
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-21446
>                 URL: https://issues.apache.org/jira/browse/HBASE-21446
>             Project: HBase
>          Issue Type: Bug
>          Components: hbase-connectors, spark
>            Reporter: stack
>            Assignee: stack
>            Priority: Major
>             Fix For: connector-1.0.0
>
>
> Our spark version was 2.1.1. and scala 2.11.8. Update to 2.4.0/2.11.12.
> Add doc on how to generate artifacts that use different spark and scala.
> Scala 2.10.x and 2.12.x need work.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)