Skip to content

Commit 18b53a0

Browse files
committed
Alternative: don't check for Hive classes with jar, and always include datanucleus if present
1 parent 471be87 commit 18b53a0

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

bin/compute-classpath.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -124,16 +124,7 @@ datanucleus_jars="$(find "$datanucleus_dir" 2>/dev/null | grep "datanucleus-.*\\
124124
datanucleus_jars="$(echo "$datanucleus_jars" | tr "\n" : | sed s/:$//g)"
125125

126126
if [ -n "$datanucleus_jars" ]; then
127-
if [ $(command -v "$JAR_CMD") ] ; then
128-
hive_files=$("$JAR_CMD" -tf "$ASSEMBLY_JAR" org/apache/hadoop/hive/ql/exec 2>/dev/null)
129-
if [ -n "$hive_files" ]; then
130-
echo "Spark assembly has been built with Hive, including Datanucleus jars on classpath" 1>&2
131-
CLASSPATH="$CLASSPATH:$datanucleus_jars"
132-
fi
133-
else
134-
echo "No jar command available; unable to check if assembly was built with Hive."
135-
echo "Please install a JDK instead of a JRE."
136-
fi
127+
CLASSPATH="$CLASSPATH:$datanucleus_jars"
137128
fi
138129

139130
# Add test classes if we're running from SBT or Maven with SPARK_TESTING set to 1

0 commit comments

Comments
 (0)