You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by darthbear <gi...@git.apache.org> on 2014/05/03 19:11:22 UTC

[GitHub] incubator-storm pull request: Added progress bar when submitting t...

GitHub user darthbear opened a pull request:

    https://github.com/apache/incubator-storm/pull/100

    Added progress bar when submitting topology

    Added new class StormSubmitterWithProgressBar that prints a progress bar when uploading topology.
    
    Example:
    
        $ storm jar target/storm-starter-0.9.2-incubating-SNAPSHOT-jar-with-dependencies.jar storm.starter.WordCountTopology word-count
        Start uploading file 'target/storm-starter-0.9.2-incubating-SNAPSHOT-jar-with-dependencies.jar' to '/mnt/storm/nimbus/inbox/stormjar-56260c4e-c22f-4eee-86a3-1e64036fd5b2.jar' (2590268 bytes)
        [==================================================] 2590268 / 2590268
        File 'target/storm-starter-0.9.2-incubating-SNAPSHOT-jar-with-dependencies.jar' uploaded to '/mnt/storm/nimbus/inbox/stormjar-56260c4e-c22f-4eee-86a3-1e64036fd5b2.jar' (2590268 bytes)
    
    Updated the examples to use StormSubmitterWithProgressBar instead.

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

    $ git pull https://github.com/Lulo/incubator-storm master

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

    https://github.com/apache/incubator-storm/pull/100.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 #100
    
----
commit 262f2dc3cb4212e5e3428f1b2f569114eb3146b3
Author: darthbear <fr...@gmail.com>
Date:   2014-05-03T17:06:32Z

    Added storm submitter progress bar to see the progress of the jar file upload

----


---
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] incubator-storm pull request: Added progress bar when submitting t...

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

    https://github.com/apache/incubator-storm/pull/100#issuecomment-42314426
  
    Good point. I also added totalBytes to onProgress and onCompleted?
    So the signatures of the methods are:
    
        public void onStart(String srcFile, String targetFile, long totalBytes);
        public void onProgress(String srcFile, String targetFile, long bytesUploaded, long totalBytes);
        public void onCompleted(String srcFile, String targetFile, long totalBytes);
    
    Let me know if it's ok.
    
    Thanks


---
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] incubator-storm pull request: Added progress bar when submitting t...

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

    https://github.com/apache/incubator-storm/pull/100#issuecomment-42258649
  
    Good point. I just moved the 2 methods to StormSubmitter (submitTopologyWithProgressBar()).


---
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] incubator-storm pull request: Added progress bar when submitting t...

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

    https://github.com/apache/incubator-storm/pull/100#issuecomment-42348411
  
    +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.
---

[GitHub] incubator-storm pull request: Added progress bar when submitting t...

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

    https://github.com/apache/incubator-storm/pull/100#issuecomment-42317835
  
    The updated APIs look good to me. 


---
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] incubator-storm pull request: STORM-315 Added progress bar when su...

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

    https://github.com/apache/incubator-storm/pull/100


---
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] incubator-storm pull request: Added progress bar when submitting t...

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

    https://github.com/apache/incubator-storm/pull/100#issuecomment-42211400
  
    Why add an entirely new class, when we could just have a new function in StormSubmitter?


---
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] incubator-storm pull request: Added progress bar when submitting t...

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

    https://github.com/apache/incubator-storm/pull/100#issuecomment-42563750
  
    Thank you. I'll do that. I also updated the code a little bit (conditions in submitJar() to be exactly the same as what it was before). Thanks.


---
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] incubator-storm pull request: Added progress bar when submitting t...

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

    https://github.com/apache/incubator-storm/pull/100#issuecomment-42554708
  
    I'm really sorry I missed this before.  Could you be sure to file a JIRA for this and put the name of the JIRA in the title of the pull request.  Something like 
    
    STORM-12345 Added progress bar when submitting topology


---
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] incubator-storm pull request: Added progress bar when submitting t...

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

    https://github.com/apache/incubator-storm/pull/100#issuecomment-42312221
  
    Can we also include the source and/or the target file in the onProgress and onCompleted methods?  This allows for more files to be uploaded in parallel in the future.


---
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] incubator-storm pull request: Added progress bar when submitting t...

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

    https://github.com/apache/incubator-storm/pull/100#issuecomment-42314006
  
    Good point. I also added totalBytes to onProgress and onCompleted?
    So the signatures of the methods are:
            public void onStart(String srcFile, String targetFile, long totalBytes);
            public void onProgress(String srcFile, String targetFile, long bytesUploaded, long totalBytes);
            public void onCompleted(String srcFile, String targetFile, long totalBytes);
    
    Let me know if it's ok.
    
    Thanks


---
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] incubator-storm pull request: Added progress bar when submitting t...

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

    https://github.com/apache/incubator-storm/pull/100#issuecomment-42463190
  
    +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.
---

[GitHub] incubator-storm pull request: Added progress bar when submitting t...

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

    https://github.com/apache/incubator-storm/pull/100#issuecomment-42346838
  
    cool thanks. I updated the code. Let me know if you need me to update anything else (doc, ...). Thanks.


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