Skip to content

Commit 293896a

Browse files
committed
Update build instruction
1 parent 862ff6c commit 293896a

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ Set spark major version
124124
Available profiles are
125125

126126
```
127+
-Pspark-2.0
127128
-Pspark-1.6
128129
-Pspark-1.5
129130
-Pspark-1.4
@@ -157,6 +158,16 @@ Available profiles are
157158

158159
minor version can be adjusted by `-Dhadoop.version=x.x.x`
159160

161+
##### `-Pscala-[version] (optional)`
162+
163+
set scala version (default 2.10)
164+
Available profiles are
165+
166+
```
167+
-Pscala-2.10
168+
-Pscala-2.11
169+
```
170+
160171
##### `-Pyarn` (optional)
161172

162173
enable YARN support for local mode
@@ -199,14 +210,17 @@ Available profiles are
199210
Bulid examples under zeppelin-examples directory
200211

201212

202-
213+
#### Example
203214

204215

205216
Here're some examples:
206217

207218
```sh
208-
# basic build
209-
mvn clean package -Pspark-1.6 -Phadoop-2.4 -Pyarn -Ppyspark
219+
# build with spark-2.0, scala-2.11
220+
mvn clean package -Pspark-2.0 -Phadoop-2.4 -Pyarn -Ppyspark -Psparkr -Pscala-2.11
221+
222+
# build with spark-1.6, scala-2.10
223+
mvn clean package -Pspark-1.6 -Phadoop-2.4 -Pyarn -Ppyspark -Psparkr
210224

211225
# spark-cassandra integration
212226
mvn clean package -Pcassandra-spark-1.5 -Dhadoop.version=2.6.0 -Phadoop-2.6 -DskipTests

docs/install/install.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,11 @@ mvn clean package -DskipTests [Options]
9393
Here are some examples with several options
9494

9595
```
96-
# basic build
97-
mvn clean package -Pspark-1.6 -Phadoop-2.4 -Pyarn -Ppyspark
96+
# build with spark-2.0, scala-2.11
97+
mvn clean package -Pspark-2.0 -Phadoop-2.4 -Pyarn -Ppyspark -Psparkr -Pscala-2.11
98+
99+
# build with spark-1.6, scala-2.10
100+
mvn clean package -Pspark-1.6 -Phadoop-2.4 -Pyarn -Ppyspark -Psparkr
98101
99102
# spark-cassandra integration
100103
mvn clean package -Pcassandra-spark-1.5 -Dhadoop.version=2.6.0 -Phadoop-2.6 -DskipTests

0 commit comments

Comments
 (0)