Repository: bahir
Updated Branches:
  refs/heads/master 12f130846 -> 416252915


[BAHIR-35] Add Python sources to binary jar

Add python sources to jar to enable `spark-submit --packages …`

This can be verified by the following steps :

 mvn clean install

 rm -rf ~/.ivy2/cache/org.apache.bahir/

 mosquitto -p 1883

 bin/run-example \
    org.apache.spark.examples.streaming.mqtt.MQTTPublisher \
    tcp://localhost:1883 \
    foo

 ${SPARK_HOME}/bin/spark-submit \
    --packages org.apache.bahir:spark-streaming-mqtt_2.11:2.0.0-SNAPSHOT \
    streaming-mqtt/examples/src/main/python/streaming/mqtt_wordcount.py \
    tcp://localhost:1883 \
    foo

Closes #11


Project: http://git-wip-us.apache.org/repos/asf/bahir/repo
Commit: http://git-wip-us.apache.org/repos/asf/bahir/commit/41625291
Tree: http://git-wip-us.apache.org/repos/asf/bahir/tree/41625291
Diff: http://git-wip-us.apache.org/repos/asf/bahir/diff/41625291

Branch: refs/heads/master
Commit: 416252915431f01bb7a4ef4f8b7b9ed9ab02c3f5
Parents: 12f1308
Author: Christian Kadner <[email protected]>
Authored: Thu Jul 21 23:43:49 2016 -0700
Committer: Luciano Resende <[email protected]>
Committed: Sat Jul 23 09:28:07 2016 -0700

----------------------------------------------------------------------
 pom.xml | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bahir/blob/41625291/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index b9158a1..e76c285 100644
--- a/pom.xml
+++ b/pom.xml
@@ -374,6 +374,15 @@
   </dependencyManagement>
 
   <build>
+    <resources>
+      <resource>
+        <directory>${basedir}/python</directory>
+        <includes>
+          <include>**/*.py</include>
+        </includes>
+      </resource>
+    </resources>
+
     <pluginManagement>
       <plugins>
         <plugin>

Reply via email to