You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by onkarshedge <gi...@git.apache.org> on 2016/07/27 05:34:57 UTC

[GitHub] zeppelin pull request #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

GitHub user onkarshedge opened a pull request:

    https://github.com/apache/zeppelin/pull/1231

    [Zeppelin - 683][WIP] BittorrentNotebookRepo

    ### What is this PR for?
    To share notes and download via a magnet link. Trackerless, only via DHT. 
    
    
    ### What type of PR is it?
    [Feature]
    
    ### Todos
    * [ ] - Task
    
    ### What is the Jira issue?
    * [Jira issue](https://issues.apache.org/jira/browse/ZEPPELIN-683)
    
    ### How should this be tested?
    Outline the steps to test the PR here.
    
    ### Screenshots (if appropriate)
    
    ### Questions:
    * Does the licenses files need update?
    * Is there breaking changes for older versions?
    * Does this needs documentation?
    


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

    $ git pull https://github.com/onkarshedge/incubator-zeppelin bittorrent

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

    https://github.com/apache/zeppelin/pull/1231.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 #1231
    
----
commit f1b2c5308e14efe82e755235c7ced80095c898d8
Author: onkarshedge <sh...@gmail.com>
Date:   2016-07-27T05:05:45Z

    added bittorrent repo

----


---
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] zeppelin issue #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

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

    https://github.com/apache/zeppelin/pull/1231
  
    @onkarshedge on the architecture side - could you please elaborate on the design that you choose, especially regarding `TorrentServlet` - why do you need a new servlet? What are the parts that communicate to each other? A diagram (event ASCI one) would help here.
    
    On the code side - please read the project style guide for Java language carefully and make sure you follow the conventions described there.


---
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] zeppelin issue #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

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

    https://github.com/apache/zeppelin/pull/1231
  
    I tried the DHT code as a separate project [code](https://gist.github.com/onkarshedge/796ca7fe0698952ffef92690eec0dd40).The problem I am facing is notes with size greater than 1000 bytes does not return succesful.


---
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] zeppelin issue #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

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

    https://github.com/apache/zeppelin/pull/1231
  
    Sorry, was quite a busy week.
    
    Great progress so far, from the first glance and on the formal side of the contribution:
    
     1. CI is failing, could you please post here the reason of failure? You can find it by browsing the logs of TravisCI
    
     2. Every new file that you add must have an Apache 2.0 licence header, could yo uplease add them?
    
     3. Every dependency you add pom.xml need to be verified to have [Apache 2.0 compatible license](http://www.apache.org/legal/resolved.html#category-a)
    
     4. Every dependency you add pom.xml AND it's transitive dependencies which you can see with `mvn dependency:tree` will be part of the final release convenience binary so it's licenses must be recorded under [zeppelin-distribution/src/bin-license/LICENSE](https://github.com/apache/zeppelin/blob/master/zeppelin-distribution/src/bin_license/LICENSE)
    
    Please address this feedback and I will look more into the design tommorow and let you know!


---
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] zeppelin issue #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

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

    https://github.com/apache/zeppelin/pull/1231
  
    @bzz Design help needed. Connect all the pieces...
    
    `TorrentEngine` - singleton enum . has methods to start,stop a session. download a torrent from a magnet link and seed a given input file. It also has a alertListener which receives alert updates and a TorrentEngineListener.
    
    `BittorrentNotebookRepo` - has a torrentEngine Instance and a list of TorrentSocket  connections, To receive messages and send to each websocket. It implements the TorrentEngineListener.  
    
    Should this be separate or included in [NotebookServer OnMessage](https://github.com/apache/zeppelin/blob/73f1e485936918817386e344adebc9a721eaa5fa/zeppelin-server/src/main/java/org/apache/zeppelin/socket/NotebookServer.java#L156)
    
    `TorrentSocket `- has an BittorrentNotebookRepo Instance. How to pass an instance to it ? . It could be passed via WebSocketCreator.I read [here](http://www.eclipse.org/jetty/documentation/9.1.5.v20140505/jetty-websocket-server-api.html) but then BittorrentNotebookRepo would have to extend `WebSocketServlet` and it already extends `VFSNotebookRepo`.


---
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] zeppelin issue #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

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

    https://github.com/apache/zeppelin/pull/1231
  
    And also a note on directories..
    1] torrent
       notes/
               17fa195f6c85f72d197d63896beeee15f456e624/note.json
               282f928f9429828e5ef0a422f13d3263e671a2d3/note.json
       resume/
       torrents/
       settings.dat
    
    The torrent directory is created which will contain the following directories. When the user wants to share a note via DHT he will give the noteId , the note.json file is copied to torrent/notes/<hash>/
    and then seeded by adding to TorrentEngine.
    The reason to copy before seeding is if note is changed or updated after added to seeding, the pieces hash will change and hence corrupt. The torrent state will change from seeding --> downloading because it doesn't have that file.



---
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] zeppelin issue #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

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

    https://github.com/apache/zeppelin/pull/1231
  
    Yes, this can be done.


