Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doujutun3207
flink
提交
7b40c876
F
flink
项目概览
doujutun3207
/
flink
与 Fork 源项目一致
从无法访问的项目Fork
通知
24
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
flink
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7b40c876
编写于
9月 23, 2013
作者:
R
Robert Metzger
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Travis support for new profiles, readme, comments in script
上级
c2fcda6d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
39 addition
and
15 deletion
+39
-15
.travis.yml
.travis.yml
+3
-3
README.md
README.md
+27
-1
tools/generate_specific_pom.sh
tools/generate_specific_pom.sh
+9
-11
未找到文件。
.travis.yml
浏览文件 @
7b40c876
...
...
@@ -4,9 +4,9 @@ jdk:
-
openjdk7
-
openjdk6
env
:
-
PROFILE=
hadoop_v1
-
PROFILE=
hadoop_yarn
-
PROFILE=
-
PROFILE=
"-Dhadoop.profile=2"
install
:
true
script
:
"
mvn
-P
$PROFILE
clean
verify"
script
:
"
mvn
$PROFILE
clean
verify"
README.md
浏览文件 @
7b40c876
...
...
@@ -35,7 +35,33 @@ If you’re a Debian/Ubuntu user, you’ll find a .deb package. We will continue
cd stratosphere-dist/target/stratosphere-dist-0.2-ozone-bin/stratosphere-0.2-ozone/
Note: The directory structure here looks like the contents of the official release distribution.
The directory structure here looks like the contents of the official release distribution.
#### Build for different Hadoop Versions
This section is for advanced users that want to build Stratosphere for a different Hadoop version, for example for Hadoop Yarn support.
We use the profile activation via properties (-D).
##### Build hadoop v1 (default)
Build the default (currently hadoop 1.2.1)
```
mvn clean package```
Build for a specific hadoop v1 version
```
mvn -Dhadoop-one.version=1.1.2 clean package
```
##### Build hadoop v2 (yarn)
Build the yarn using the default version defined in the pom
```
mvn -Dhadoop.profile=2 clean package
```
Build for a specific hadoop v1 version
```
mvn -Dhadoop.profile=2 -Dhadoop-two.version=2.1.0-beta clean package
```
It is necessary to generate separate POMs if you want to deploy to your local repository (`mvn install`) or somewhere else.
We have a script in `/tools` that generates POMs for the profiles. Use
```
mvn -f pom.hadoop2.xml clean install -DskipTests
```
to put a POM file with the right dependencies into your local repository.
### Run your first program
...
...
tools/generate_specific_pom.sh
浏览文件 @
7b40c876
...
...
@@ -57,17 +57,15 @@ nupom="pom.${hadoop_version}.xml"
poms
=
`
find
$ozone_home
-name
pom.xml
`
for
p
in
$poms
;
do
nuname
=
"
`
dirname
$p
`
/
${
nupom
}
"
# Now we do search and replace of explicit strings. The best
# way of seeing what the below does is by doing a diff between
# the original pom and the generated pom (pom.xml.hadoop1 or
# pom.xml.hadoop2). We replace the compat.module variable with
# either hbase-hadoop1-compat or hbase-hadoop2-compat, we
# replace the version string in all poms, we change modules
# to include reference to the non-standard pom name, we
# adjust relative paths so child modules can find the parent pom,
# and we enable/disable hadoop 1 and hadoop 2 profiles as
# appropriate removing a comment string too. We output the
# new pom beside the original.
# Now we do search and replace of explicit strings. The best way of
# seeing what the below does is by doing a diff between the original
# pom and the generated pom (pom.hadoop1.xml or pom.hadoop2.xml). We
# replace the version string in all poms, we change modules to
# include reference to the non- standard pom name, we adjust
# relative paths so child modules can find the parent pom, and we
# enable/disable hadoop 1 and hadoop 2 profiles as appropriate
# removing a comment string too. We output the new pom beside the
# original.
sed
-e
"s/
${
old_ozone_version
}
/
${
new_ozone_version
}
/"
\
-e
"s/
\(
<module>[^<]*
\)
/
\1\/
${
nupom
}
/"
\
-e
"s/
\(
relativePath>
\.\.\)
/
\1\/
${
nupom
}
/"
\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录