You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@bahir.apache.org by davidrosenstark <gi...@git.apache.org> on 2017/07/05 20:53:57 UTC

[GitHub] bahir pull request #47: Bahir 100

GitHub user davidrosenstark opened a pull request:

    https://github.com/apache/bahir/pull/47

    Bahir 100

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/davidrosenstark/bahir bahir-100

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/bahir/pull/47.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #47
    
----
commit b281b7ffc07d9c975dca43288afb1298f9a052d5
Author: drosenst <da...@intel.com>
Date:   2017-07-05T20:41:02Z

    bahir-100 support for byte array

commit 20b33d67762fa9ddf0acd3627ef421a89bb4671a
Author: drosenst <da...@intel.com>
Date:   2017-07-05T20:53:15Z

    fix style

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir pull request #47: [BAHIR-100] Implement new function to pass byte arra...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/bahir/pull/47


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir pull request #47: [BAHIR-100] Implement new function to pass byte arra...

Posted by tedyu <gi...@git.apache.org>.
Github user tedyu commented on a diff in the pull request:

    https://github.com/apache/bahir/pull/47#discussion_r126583641
  
    --- Diff: streaming-mqtt/src/main/scala/org/apache/spark/streaming/mqtt/MQTTPairedByteArrayInputDStream.scala ---
    @@ -0,0 +1,143 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *    http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.spark.streaming.mqtt
    +
    +import org.eclipse.paho.client.mqttv3._
    +import org.eclipse.paho.client.mqttv3.persist.MemoryPersistence
    +
    +import org.apache.spark.storage.StorageLevel
    +import org.apache.spark.streaming.StreamingContext
    +import org.apache.spark.streaming.dstream._
    +import org.apache.spark.streaming.receiver.Receiver
    +
    +/**
    + * Input stream that subscribe messages from a Mqtt Broker.
    + * Uses eclipse paho as MqttClient http://www.eclipse.org/paho/
    + * @param brokerUrl          Url of remote mqtt publisher
    --- End diff --
    
    Add @param for _ssc


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir pull request #47: [BAHIR-100] Implement new function to pass byte arra...

Posted by lresende <gi...@git.apache.org>.
Github user lresende commented on a diff in the pull request:

    https://github.com/apache/bahir/pull/47#discussion_r128406934
  
    --- Diff: streaming-mqtt/README.md ---
    @@ -52,12 +52,14 @@ this actor can be configured to handle failures, etc.
     
         val lines = MQTTUtils.createStream(ssc, brokerUrl, topic)
         val lines = MQTTUtils.createPairedStream(ssc, brokerUrl, topic)
    +    val lines = MQTTUtils.createPairedByteArrayStreamStream(ssc, brokerUrl, topic)
    --- End diff --
    
    Fixed the typo. Validated there was no other StreamStream


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir pull request #47: [BAHIR-100] Implement new function to pass byte arra...

Posted by ckadner <gi...@git.apache.org>.
Github user ckadner commented on a diff in the pull request:

    https://github.com/apache/bahir/pull/47#discussion_r128401599
  
    --- Diff: streaming-mqtt/README.md ---
    @@ -52,12 +52,14 @@ this actor can be configured to handle failures, etc.
     
         val lines = MQTTUtils.createStream(ssc, brokerUrl, topic)
         val lines = MQTTUtils.createPairedStream(ssc, brokerUrl, topic)
    +    val lines = MQTTUtils.createPairedByteArrayStreamStream(ssc, brokerUrl, topic)
    --- End diff --
    
    @davidrosenstark -- I assume the `StreamStream` word duplication is a copy-paste error?
    
    ~`val lines = MQTTUtils.createPairedByteArrayStreamStream(ssc, brokerUrl, topic)`~
    `val lines = MQTTUtils.createPairedByteArrayStream(ssc, brokerUrl, topic)`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir issue #47: [BAHIR-100] Implement new function to pass byte array as is

Posted by lresende <gi...@git.apache.org>.
Github user lresende commented on the issue:

    https://github.com/apache/bahir/pull/47
  
    LGTM, merging if there are no more comments.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir issue #47: Bahir 100

Posted by lresende <gi...@git.apache.org>.
Github user lresende commented on the issue:

    https://github.com/apache/bahir/pull/47
  
    Please update the PR title and comments following the guidelines for creating a PR in bahir.apache.org/contributing/


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir issue #47: [BAHIR-100] Implement new function to pass byte array as is

Posted by davidrosenstark <gi...@git.apache.org>.
Github user davidrosenstark commented on the issue:

    https://github.com/apache/bahir/pull/47
  
    Hi, wondering if there are further comments/issues with this PR


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir issue #47: [BAHIR-100] Implement new function to pass byte array as is

Posted by davidrosenstark <gi...@git.apache.org>.
Github user davidrosenstark commented on the issue:

    https://github.com/apache/bahir/pull/47
  
    I updated the code to fix the failing build (missing file). Will build be restarted automatically  or i need to re-open PR?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir issue #47: Bahir 100

Posted by ApacheBahir <gi...@git.apache.org>.
Github user ApacheBahir commented on the issue:

    https://github.com/apache/bahir/pull/47
  
    Build failed, see build log for details
     



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir issue #47: [BAHIR-100] Implement new function to pass byte array as is

Posted by ApacheBahir <gi...@git.apache.org>.
Github user ApacheBahir commented on the issue:

    https://github.com/apache/bahir/pull/47
  
    
    Refer to this link for build results (access rights to CI server needed): 
    http://169.45.79.58:8080/job/bahir_spark_pr_builder/68/



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir issue #47: [BAHIR-100] Implement new function to pass byte array as is

Posted by ApacheBahir <gi...@git.apache.org>.
Github user ApacheBahir commented on the issue:

    https://github.com/apache/bahir/pull/47
  
    
    Refer to this link for build results (access rights to CI server needed): 
    http://169.45.79.58:8080/job/bahir_spark_pr_builder/72/



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir issue #47: [BAHIR-100] Implement new function to pass byte array as is

Posted by ApacheBahir <gi...@git.apache.org>.
Github user ApacheBahir commented on the issue:

    https://github.com/apache/bahir/pull/47
  
    Build failed, see build log for details
     



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir issue #47: Bahir 100

Posted by ApacheBahir <gi...@git.apache.org>.
Github user ApacheBahir commented on the issue:

    https://github.com/apache/bahir/pull/47
  
    Can one of the admins verify this patch?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir issue #47: [BAHIR-100] Implement new function to pass byte array as is

Posted by ApacheBahir <gi...@git.apache.org>.
Github user ApacheBahir commented on the issue:

    https://github.com/apache/bahir/pull/47
  
    
    Refer to this link for build results (access rights to CI server needed): 
    http://169.45.79.58:8080/job/bahir_spark_pr_builder/71/



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir issue #47: [BAHIR-100] Implement new function to pass byte array as is

Posted by ApacheBahir <gi...@git.apache.org>.
Github user ApacheBahir commented on the issue:

    https://github.com/apache/bahir/pull/47
  
    Build successful
     



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir pull request #47: [BAHIR-100] Implement new function to pass byte arra...

Posted by davidrosenstark <gi...@git.apache.org>.
Github user davidrosenstark commented on a diff in the pull request:

    https://github.com/apache/bahir/pull/47#discussion_r126603788
  
    --- Diff: streaming-mqtt/src/main/scala/org/apache/spark/streaming/mqtt/MQTTPairedByteArrayInputDStream.scala ---
    @@ -0,0 +1,143 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *    http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.spark.streaming.mqtt
    +
    +import org.eclipse.paho.client.mqttv3._
    +import org.eclipse.paho.client.mqttv3.persist.MemoryPersistence
    +
    +import org.apache.spark.storage.StorageLevel
    +import org.apache.spark.streaming.StreamingContext
    +import org.apache.spark.streaming.dstream._
    +import org.apache.spark.streaming.receiver.Receiver
    +
    +/**
    + * Input stream that subscribe messages from a Mqtt Broker.
    + * Uses eclipse paho as MqttClient http://www.eclipse.org/paho/
    + * @param brokerUrl          Url of remote mqtt publisher
    --- End diff --
    
    this was missing in all three classes. adding to all 3


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir pull request #47: [BAHIR-100] Implement new function to pass byte arra...

Posted by tedyu <gi...@git.apache.org>.
Github user tedyu commented on a diff in the pull request:

    https://github.com/apache/bahir/pull/47#discussion_r126583567
  
    --- Diff: streaming-mqtt/README.md ---
    @@ -52,12 +52,14 @@ this actor can be configured to handle failures, etc.
     
         val lines = MQTTUtils.createStream(ssc, brokerUrl, topic)
         val lines = MQTTUtils.createPairedStream(ssc, brokerUrl, topic)
    +    val lines = MQTTUtils.createPairedByteArrayStreamStream(ssc, brokerUrl, topic)
    --- End diff --
    
    Where is createPairedByteArrayStreamStream defined ?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir issue #47: [BAHIR-100] Implement new function to pass byte array as is

Posted by ApacheBahir <gi...@git.apache.org>.
Github user ApacheBahir commented on the issue:

    https://github.com/apache/bahir/pull/47
  
    
    Refer to this link for build results (access rights to CI server needed): 
    http://169.45.79.58:8080/job/bahir_spark_pr_builder/69/



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir pull request #47: [BAHIR-100] Implement new function to pass byte arra...

Posted by davidrosenstark <gi...@git.apache.org>.
Github user davidrosenstark commented on a diff in the pull request:

    https://github.com/apache/bahir/pull/47#discussion_r126602708
  
    --- Diff: streaming-mqtt/README.md ---
    @@ -52,12 +52,14 @@ this actor can be configured to handle failures, etc.
     
         val lines = MQTTUtils.createStream(ssc, brokerUrl, topic)
         val lines = MQTTUtils.createPairedStream(ssc, brokerUrl, topic)
    +    val lines = MQTTUtils.createPairedByteArrayStreamStream(ssc, brokerUrl, topic)
    --- End diff --
    
    In MQTTUtils class. This is done exactly in same way as createPairedStream with implementation in MQTTPairedByteArrayInputDStream.scala


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir issue #47: [BAHIR-100] Implement new function to pass byte array as is

Posted by ApacheBahir <gi...@git.apache.org>.
Github user ApacheBahir commented on the issue:

    https://github.com/apache/bahir/pull/47
  
    Build failed, see build log for details
     



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir issue #47: Bahir 100

Posted by ApacheBahir <gi...@git.apache.org>.
Github user ApacheBahir commented on the issue:

    https://github.com/apache/bahir/pull/47
  
    
    Refer to this link for build results (access rights to CI server needed): 
    http://169.45.79.58:8080/job/bahir_spark_pr_builder/67/



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir pull request #47: [BAHIR-100] Implement new function to pass byte arra...

Posted by ckadner <gi...@git.apache.org>.
Github user ckadner commented on a diff in the pull request:

    https://github.com/apache/bahir/pull/47#discussion_r128432486
  
    --- Diff: streaming-mqtt/README.md ---
    @@ -52,12 +52,14 @@ this actor can be configured to handle failures, etc.
     
         val lines = MQTTUtils.createStream(ssc, brokerUrl, topic)
         val lines = MQTTUtils.createPairedStream(ssc, brokerUrl, topic)
    +    val lines = MQTTUtils.createPairedByteArrayStreamStream(ssc, brokerUrl, topic)
    --- End diff --
    
    thanks @lresende 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir issue #47: [BAHIR-100] Implement new function to pass byte array as is

Posted by ApacheBahir <gi...@git.apache.org>.
Github user ApacheBahir commented on the issue:

    https://github.com/apache/bahir/pull/47
  
    Build successful
     



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] bahir issue #47: Bahir 100

Posted by lresende <gi...@git.apache.org>.
Github user lresende commented on the issue:

    https://github.com/apache/bahir/pull/47
  
    ok to test


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---