Skip to content

Commit

Permalink
Remove hive 12 compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
marmbrus committed May 4, 2015
1 parent 8843a25 commit 4d8bf02
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 28 deletions.
23 changes: 0 additions & 23 deletions dev/run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -142,29 +142,6 @@ CURRENT_BLOCK=$BLOCK_BUILD

{
HIVE_BUILD_ARGS="$SBT_MAVEN_PROFILES_ARGS -Phive -Phive-thriftserver"
HIVE_12_BUILD_ARGS="$HIVE_BUILD_ARGS -Phive-0.12.0"

# First build with Hive 0.12.0 to ensure patches do not break the Hive 0.12.0 build
echo "[info] Compile with Hive 0.12.0"
[ -d "lib_managed" ] && rm -rf lib_managed
echo "[info] Building Spark with these arguments: $HIVE_12_BUILD_ARGS"

if [ "${AMPLAB_JENKINS_BUILD_TOOL}" == "maven" ]; then
build/mvn $HIVE_12_BUILD_ARGS clean package -DskipTests
else
# NOTE: echo "q" is needed because sbt on encountering a build file with failure
# (either resolution or compilation) prompts the user for input either q, r, etc
# to quit or retry. This echo is there to make it not block.
# NOTE: Do not quote $BUILD_MVN_PROFILE_ARGS or else it will be interpreted as a
# single argument!
# QUESTION: Why doesn't 'yes "q"' work?
# QUESTION: Why doesn't 'grep -v -e "^\[info\] Resolving"' work?
echo -e "q\n" \
| build/sbt $HIVE_12_BUILD_ARGS clean hive/compile hive-thriftserver/compile \
| grep -v -e "info.*Resolving" -e "warn.*Merging" -e "info.*Including"
fi

# Then build with default Hive version (0.13.1) because tests are based on this version
echo "[info] Compile with Hive 0.13.1"
[ -d "lib_managed" ] && rm -rf lib_managed
echo "[info] Building Spark with these arguments: $HIVE_BUILD_ARGS"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,9 @@ class HiveContext(sc: SparkContext) extends SQLContext(sc) {
// into the isolated client loader
val metadataConf = new HiveConf()
val allConfig = metadataConf.iterator.map(e => e.getKey -> e.getValue).toMap

// Config goes second to override other settings.
// TODO: Support for loading the jars from an already downloaded location.
IsolatedClientLoader.forVersion(hiveVersion, allConfig ++ configure).client
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,7 @@ case class InsertIntoHiveTable(
orderedPartitionSpec.put(entry.getName,partitionSpec.get(entry.getName).getOrElse(""))
}
val partVals = MetaStoreUtils.getPvals(table.hiveQlTable.getPartCols, partitionSpec)
catalog.synchronized {
// TODO
// catalog.client.validatePartitionNameCharacters(partVals)
}

// inheritTableSpecs is set to true. It should be set to false for a IMPORT query
// which is currently considered as a Hive native command.
val inheritTableSpecs = true
Expand Down

0 comments on commit 4d8bf02

Please sign in to comment.