Apache Zeppelin

Table of Contents

Reference

zeppelin-env.sh

# Double the memory for zeppelin itself
# '-XX:MaxPermSize=512m' is omitted because it's deprecated in Java8
export ZEPPELIN_MEM='-Xms2048m -Xmx2048m'

Dynamic Form

Text input form

${formName}
${formName=defaultValue}
${name}
${name=Yeongho}
println("Hello "+z.input("name"))
println("Hello "+z.input("name", "sun"))

Select form

${formName=defaultValue,option1|option2...}
${formName=defaultValue,option1(DisplayName)|option2(DisplayName)...}
${fruit=apple,apple|banana|orange}
${fruit=apple,1(apple)|2(banana)|3(orange)}
println("Hello "+z.select("day", Seq(("1","mon"),
                                     ("2","tue"),
                                     ("3","wed"),
                                     ("4","thurs"),
                                     ("5","fri"),
                                     ("6","sat"),
                                     ("7","sun"))))

Checkbox form

${checkbox:formName=defaultValue1|defaultValue2...,option1|option2...}
${checkbox(delimiter):formName=...}:
${checkbox:fruit=apple|banana,apple|banana|orange}
> apple,banana 
${checkbox( and ):fruit=apple|banana,apple|banana|orange}
> apple and banana 
${checkbox( and ):fruit=apple(사과),apple|banana|orange}  # Label can also be placed
> apple and banana 
val options = Seq(("apple","Apple"), ("banana","Banana"), ("orange","Orange"))
println("Hello "+z.checkbox("fruit", options).mkString(" and "))

Topics

Interpreter mode

How-to

Install Interpreters

./bin/install-interpreter.sh --all
./bin/install-interpreter.sh --name md,shell,jdbc,python
./bin/install-interpreter.sh --list