You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by maji2014 <gi...@git.apache.org> on 2014/10/31 14:36:18 UTC

[GitHub] spark pull request: sink2 and channel2 should be closed

GitHub user maji2014 opened a pull request:

    https://github.com/apache/spark/pull/3037

    sink2 and channel2 should be closed

    as title

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

    $ git pull https://github.com/maji2014/spark master

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

    https://github.com/apache/spark/pull/3037.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 #3037
    
----
commit ec8be81dce106f5af2bbd5762683489dcce8f1ad
Author: derek ma <ma...@asiainfo-linkage.com>
Date:   2014-10-31T13:35:11Z

    sink2 and channel2 should be closed
    
    as title

----


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: Sink2 and channel2 should be closed in Flume

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

    https://github.com/apache/spark/pull/3037#discussion_r19701371
  
    --- Diff: external/flume/src/main/scala/org/apache/spark/streaming/flume/FlumeUtils.scala ---
    @@ -184,7 +184,7 @@ object FlumeUtils {
           hostname: String,
           port: Int
         ): JavaReceiverInputDStream[SparkFlumeEvent] = {
    -    createPollingStream(jssc, hostname, port, StorageLevel.MEMORY_AND_DISK_SER_2)
    +    createPollingStream(jssc.ssc, hostname, port, StorageLevel.MEMORY_AND_DISK_SER_2)
    --- End diff --
    
    I am talking about the change from using `jssc` to `jssc.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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: Sink2 and channel2 should be closed in Flume

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

    https://github.com/apache/spark/pull/3037#discussion_r19704384
  
    --- Diff: external/flume/src/main/scala/org/apache/spark/streaming/flume/FlumeUtils.scala ---
    @@ -184,7 +184,7 @@ object FlumeUtils {
           hostname: String,
           port: Int
         ): JavaReceiverInputDStream[SparkFlumeEvent] = {
    -    createPollingStream(jssc, hostname, port, StorageLevel.MEMORY_AND_DISK_SER_2)
    +    createPollingStream(jssc.ssc, hostname, port, StorageLevel.MEMORY_AND_DISK_SER_2)
    --- End diff --
    
    In order to keep the same style for all java related method. such as createStream and createPollingStream.So several jssc have been changed.


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: sink2 and channel2 should be closed

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/3037#issuecomment-61260593
  
    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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: Sink2 and channel2 should be closed in Flume

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

    https://github.com/apache/spark/pull/3037


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: Sink2 and channel2 should be closed in Flume

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

    https://github.com/apache/spark/pull/3037#discussion_r19700506
  
    --- Diff: external/flume/src/main/scala/org/apache/spark/streaming/flume/FlumeUtils.scala ---
    @@ -184,7 +184,7 @@ object FlumeUtils {
           hostname: String,
           port: Int
         ): JavaReceiverInputDStream[SparkFlumeEvent] = {
    -    createPollingStream(jssc, hostname, port, StorageLevel.MEMORY_AND_DISK_SER_2)
    +    createPollingStream(jssc.ssc, hostname, port, StorageLevel.MEMORY_AND_DISK_SER_2)
    --- End diff --
    
    Only one ".count.map" method in main method In al examples. I thought that's the additional call. 
    Please keep original status if that's not the additional call.
     


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: Sink2 and channel2 should be closed in Flume

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

    https://github.com/apache/spark/pull/3037#discussion_r19692337
  
    --- Diff: external/flume/src/main/scala/org/apache/spark/streaming/flume/FlumeUtils.scala ---
    @@ -184,7 +184,7 @@ object FlumeUtils {
           hostname: String,
           port: Int
         ): JavaReceiverInputDStream[SparkFlumeEvent] = {
    -    createPollingStream(jssc, hostname, port, StorageLevel.MEMORY_AND_DISK_SER_2)
    +    createPollingStream(jssc.ssc, hostname, port, StorageLevel.MEMORY_AND_DISK_SER_2)
    --- End diff --
    
    Why make this change? Is this to reduce the 1 additional method call from the call chain?


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: Sink2 and channel2 should be closed in Flume

Posted by maji2014 <gi...@git.apache.org>.
Github user maji2014 commented on the pull request:

    https://github.com/apache/spark/pull/3037#issuecomment-61782535
  
    I summit this request 5 days ago, but most codes are changed 2 days ago and including  sink2.stop and channel2.stop, so i close this request


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: Sink2 and channel2 should be closed in Flume

Posted by harishreedharan <gi...@git.apache.org>.
Github user harishreedharan commented on the pull request:

    https://github.com/apache/spark/pull/3037#issuecomment-61327596
  
    This looks good. +1.


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org