#spark and yarn config
spark.master=yarn
spark.deploy.mode=cluster
#hdfs default file system
fs.defaultFS=hdfs://10.0.86.191:9000
#yarn resourcemanager.hostname
yarn.resourcemanager.hostname=10.0.86.191
#if you want to use hive, set hive metastore uris
#hive.metastore.uris=thrift://10.0.88.71:9083
#show data in log, set 0 if you do not want to show data in logs
data.show=10
#server port
server.port=8002
#h2db port
h2.port=50002
运行PiFlow Web请到如下链接,PiFlow Server 与 PiFlow Web版本要对应:
目录
特性
架构
要求
开始
Build PiFlow:
install external package
mvn clean package -Dmaven.test.skip=true
运行 Piflow Server:
Intellij上运行PiFlow Server
:下载 piflow: git clone https://github.com/cas-bigdatalab/piflow.git
将PiFlow导入到Intellij
编辑配置文件config.properties
Build PiFlow jar包:
运行 HttpService:
测试 HttpService:
通过Release版本运行PiFlow
:根据需求下载不同版本PiFlow(建议下载最新版本):
https://github.com/cas-bigdatalab/piflow/releases/download/v0.5/piflow.tar.gz
https://github.com/cas-bigdatalab/piflow/releases/download/v0.6/piflow-server-v0.6.tar.gz
https://github.com/cas-bigdatalab/piflow/releases/download/v0.7/piflow-server-v0.7.tar.gz
解压piflow-server-v0.7.tar.gz:
tar -zxvf piflow-server-v0.7.tar.gz
编辑配置文件config.properties
运行、停止、重启PiFlow Server
start.sh、stop.sh、 restart.sh、 status.sh
测试 PiFlow Server
vim /etc/profile
export PIFLOW_HOME=/yourPiflowPath/bin
export PATH=$PATH:$PIFLOW_HOME/bin
运行如下命令
piflow flow start example/mockDataFlow.json
piflow flow stop appID
piflow flow info appID
piflow flow log appID
piflow flowGroup start example/mockDataGroup.json
piflow flowGroup stop groupId
piflow flowGroup info groupId
如何配置config.properties
运行PiFlow Web请到如下链接,PiFlow Server 与 PiFlow Web版本要对应:
接口Restful API:
flow json(可查看piflow-bin/example文件夹下的流水线样例)
flow example
CURL方式:
命令行方式:
set PIFLOW_HOME
vim /etc/profile
export PIFLOW_HOME=/yourPiflowPath/piflow-bin
export PATH=$PATH:$PIFLOW_HOME/bin
command example
piflow flow start yourFlow.json
piflow flow stop appID
piflow flow info appID
piflow flow log appID
piflow flowGroup start yourFlowGroup.json
piflow flowGroup stop groupId
piflow flowGroup info groupId
Docker镜像
docker pull registry.cn-hangzhou.aliyuncs.com/cnic_piflow/piflow:v0.7.1
docker pull registry.cn-hangzhou.aliyuncs.com/cnic_piflow/piflow:v0.6.1
docker images
docker run –name piflow-v0.6 -it [imageID]
页面展示
登录
:流水线列表
:创建流水线
:配置流水线
:运行流水线
:监控流水线
:流水线日志
:流水线组列表
:配置流水线组
:监控流水线组
:运行态流水线列表
:流水线模板列表
:联系我们