Blink 源码编译

参考:http://fetching118.com/article/5.html

帮助文档:http://fetching118.com/blink_doc/quickstart/scala_shell_quickstart.html

1、 从GitHub 官网下载Blink源码

https://codeload.github.com/apache/flink/zip/blink

 

2、搭建maven 环境,安装maven 3.1.1 版本.

[root@es ~]# mvn -v 
Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 23:22:22+0800)
Maven home: /root/apache-maven-3.1.1
Java version: 1.8.0_192, vendor: Oracle Corporation
Java home: /usr/local/java/jdk1.8.0_192/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-229.el7.x86_64", arch: "amd64", family: "unix"

 为加快编译速度,可以修改maven的settings.xml配置文件,添加阿里云仓库.



  
    nexus-aliyun
    *,!jeecg,!jeecg-snapshots,!mapr-releases
    Nexus aliyun
    http://maven.aliyun.com/nexus/content/groups/public
  

  
    mapr-public
    mapr-releases
    mapr-releases
    https://maven.aliyun.com/repository/mapr-public
  

 

scala 环境版本为2.11.12  

[root@es ~]# scala -version 
Scala code runner version 2.11.12 -- Copyright 2002-2017, LAMP/EPFL

3、执行如下命令,编译Blink

   因为我的hadoop 版本是第三方HDP版本的,所以需要执行如下命令.

 mvn clean  package  -DskipTests   -Denforcer.skip=true  -Drat.skip=true      -Pvendor-repos    -Dhadoop.version=2.7.3.2.6.5.0-292  

编译后的结果如下:

Blink 源码编译_第1张图片

 

 

4、BLink 界面如下图:

Blink 源码编译_第2张图片

 

你可能感兴趣的:(Flink,FLink,学习笔记,Blink,Blink源码编译,Blink编译)