一、安装部署
安装步骤:https://zhuanlan.zhihu.com/p/93087991
https://github.com/apache/griffin/blob/master/griffin-doc/deploy/deploy-guide.md
1、livy安装
只需要配置livy/conf/livy.conf,其他不用配置
2、Elasticsearch 创建索引
去掉accuracy,Elasticsearch高版本后不用指明类型
3、hiveserver2
4、如果windows编译不通过,可以在linux上进行编译
mvn -Dmaven.test.skip=true clean install
5、服务端安装
参考:https://github.com/apache/griffin/blob/master/griffin-doc/deploy/deploy-guide.md
注意
service/src/main/resources/application.properties
- 修改端口server.port = 8082,一般8080端口都被占用了。
- 确保hive元数据服务启动。
cd $GRIFFIN_INSTALL_DIR
tar -zxvf service-${version}.tar.gz
cd service-${version}
# start service
./bin/griffin.sh start
# or use ./bin/start.sh
# stop service
./bin/griffin.sh stop
# or use ./bin/stop.sh
6、启动前端
可参考 https://uzshare.com/view/794181
修改ui模块下的angular下的environment.ts,
先把ui模块进行编译,编译之后去到node_modules目录下中的./bin目录 执行如下命令:
ng serve --port 8083
这里的端口不能是8080,因为8080已经被service模块占用了
7、启用后,如果报Dataconnect表不存在
可以新建表
二、使用参考