Skip to content

Commit 8fad1cf

Browse files
committed
change the pom file and make hive-0.13.1 as the default
1 parent ab028d1 commit 8fad1cf

File tree

4 files changed

+29
-36
lines changed

4 files changed

+29
-36
lines changed

assembly/pom.xml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -210,21 +210,6 @@
210210
</dependency>
211211
</dependencies>
212212
</profile>
213-
<profile>
214-
<id>hive-versions</id>
215-
<activation>
216-
<property>
217-
<name>hive.version</name>
218-
</property>
219-
</activation>
220-
<dependencies>
221-
<dependency>
222-
<groupId>org.apache.spark</groupId>
223-
<artifactId>spark-hive_${scala.binary.version}</artifactId>
224-
<version>${project.version}</version>
225-
</dependency>
226-
</dependencies>
227-
</profile>
228213
<profile>
229214
<id>spark-ganglia-lgpl</id>
230215
<dependencies>

docs/building-spark.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ mvn -Pyarn-alpha -Phadoop-2.3 -Dhadoop.version=2.3.0 -Dyarn.version=0.23.7 -Dski
102102
# Building With Hive and JDBC Support
103103
To enable Hive integration for Spark SQL along with its JDBC server and CLI,
104104
add the `-Phive` profile to your existing build options. By default Spark
105-
will build with Hive 0.12.0 bindings. You can also build for Hive 0.13.1 using
106-
the `-Phive-0.13.1` profile. NOTE: currently the JDBC server is only
107-
supported for Hive 12.
105+
will build with Hive 0.13.1 bindings. You can also build for Hive 0.12.0 using
106+
the `-Phive-0.12.0` profile. NOTE: currently the JDBC server is only
107+
supported for Hive 0.12.0.
108108
{% highlight bash %}
109-
# Apache Hadoop 2.4.X with Hive 12 support
109+
# Apache Hadoop 2.4.X with Hive 13 support
110110
mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.4.0 -Phive -DskipTests clean package
111111

112-
# Apache Hadoop 2.4.X with Hive 13 support
113-
mvn -Pyarn -Phive-0.13.1 -Phadoop-2.4 -Dhadoop.version=2.4.0 -Phive -DskipTests clean package
112+
# Apache Hadoop 2.4.X with Hive 12 support
113+
mvn -Pyarn -Phive-0.12.0 -Phadoop-2.4 -Dhadoop.version=2.4.0 -Phive -DskipTests clean package
114114
{% endhighlight %}
115115

116116
# Spark Tests in Maven
@@ -119,8 +119,8 @@ Tests are run by default via the [ScalaTest Maven plugin](http://www.scalatest.o
119119

120120
Some of the tests require Spark to be packaged first, so always run `mvn package` with `-DskipTests` the first time. The following is an example of a correct (build, test) sequence:
121121

122-
mvn -Pyarn -Phadoop-2.3 -DskipTests -Phive clean package
123-
mvn -Pyarn -Phadoop-2.3 -Phive test
122+
mvn -Pyarn -Phadoop-2.3 -DskipTests -Phive -Phive-0.12.0 clean package
123+
mvn -Pyarn -Phadoop-2.3 -Phive -Phive-0.12.0 test
124124

125125
The ScalaTest plugin also supports running only a specific test suite as follows:
126126

@@ -183,16 +183,16 @@ can be set to control the SBT build. For example:
183183

184184
Some of the tests require Spark to be packaged first, so always run `sbt/sbt assembly` the first time. The following is an example of a correct (build, test) sequence:
185185

186-
sbt/sbt -Pyarn -Phadoop-2.3 -Phive assembly
187-
sbt/sbt -Pyarn -Phadoop-2.3 -Phive test
186+
sbt/sbt -Pyarn -Phadoop-2.3 -Phive -Phive-0.12.0 assembly
187+
sbt/sbt -Pyarn -Phadoop-2.3 -Phive -Phive-0.12.0 test
188188

189189
To run only a specific test suite as follows:
190190

191-
sbt/sbt -Pyarn -Phadoop-2.3 -Phive "test-only org.apache.spark.repl.ReplSuite"
191+
sbt/sbt -Pyarn -Phadoop-2.3 -Phive -Phive-0.12.0 "test-only org.apache.spark.repl.ReplSuite"
192192

193193
To run test suites of a specific sub project as follows:
194194

195-
sbt/sbt -Pyarn -Phadoop-2.3 -Phive core/test
195+
sbt/sbt -Pyarn -Phadoop-2.3 -Phive -Phive-0.12.0 core/test
196196

197197
# Speeding up Compilation with Zinc
198198

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@
128128
<flume.version>1.4.0</flume.version>
129129
<zookeeper.version>3.4.5</zookeeper.version>
130130
<!-- Version used in Maven Hive dependency -->
131-
<hive.version>0.12.0-protobuf-2.5</hive.version>
131+
<hive.version>0.13.1</hive.version>
132132
<!-- Version used for internal directory structure -->
133-
<hive.version.short>0.12.0</hive.version.short>
134-
<derby.version>10.4.2.0</derby.version>
133+
<hive.version.short>0.13.1</hive.version.short>
134+
<derby.version>10.10.1.1</derby.version>
135135
<parquet.version>1.4.3</parquet.version>
136136
<jblas.version>1.2.3</jblas.version>
137137
<jetty.version>8.1.14.v20131031</jetty.version>
@@ -1287,7 +1287,7 @@
12871287
</modules>
12881288
<properties>
12891289
<hive.version>0.12.0-protobuf-2.5</hive.version>
1290-
<hive.version.short>0.12.0-protobuf-2.5</hive.version.short>
1290+
<hive.version.short>0.12.0</hive.version.short>
12911291
<derby.version>10.4.2.0</derby.version>
12921292
</properties>
12931293
</profile>

sql/hive/pom.xml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@
3636
</properties>
3737

3838
<dependencies>
39-
<dependency>
40-
<groupId>com.twitter</groupId>
41-
<artifactId>parquet-hive-bundle</artifactId>
42-
<version>1.5.0</version>
43-
</dependency>
4439
<dependency>
4540
<groupId>org.apache.spark</groupId>
4641
<artifactId>spark-core_${scala.binary.version}</artifactId>
@@ -143,6 +138,19 @@
143138
</plugins>
144139
</build>
145140
</profile>
141+
<profile>
142+
<id>hive-0.12.0</id>
143+
<activation>
144+
<activeByDefault>false</activeByDefault>
145+
</activation>
146+
<dependencies>
147+
<dependency>
148+
<groupId>com.twitter</groupId>
149+
<artifactId>parquet-hive-bundle</artifactId>
150+
<version>1.5.0</version>
151+
</dependency>
152+
</dependencies>
153+
</profile>
146154
</profiles>
147155

148156
<build>

0 commit comments

Comments
 (0)