From 72e0ab075e5c916ab449a2312fce0fb84b89fd21 Mon Sep 17 00:00:00 2001 From: Deepesh Khandelwal Date: Tue, 24 Jun 2014 16:25:48 -0700 Subject: [PATCH] HIVE-7287: hive --rcfilecat command is broken on Windows --- bin/ext/rcfilecat.cmd | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/ext/rcfilecat.cmd b/bin/ext/rcfilecat.cmd index e586beb..324e926 100644 --- a/bin/ext/rcfilecat.cmd +++ b/bin/ext/rcfilecat.cmd @@ -17,6 +17,12 @@ set CLASS=org.apache.hadoop.hive.cli.RCFileCat set HIVE_OPTS= +pushd %HIVE_LIB% +for /f %%a IN ('dir /b hive-cli-*.jar') do ( + set JAR=%HIVE_LIB%\%%a +) +popd + if [%1]==[rcfilecat_help] goto :rcfilecat_help :rcfilecat @@ -25,4 +31,4 @@ goto :EOF :rcfilecat_help echo "usage ./hive rcfilecat [--start='startoffset'] [--length='len'] " -goto :EOF \ No newline at end of file +goto :EOF -- 1.8.5.2 (Apple Git-48)