Skip to content

Commit 28e228f

Browse files
author
jackylk
committed
CLI bug fix
1 parent aadbcab commit 28e228f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bin/hbase-sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ echo "\$SPARK_HOME is not set"
3232
fi
3333

3434
export FWDIR=$SPARK_HOME
35-
export SPARKHBASE_SOURCE="$(cd "`dirname "$0"`"/..; pwd)"
36-
export JAR="$SPARKHBASE_SOURCE/target/spark-sql-on-hbase-1.0.0.jar"
35+
export ASTRO_SOURCE="$(cd "`dirname "$0"`"/..; pwd)"
36+
export JAR="$ASTRO_SOURCE/target/spark-sql-on-hbase-1.0.0.jar"
3737

3838
function usage {
3939
if [ -n "$1" ]; then

src/main/scala/org/apache/spark/sql/hbase/HBaseSQLCliDriver.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import org.apache.spark.{Logging, SparkConf, SparkContext}
2727
*
2828
*/
2929
object HBaseSQLCliDriver extends Logging {
30-
private val prompt = "spark-hbaseql"
30+
private val prompt = "astro"
3131
private val continuedPrompt = "".padTo(prompt.length, ' ')
3232
private val conf = new SparkConf()
3333
private val sc = new SparkContext(conf)
@@ -107,7 +107,7 @@ object HBaseSQLCliDriver extends Logging {
107107
// TODO: handle multiple command separated by ;
108108

109109
// Since we are using SqlParser and it does not handle ';', just work around to omit the ';'
110-
val input = line.trim.substring(0, line.length - 1)
110+
val input = line.substring(0, line.length - 1)
111111

112112
try {
113113
process(input.trim())

0 commit comments

Comments
 (0)