Merge pull request #136 from yaooqinn/asciifun

ascii map for fun
This commit is contained in:
Kent Yao 2018-12-29 14:15:05 +08:00 committed by GitHub
commit 37625fd4dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 3 deletions

9
bin/kyuubi-logo Normal file
View File

@ -0,0 +1,9 @@
__ __ __
/\ \/\ \ /\ \ __
\ \ \/'/' __ __ __ __ __ __\ \ \____/\_\
\ \ , < /\ \/\ \/\ \/\ \/\ \/\ \\ \ '__`\/\ \
\ \ \\`\\ \ \_\ \ \ \_\ \ \ \_\ \\ \ \L\ \ \ \
\ \_\ \_\/`____ \ \____/\ \____/ \ \_,__/\ \_\
\/_/\/_/`/___/> \/___/ \/___/ \/___/ \/_/
/\___/
\/__/

View File

@ -22,6 +22,9 @@ CLASS="yaooqinn.kyuubi.server.KyuubiServer"
BIN_DIR="$(cd "`dirname "$0"`"; pwd)"
echo "Welcome to"
cat $BIN_DIR/kyuubi-logo
set -a
. "${BIN_DIR}/kyuubi-env.sh"
set +a
@ -65,5 +68,3 @@ if [ "$KYUUBI_SUBMIT_ENABLE" == "true" ]; then
else
exec "${SPARK_HOME}"/sbin/spark-daemon.sh submit ${CLASS} 1 "$@" "$KYUUBI_JAR"
fi

View File

@ -56,9 +56,24 @@ object KyuubiMain {
val env = new HMap[String, String]()
val cmd = builder.buildCommand(env)
val msg =
"""
| Welcome to
| __ __ __
| /\ \/\ \ /\ \ __
| \ \ \/'/' __ __ __ __ __ __\ \ \____/\_\
| \ \ , < /\ \/\ \/\ \/\ \/\ \/\ \\ \ '__`\/\ \
| \ \ \\`\\ \ \_\ \ \ \_\ \ \ \_\ \\ \ \L\ \ \ \
| \ \_\ \_\/`____ \ \____/\ \____/ \ \_,__/\ \_\
| \/_/\/_/`/___/> \/___/ \/___/ \/___/ \/_/
| /\___/
| \/__/
""".stripMargin
// scalastyle:off
printStream.println(msg)
printStream.println("=" * 69)
printStream.println("Kyuubi Command: " + join(" ", cmd))
printStream.println("========================================")
printStream.println("=" * 69)
// scalastyle:on
prepareBashCommand(cmd, env).asScala.foreach { c =>
print(c)