下载
wget http://mirror.bit.edu.cn/apache/incubator/livy/0.6.0-incubating/apache-livy-0.6.0-incubating-bin.zip
解压到对应的路径
unzip apache-livy-0.6.0-incubating-bin.zip
修改配置
名称修改
mv apache-livy-0.6.0-incubating-bin/ livy-0.6.0
cd livy-0.6.0/conf
mv livy.conf.template livy.conf
vim livy.conf
# Hadoop Credential Provider Path to get "livy.keystore.password" and "livy.key-password".
# Credential Provider can be created using command as follow:
# hadoop credential create "livy.keystore.password" -value "secret" -provider jceks://hdfs/path/to/livy.jceks
# livy.hadoop.security.credential.provider.path =
# What host address to start the server on. By default, Livy will bind to all network interfaces.
livy.server.host = ip
# What port to start the server on.
livy.server.port = 8998
# What base path ui should work on. By default UI is mounted on "/".
# E.g.: livy.ui.basePath = /my_livy - result in mounting UI on /my_livy/
# livy.ui.basePath = ""
# What spark master Livy sessions should use.
livy.spark.master = yarn
# What spark deploy mode Livy sessions should use.
livy.spark.deploy-mode = client
修改这几个参数就可以启动
配置环境变量
vim ~/.bash_profile
export LIVY_HOME=/data/appcom/livy-0.6.0
export PATH=$LIVY_HOME/bin:$PATH
source ~/.bash_profile
./livy-server start
看到这个LivyServer进程则启动成功