---
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] zeppelin issue #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

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

    https://github.com/apache/zeppelin/pull/1231
  
    @onkarshedge thank you for drawing very nice diagram.
    
    Let me be very clear - you did a great job and quite possible that it is me, as a mentor who under communicate the expectations about the architecture for this project. But..
    
    But in order to make your work useful for the project in the nearest future, this PR must not introduce new client-facing APIs, servlets or change the existing filesystem structure a lot.
    
    So we need to refactor your implementation and simplify, so it has a single entry point `BittorentNotebookRepo`, a class that implements `NotebookRepo`, that is both a server and a client for bittorrent protocol, and that has all the code necessary for:
     1. listing existing notes that shared through Bittorrent (local FS cache of the latest version?)
     2. checkpointing AKA creating revisions (and how use `Mutable Items`  to [store them in DHT](http://bittorrent.org/beps/bep_0044.html))
     3. listing revisions for each note, stored in DHT
     4. importing new note by magnet URL (should work similar to current "import by URL")
    
    Lifecycle of all objects that are needed to perform this task (i.e TorrentEngine and all others) must be tied to NotebookRepo lifecycle: 
     - all connections must be opened from it's constructor
     - all connections must be closed from `.close()`
    
    Please let me know if that makes sense to you. 
    
    Let's start by finding answers to the questions on how to do 1-4 on DHT. 
    Let's write answers down in English first, here or on the GDoc, before moving on to coding\refactoring them in a programming language.
    
    Please think about it and let me know if you have question - we can schedule a 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.
---

[GitHub] zeppelin issue #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

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

    https://github.com/apache/zeppelin/pull/1231
  
    @bzz What should I do now ? As you read the answer posted by gubatron should I now consider breaking the note into multiple partitions ?
    I am using frostwire-jlibtorrent. If you are expecting to code the entire DHT from scratch, it's too tough for me. I could give it a try but it would take time and might not be upto mark.


---
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] zeppelin issue #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

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

    https://github.com/apache/zeppelin/pull/1231
  
    @onkarshedge thanks for this contribution. as i can see, the design issue on passing `BittorrentNotebookRepo` to `TorrentSocket` was solved by passing through constructor. also better have torrent websocket message handling separate from `NotebookServer` as you did. any other design issues left non-mentioned?


---
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] zeppelin issue #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

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

    https://github.com/apache/zeppelin/pull/1231
  
    @onkarshedge conf object can be obtained on the fly from current configurations by `ZeppelinConfiguration.create()`. However, as you mentioned, all repository storages are currently  being initialized in `NotebookRepoSync` class and it may not be good idea to initialize it in `TorrentServlet`.  Also the way you mentioned, `TorrentServlet` will always be initialized regardless of whether corresponding conf was selected. I think it would be more logical to do all the initializations possible in the constructor of `BittorrentNotebookRepo` class. 


