Skip to content

Commit 955f21a

Browse files
aarondavpdeyhim
authored andcommitted
SPARK-1445: compute-classpath should not print error if lib_managed not found
This was added to the check for the assembly jar, forgot it for the datanucleus jars. Author: Aaron Davidson <[email protected]> Closes apache#361 from aarondav/cc and squashes the following commits: 8facc16 [Aaron Davidson] SPARK-1445: compute-classpath should not print error if lib_managed not found
1 parent e6350d6 commit 955f21a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/compute-classpath.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fi
6363
# built with Hive, so first check if the datanucleus jars exist, and then ensure the current Spark
6464
# assembly is built for Hive, before actually populating the CLASSPATH with the jars.
6565
# Note that this check order is faster (by up to half a second) in the case where Hive is not used.
66-
num_datanucleus_jars=$(ls "$FWDIR"/lib_managed/jars/ | grep "datanucleus-.*\\.jar" | wc -l)
66+
num_datanucleus_jars=$(ls "$FWDIR"/lib_managed/jars/ 2>/dev/null | grep "datanucleus-.*\\.jar" | wc -l)
6767
if [ $num_datanucleus_jars -gt 0 ]; then
6868
AN_ASSEMBLY_JAR=${ASSEMBLY_JAR:-$DEPS_ASSEMBLY_JAR}
6969
num_hive_files=$(jar tvf "$AN_ASSEMBLY_JAR" org/apache/hadoop/hive/ql/exec 2>/dev/null | wc -l)

0 commit comments

Comments
 (0)