You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/04/04 09:04:35 UTC

[GitHub] [spark] wangyum commented on a change in pull request #24282: [SPARK-27354][SQL] Add a new empty hive-thriftserver module for Hive 2.3.4

wangyum commented on a change in pull request #24282: [SPARK-27354][SQL] Add a new empty hive-thriftserver module for Hive 2.3.4
URL: https://github.com/apache/spark/pull/24282#discussion_r272083382
 
 

 ##########
 File path: dev/sparktestsupport/modules.py
 ##########
 @@ -165,11 +176,32 @@ def __hash__(self):
     build_profile_flags=[
         "-Phive-thriftserver",
     ],
+    environ={
+        "SUPPORTED_HADOOP_PROFILE": "hadoop2.7"
+    },
     sbt_test_goals=[
         "hive-thriftserver/test",
     ]
 )
 
+hive_thriftserverV2 = Module(
+    name="hive-thriftserverV2",
+    dependencies=[hive],
+    source_file_regexes=[
+        "sql/hive-thriftserverV2",
+        "sbin/start-thriftserver.sh",
+    ],
+    build_profile_flags=[
+        "-Phive-thriftserverV2",
+    ],
+    environ={
+        "SUPPORTED_HADOOP_PROFILE": "hadoop3.2"
 
 Review comment:
   Yes. It can run on both hadoop 2.7 and hadoop 3.2. But it can't run on Hive 1.2.1. We did not add more profiles for Hive 1.2.1 and Hive 2.3.4. So use the Hadoop profile to distinguish it.
   How to build it for hadoop 2.7:
   ```shell
   ./dev/make-distribution.sh --name hadoop-2.7_hive-2.3 --tgz -Phadoop-3.2 -Phive -Phive-thriftserverV2 -Pyarn -Dhadoop.version=2.7.4 -Dzookeeper.version=3.4.6 -Dcurator.version=2.7.1
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org