当前位置: 首页 > 工具软件 > Apache Falcon > 使用案例 >

Maven编译apache falcon_win10

阙项禹
2023-12-01

背景

白天上班有虚拟机可以折腾,回到家,房子里的Ubuntu14.10折腾起来比较费劲,好多东西没有预先安装,用到什么的时候在去安装,在者,房子里的广电网络烂到姥姥家了。
所以决定试试在win10下折腾一下maven+falcon。

事前准备

  1. maven3.3.9
  2. apache falcon0.9
  3. jdk1.7_8

安装

JDK

主要是环境变量的配置以及用java -version去测试是否可用。
C:\Users\JP>java -version
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) Client VM (build 24.80-b11, mixed mode, sharing)



Maven

解压以及环境变量的设置,完后使用mvn -v进行确认。
C:\Users\JP>mvn -v
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:47+08:00)
Maven home: F:\maven\apache-maven-3.3.9\bin\..
Java version: 1.7.0_80, vendor: Oracle Corporation
Java home: D:\Program Files\Java\jdk1.7.0_80\jre
Default locale: zh_CN, platform encoding: GBK
OS name: "windows 8.1", version: "6.3", arch: "x86", family: "windows"


Apache Falcon

  1. 源码解压到maven的目录下即可,因为我这里上网不用代理,所以settings.xml就不需要特意配置了
  2. 就是进行编译falcon源码了。不知道windows这边有没有什么特别要注意的,先试试再看。

编译falcon

mvn clean install命令进行编译,但,还是出错了
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Falcon ...................................... FAILURE [01:03 min]
[INFO] Apache Falcon UI ................................... SKIPPED
[INFO] Checkstyle ......................................... SKIPPED
[INFO] Build Tools ........................................ SKIPPED
[INFO] Apache Falcon Java client .......................... SKIPPED
[INFO] Apache Falcon CLI client ........................... SKIPPED
[INFO] Apache Falcon Metrics .............................. SKIPPED
[INFO] Apache Falcon Hadoop Dependencies .................. SKIPPED
[INFO] Apache Falcon Test Utility ......................... SKIPPED
[INFO] Apache Falcon Commons .............................. SKIPPED
[INFO] Apache Falcon Oozie EL Extension ................... SKIPPED
[INFO] Apache Falcon Embedded Hadoop - Test Cluster ....... SKIPPED
[INFO] Apache Falcon Sharelib Hive - Test Cluster ......... SKIPPED
[INFO] Apache Falcon Sharelib Pig - Test Cluster .......... SKIPPED
[INFO] Apache Falcon Sharelib Hcatalog - Test Cluster ..... SKIPPED
[INFO] Apache Falcon Sharelib Oozie - Test Cluster ........ SKIPPED
[INFO] Apache Falcon Test Tools - Test Cluster ............ SKIPPED
[INFO] Apache Falcon Messaging ............................ SKIPPED
[INFO] Apache Falcon LIfecycle Module ..................... SKIPPED
[INFO] Apache Falcon Oozie Adaptor ........................ SKIPPED
[INFO] Apache Falcon Scheduler ............................ SKIPPED
[INFO] Apache Falcon Acquisition .......................... SKIPPED
[INFO] Apache Falcon Distcp Replication ................... SKIPPED
[INFO] Apache Falcon Retention ............................ SKIPPED
[INFO] Apache Falcon Archival ............................. SKIPPED
[INFO] Apache Falcon Rerun ................................ SKIPPED
[INFO] Apache Falcon Prism ................................ SKIPPED
[INFO] falcon-unit ........................................ SKIPPED
[INFO] Apache Falcon Web Application ...................... SKIPPED
[INFO] Apache Falcon Documentation ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:08 min
[INFO] Finished at: 2016-04-15T23:59:57+08:00
[INFO] Final Memory: 15M/36M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-remote-resources-plugin:1.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-remote-resources-plugin:jar:1.5: Could not transfer artifact org.apache.maven.plugins:maven-remote-resources-plugin:pom:1.5 from/to central (https://repo.maven.apache.org/maven2): Remote host closed connection during handshake: SSL peer shut down incorrectly -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

网上调查了一下,最多的应该就是我的烂网导致的,改天去同学那试试20M电信的网速,应该是可以解决的。
最终的结果验证后没有问题的话,到时候追加解决策。

@2016-04-17 12:40
还是不死心,今天又尝试了一把,但,结果还是差强人意。
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ falcon-ui ---
[INFO]
[INFO] --- frontend-maven-plugin:0.0.23:install-node-and-npm (install node and npm) @ falcon-ui ---
[INFO] Installing node version v0.10.30
[INFO] No proxy was configured, downloading directly

一直卡在这,好几个小时了,没有动静,估计还是不行了。

建议:这个应该就是maven里对应的仓库在中国是没开放或者不稳定,导致长时间下载未果。可以找一下其他对应的仓库。
比如:codehaus这个,在中国直接使用repository.codehaus.org的话,就会出现无法是别的host  or service。
解决策略:
<repositories>
     <repository>
       <id>Codehaus repository</id>
       <name>codehaus-mule-repo</name>
       <url>https://repository-master.mulesoft.org/nexus/content/groups/public/
       </url>
       <layout>default</layout>
     </repository>
   </repositories>


 类似资料: