Skip to content

Commit 9c94d99

Browse files
smurchingthunterdb
authored andcommitted
Shade google.protobuf classes in addition to com.google.protobuf classes (#125)
* Shade google.protobuf classes in addition to com.google.protobuf classes * Update version number to RC2
1 parent 7079fca commit 9c94d99

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Additionally, if you want to run unit tests for python, you need the following d
5454
Assuming that `SPARK_HOME` is set, you can use PySpark like any other Spark package.
5555

5656
```bash
57-
$SPARK_HOME/bin/pyspark --packages databricks:tensorframes:0.2.9-rc1-s_2.11
57+
$SPARK_HOME/bin/pyspark --packages databricks:tensorframes:0.2.9-rc2-s_2.11
5858
```
5959

6060
Here is a small program that uses Tensorflow to add 3 to an existing column.
@@ -152,7 +152,7 @@ The scala support is a bit more limited than python. In scala, operations can be
152152
You simply use the published package:
153153

154154
```bash
155-
$SPARK_HOME/bin/spark-shell --packages databricks:tensorframes:0.2.9-rc1
155+
$SPARK_HOME/bin/spark-shell --packages databricks:tensorframes:0.2.9-rc2
156156
```
157157

158158
Here is the same program as before:
@@ -202,14 +202,14 @@ build/sbt distribution/spDist
202202
Assuming that SPARK_HOME is set and that you are in the root directory of the project:
203203

204204
```bash
205-
$SPARK_HOME/bin/spark-shell --jars $PWD/target/testing/scala-2.11/tensorframes-assembly-0.2.9-rc1.jar
205+
$SPARK_HOME/bin/spark-shell --jars $PWD/target/testing/scala-2.11/tensorframes-assembly-0.2.9-rc2.jar
206206
```
207207

208208
If you want to run the python version:
209209

210210
```bash
211-
PYTHONPATH=$PWD/target/testing/scala-2.11/tensorframes-assembly-0.2.9-rc1.jar \
212-
$SPARK_HOME/bin/pyspark --jars $PWD/target/testing/scala-2.11/tensorframes-assembly-0.2.9-rc1.jar
211+
PYTHONPATH=$PWD/target/testing/scala-2.11/tensorframes-assembly-0.2.9-rc2.jar \
212+
$SPARK_HOME/bin/pyspark --jars $PWD/target/testing/scala-2.11/tensorframes-assembly-0.2.9-rc2.jar
213213
```
214214

215215
## Acknowledgements

project/Build.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ object Shading extends Build {
1111

1212

1313
lazy val commonSettings = Seq(
14-
version := "0.2.9-rc1",
14+
version := "0.2.9-rc2",
1515
name := "tensorframes",
1616
scalaVersion := sys.props.getOrElse("scala.version", "2.11.8"),
1717
organization := "databricks",
@@ -73,7 +73,8 @@ object Shading extends Build {
7373
libraryDependencies ++= testDependencies,
7474
libraryDependencies ++= allPlatformDependencies,
7575
assemblyShadeRules in assembly := Seq(
76-
ShadeRule.rename("com.google.protobuf.**" -> "org.tensorframes.protobuf3shade.@1").inAll
76+
ShadeRule.rename("com.google.protobuf.**" -> "org.tensorframes.protobuf3shade.@1").inAll,
77+
ShadeRule.rename("google.protobuf.**" -> "org.tensorframes.google.protobuf3shade.@1").inAll
7778
),
7879
assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false)
7980
).settings(commonSettings: _*)

0 commit comments

Comments
 (0)