Index: bin/ext/beeline.sh =================================================================== --- bin/ext/beeline.sh (revision 0) +++ bin/ext/beeline.sh (revision 0) @@ -0,0 +1,18 @@ +THISSERVICE=beeline +export SERVICE_LIST="${SERVICE_LIST}${THISSERVICE} " + +beeline () { + CLASS=sqlline.SqlLine + SQLLINE_OPTS='-u jdbc:hive://localhost:10000/default \ + -d org.apache.hadoop.hive.jdbc.HiveDriver -n sa' + + if $cygwin; then + HIVE_LIB=`cygpath -w "$HIVE_LIB"` + fi + + exec $HADOOP jar ${HIVE_LIB}/hive-cli-*.jar $CLASS $HIVE_OPTS $SQLLINE_OPTS "$@" +} + +beeline_help () { + echo "usage ./beeline" +}