---
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] zeppelin issue #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

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

    https://github.com/apache/zeppelin/pull/1231
  
    @bzz here is the diagram.
    ![torrent 1](https://cloud.githubusercontent.com/assets/10570922/17356236/efedf040-5973-11e6-8a1c-06ffe4c57ff1.png)
    [Link to drive] (https://drive.google.com/file/d/0Bwg4NhDtfdM9WFRQSGJVV09Ub1U/view?usp=sharing)
    
    ![torrentclass](https://cloud.githubusercontent.com/assets/10570922/17356237/eff419e8-5973-11e6-8b4d-c97abf76e86c.png)
    [Link to drive](https://drive.google.com/file/d/0Bwg4NhDtfdM9UFhkMDItQlVFaHM/view?usp=sharing)



---
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] zeppelin issue #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

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

    https://github.com/apache/zeppelin/pull/1231
  
    @bzz I read the [DHT specification](http://bittorrent.org/beps/bep_0044.html) and here are some questions and answers.
    
    Answer to point 2) checkpointing and 3) get Revisions
    Mutable items can be stored with help of public and private key. `dht.mput(publicKey, privateKey, new Entry(data));` and retrieved via `dht.mget(publicKey)`. This allows only to store only one item/note against your public key. On retrieval the latest revision is retrieved, highest `seq` number. We can store multiple notes also if we use `salt`, the key in DHT would be hash(publicKey+salt), the salt could be `noteId`. But still we can only get only latest revision as per the protocol.
    
    If we use Immutable items to be stored in DHT `dht.put(data)` returns SHA hash and we can get the item back from DHT via ` dht.get(hash)`. So we can keep track of all revisions by storing hash against the noteID. `noteID -> [hash of rev1,hash of rev2]` in some Map\<String,List\<String\>> . 
    
    point 4) Magnet Link.
    magnet link are used to receive the metadata(info) of the .torrent file.Once the metadata part is received it downloads the file. In order for the peer to receive the file it needs seeders. Why use magnet link to import ? as we are storing notes directly in DHT we can just use hash(returned from dht.put("data") ) to get it from DHT.
    
    point 1) Listing existing notes
    will this be VFSNotebookRepo's list() method ? I didn't get this one.


---
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] zeppelin issue #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

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

    https://github.com/apache/zeppelin/pull/1231
  
    Thank you for sharing the progress! Let me look into this and get back to you


---
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] zeppelin issue #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

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

    https://github.com/apache/zeppelin/pull/1231
  
    @bzz ping.


---
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] zeppelin issue #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

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

    https://github.com/apache/zeppelin/pull/1231
  
    @onkarshedge 
    >> Initial idea the we discussed was that `BittorrentNotebookRepo` encapsulates all the things that are required in order to get notebooks.
    
    > Could you please elaborate this point.
    
    Sure. The idea with P2P notebook storage implementation, be that Bittorrent or Dat or any other protocol is to have:
     - a self-contained implementation (that possibly can be extracted to maven submodule later) 
     - of a single class, that `implements NotebookRepo` protocol
     - and is pluggable, instead or on the side with current `VFSNotebookRepo` (for now - pluggable though a simple configuration in `zeppelin-env.sh`, later I can imagine that would be also possible though GUI)
    
    In case only some parts of `VFSNotebookRepo` are required (not sure if that is the case or not) - we can extract them to the _skeletal implementation_ `AbstractFileSystemNotebookRepo` and make `BittorrentNotebookRepo extends AbstractFileSystemNotebookRepo`.  
    
    For more details on this approach to design object oriented architecture please read infamous Joshua Bloch "Effective Java, 2nd edition" `Item18: Prefer interfaces to abstract classes` p.93 
    
    -------
    
    Waiting for the diagram of current architecture and code improvements according to styleguide - please ping me and I'll be happy to make another pass tomorrow.
    



