【发布时间】:2014-09-25 10:51:07
【问题描述】:
我正在尝试使用 apache twill 构建一个 YARN 应用程序。从twill presentation 的幻灯片中,他们正在谈论使用maven-bundle-plugin 来打包hello world 示例。
所以为了打包示例hello world,我首先尝试用mvn assembly:assembly -DdescriptorId=jar-with-dependencies打包jar。
然后将以下内容添加到pom.xml(并执行mvn clean install):
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.5.3</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>${pom.groupId}.${pom.artifactId}</Bundle-SymbolicName>
<Bundle-Name>${pom.artifactId}</Bundle-Name>
<Bundle-Version>1.0.0</Bundle-Version>
<Private-Package>org.wso2.mbp.helloworld</Private-Package>
<Bundle-Activator>org.wso2.mbp.helloworld.Activator</Bundle-Activator>
<Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
<Embed-Transitive>true</Embed-Transitive>
<Import-Package>
org.apache.twill.*,
org.osgi.framework,
*;resolution:=optional
</Import-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
斜纹布应用是如何打包的?然后如何在 hadoop 上运行它们?
【问题讨论】:
标签: java maven hadoop hadoop-yarn apache-twill