Skip to content

Commit

Permalink
Merge pull request #136 from yaooqinn/asciifun
Browse files Browse the repository at this point in the history
ascii map for fun
  • Loading branch information
yaooqinn committed Dec 29, 2018
2 parents 5fe0a34 + 07a744d commit 37625fd
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
9 changes: 9 additions & 0 deletions bin/kyuubi-logo
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
__ __ __
/\ \/\ \ /\ \ __
\ \ \/'/' __ __ __ __ __ __\ \ \____/\_\
\ \ , < /\ \/\ \/\ \/\ \/\ \/\ \\ \ '__`\/\ \
\ \ \\`\\ \ \_\ \ \ \_\ \ \ \_\ \\ \ \L\ \ \ \
\ \_\ \_\/`____ \ \____/\ \____/ \ \_,__/\ \_\
\/_/\/_/`/___/> \/___/ \/___/ \/___/ \/_/
/\___/
\/__/
5 changes: 3 additions & 2 deletions bin/start-kyuubi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -65,5 +68,3 @@ if [ "$KYUUBI_SUBMIT_ENABLE" == "true" ]; then
else
exec "${SPARK_HOME}"/sbin/spark-daemon.sh submit ${CLASS} 1 "$@" "$KYUUBI_JAR"
fi


Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 37625fd

Please sign in to comment.