Index: bin/hcat =================================================================== --- bin/hcat (revision 1244232) +++ bin/hcat (working copy) @@ -44,6 +44,7 @@ # filter debug command line parameter debug=false +dump_classpath=false for f in $@; do if [[ $f = "-secretDebugCmd" ]]; then @@ -51,6 +52,9 @@ else remaining="${remaining} $f" fi + if [[ $f = "-classpath" ]]; then + dump_classpath=true + fi done # Find our hcatalog jar @@ -77,6 +81,8 @@ echo "exec $HADOOP_PREFIX/bin/hadoop jar $HCAT_JAR org.apache.hcatalog.cli.HCatCli $remaining" echo "with HADOOP_CLASSPATH set to ($HADOOP_CLASSPATH)" echo "and HADOOP_OPTS set to ($HADOOP_OPTS)" +elif [ "$dump_classpath" == "true" ]; then + echo $HADOOP_CLASSPATH; exit 0 else exec $HADOOP_PREFIX/bin/hadoop jar $HCAT_JAR org.apache.hcatalog.cli.HCatCli "$@" fi