---
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] zeppelin issue #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

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

    https://github.com/apache/zeppelin/pull/1231
  
    @khalidhuseynov  thanks for helping.
    
    To actually see `TorrentSocket` in action I have to create a`WebSocketCreator` and a `Servlet`, then add this to jetty server , [at this line](https://github.com/apache/zeppelin/blob/6f867ceb0c2b93ecca3be8a16c155547182eb0dc/zeppelin-server/src/main/java/org/apache/zeppelin/server/ZeppelinServer.java#L223)
    ```java
    webApp.addServlet(new ServletHolder("ws-events",new TorrentServlet()),"/download");
    ```
    So then should it be like this ...
    ```java
    public class BittorrentNotebookRepo extends VFSNotebookRepo implements TorrentEngineListener,
        WebSocketCreator {
    @Override
    public Object createWebSocket(ServletUpgradeRequest servletUpgradeRequest,
                     ServletUpgradeResponse servletUpgradeResponse) {
        return new TorrentSocket(this);
      }
    }
    ```
    And the `TorrentServlet` class
    ```java
    public class TorrentServlet extends WebSocketServlet {
      @Override
      public void configure(WebSocketServletFactory webSocketServletFactory) {
        webSocketServletFactory.setCreator(new BittorrentNotebookRepo());
      }
    }
    ```
    Here is the problem as I cannot instantiate the BittorrentNotebookRepo here , it requires `conf` parameter. Also the NotebookRepos' are instantiated in `NotebookRepoSync`. 



---
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] zeppelin issue #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

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

    https://github.com/apache/zeppelin/pull/1231
  
    Thank you for your explanation, what's your progress on refactoring current impelemtation? 
    
    Let me try to re-visit points 1-5. Also, let's make sure that behavior of BittorentRepo is consistent with other implementations, like i.e S3, so it could be a drop-in replacement for the same use-cases where S3NotebookRerpo is used by a single line of configuration change. 
     
     1. listing existing notes that shared through Bittorrent
    
         Could we use Mutable item to save a list of hashes of all notebooks, stored by this user\publicKey ?
    
     2. checkpointing AKA creating revisions
    
         Can we store Note as Immutable item, so each "revision" of the Note will look like a separate Note with it's own Hash ?
    
     3. listing revisions for each note
    
         Can each Note have a publicKey, so we could store a list of all revisions for each note as a Mutable item?
    
     4. importing new note by hashcode (should work similar to current "import by URL")
    
         Hashcode should be good indeed, but this might still require changes that are discussed in #989
    
    Let me know what you think!



---
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] zeppelin pull request #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

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

    https://github.com/apache/zeppelin/pull/1231


---

[GitHub] zeppelin issue #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

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

    https://github.com/apache/zeppelin/pull/1231
  
    @onkarshedge thank you, that is good to know :) 
    
    Could you also please update PR description according to your plans? I.e in case you decide to pursue suggested architecture - what would be the smaller steps\refactorings needed in order to get there?


---
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] zeppelin issue #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

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

    https://github.com/apache/zeppelin/pull/1231
  
    @onkarshedge would you be willing to address the comments on the code style and rebase it?


---
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] zeppelin issue #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

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

    https://github.com/apache/zeppelin/pull/1231
  
    @bzz . I will post a diagram of communication for clear view.
    `BittorrentNotebookRepo` does not implement/override any `NotebookRepo` methods. It uses all VFSNotebookRepo methods.
    ```java
    Note get(String noteId, AuthenticationInfo subject);
    List<NoteInfo> list(AuthenticationInfo subject);
    void save(Note note, AuthenticationInfo subject);
    ```
    Only two key methods are
    ```java
    public String shareNote(String noteId); // take the note.json file and start seeding, return magnet link
    public void download(String magnetLink); // download the files in the torrent directory.
    ```
    
    ```
    Initial idea the we discussed was that BittorrentNotebookRepo encapsulates all the things that are required in order to get notebooks.
    ```
    Could you please elaborate this point. 
    Once the design and goal is clear, it will help me implement faster. 
    Give me some time I will post a diagram..


---
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] zeppelin issue #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

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

    https://github.com/apache/zeppelin/pull/1231
  
    > If you are expecting to code the entire DHT from scratch, it's too tough for me
    
    That is not an expectation here of course. 
    
    Let's think about alternatives - another way is to distribute note.jspn though regular torrents, right? So we can assume that there is going to be a tracker one day, that lists all notebook that are shared and each Zeppelin instance will be just seeding it's own fraction of notebooks.
    
    Then each revision of the note need to be stored as a separate file, as it will create a new torrent file\magnet link, right?
    
    Do you think this will work?
    
     1. listing existing notes that shared through Bittorrent
    
      This will include listing local copies from filesystem i.e under `/notebook/bittorent` or `/notebook-bittorent` not to interfere \w existing VFSNotebookRepo impl.
    
     2. checkpointing AKA creating revisions
      Each revision will result in a new file i.e `note-revisionId.json` + a new .torrent/magnet link to share it
    
     3. listing revisions for each note
      This should be simple, given the assumptions from above. And each revision can be shared independently
    
     4. importing new note by magnet link (should work similar to current "import by URL")
    



---
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] zeppelin issue #1231: [Zeppelin - 683][WIP] BittorrentNotebookRepo

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

    https://github.com/apache/zeppelin/pull/1231
  
    @bzz Here is the update.



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