Connecting a local gephi instance to a remote titan server










0















Here is the scenario I want to resolve: I have two environments: a local machine and a virtual machine hosted in Azure



In the virtual machine I start a gremlin container which includes the gremlin client, server and connects to a cassandra graph database.



This is the information of the container running when i run the docker container ls command:



CONTAINER ID: 029095e26f53 
IMAGE: 3f03c6bfb0a2
COMMAND: "/bin/sh -c /gremlin…"
CREATED: 2 weeks ago
STATUS: Up 2 weeks
PORTS: 0.0.0.0:8182->8182/tcp
NAME: gremlin


When I enter inside the container, I run the following command in order to run the gremlin client:



./bin/gremlin.sh


Once inside the gremlin console i run the following command to connect to the tinkerpop server:



:remote connect tinkerpop.server conf/remote.yaml


==>Connected - localhost/127.0.0.1:8182 ---> answer from gremlin console



If I run the following gremlin query:



:> g.V().count()


I get a number different from zero, telling me that there are a records on the graph database.



Now on the other side I have the Gephi client on my local machine which I want it to be able to show that graph database. Or at least, make Gephi to show the the visual data from a



graph = TinkerFactory.createModern()


running inside the gremlin container.



I want to do this because I need to choose a visualization tool for gremlin and titan ecosystem.



I tried to set up Gephi client feature to connect to the virtual machine's ip and the port 8182 but it shows me the red dot telling me that is not possible. What am i missing? I am pretty sure there are a few steps missing. Thanks in advance,



Juan Ignacio










share|improve this question




























    0















    Here is the scenario I want to resolve: I have two environments: a local machine and a virtual machine hosted in Azure



    In the virtual machine I start a gremlin container which includes the gremlin client, server and connects to a cassandra graph database.



    This is the information of the container running when i run the docker container ls command:



    CONTAINER ID: 029095e26f53 
    IMAGE: 3f03c6bfb0a2
    COMMAND: "/bin/sh -c /gremlin…"
    CREATED: 2 weeks ago
    STATUS: Up 2 weeks
    PORTS: 0.0.0.0:8182->8182/tcp
    NAME: gremlin


    When I enter inside the container, I run the following command in order to run the gremlin client:



    ./bin/gremlin.sh


    Once inside the gremlin console i run the following command to connect to the tinkerpop server:



    :remote connect tinkerpop.server conf/remote.yaml


    ==>Connected - localhost/127.0.0.1:8182 ---> answer from gremlin console



    If I run the following gremlin query:



    :> g.V().count()


    I get a number different from zero, telling me that there are a records on the graph database.



    Now on the other side I have the Gephi client on my local machine which I want it to be able to show that graph database. Or at least, make Gephi to show the the visual data from a



    graph = TinkerFactory.createModern()


    running inside the gremlin container.



    I want to do this because I need to choose a visualization tool for gremlin and titan ecosystem.



    I tried to set up Gephi client feature to connect to the virtual machine's ip and the port 8182 but it shows me the red dot telling me that is not possible. What am i missing? I am pretty sure there are a few steps missing. Thanks in advance,



    Juan Ignacio










    share|improve this question


























      0












      0








      0








      Here is the scenario I want to resolve: I have two environments: a local machine and a virtual machine hosted in Azure



      In the virtual machine I start a gremlin container which includes the gremlin client, server and connects to a cassandra graph database.



      This is the information of the container running when i run the docker container ls command:



      CONTAINER ID: 029095e26f53 
      IMAGE: 3f03c6bfb0a2
      COMMAND: "/bin/sh -c /gremlin…"
      CREATED: 2 weeks ago
      STATUS: Up 2 weeks
      PORTS: 0.0.0.0:8182->8182/tcp
      NAME: gremlin


      When I enter inside the container, I run the following command in order to run the gremlin client:



      ./bin/gremlin.sh


      Once inside the gremlin console i run the following command to connect to the tinkerpop server:



      :remote connect tinkerpop.server conf/remote.yaml


      ==>Connected - localhost/127.0.0.1:8182 ---> answer from gremlin console



      If I run the following gremlin query:



      :> g.V().count()


      I get a number different from zero, telling me that there are a records on the graph database.



      Now on the other side I have the Gephi client on my local machine which I want it to be able to show that graph database. Or at least, make Gephi to show the the visual data from a



      graph = TinkerFactory.createModern()


      running inside the gremlin container.



      I want to do this because I need to choose a visualization tool for gremlin and titan ecosystem.



      I tried to set up Gephi client feature to connect to the virtual machine's ip and the port 8182 but it shows me the red dot telling me that is not possible. What am i missing? I am pretty sure there are a few steps missing. Thanks in advance,



      Juan Ignacio










      share|improve this question
















      Here is the scenario I want to resolve: I have two environments: a local machine and a virtual machine hosted in Azure



      In the virtual machine I start a gremlin container which includes the gremlin client, server and connects to a cassandra graph database.



      This is the information of the container running when i run the docker container ls command:



      CONTAINER ID: 029095e26f53 
      IMAGE: 3f03c6bfb0a2
      COMMAND: "/bin/sh -c /gremlin…"
      CREATED: 2 weeks ago
      STATUS: Up 2 weeks
      PORTS: 0.0.0.0:8182->8182/tcp
      NAME: gremlin


      When I enter inside the container, I run the following command in order to run the gremlin client:



      ./bin/gremlin.sh


      Once inside the gremlin console i run the following command to connect to the tinkerpop server:



      :remote connect tinkerpop.server conf/remote.yaml


      ==>Connected - localhost/127.0.0.1:8182 ---> answer from gremlin console



      If I run the following gremlin query:



      :> g.V().count()


      I get a number different from zero, telling me that there are a records on the graph database.



      Now on the other side I have the Gephi client on my local machine which I want it to be able to show that graph database. Or at least, make Gephi to show the the visual data from a



      graph = TinkerFactory.createModern()


      running inside the gremlin container.



      I want to do this because I need to choose a visualization tool for gremlin and titan ecosystem.



      I tried to set up Gephi client feature to connect to the virtual machine's ip and the port 8182 but it shows me the red dot telling me that is not possible. What am i missing? I am pretty sure there are a few steps missing. Thanks in advance,



      Juan Ignacio







      docker cassandra gremlin titan gephi






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 15 '18 at 21:51









      marc_s

      581k13011211268




      581k13011211268










      asked Nov 15 '18 at 20:36









      JBeloquiJBeloqui

      112




      112






















          1 Answer
          1






          active

          oldest

          votes


















          1














          If your graph is "remote" and not in-memory in the Gremlin Console then you have to devise a way to make it available locally that way. This situation is typical for Graphs that run in Gremlin Server or are wholly remote like CosmosDB, DSE Graph or Amazon Neptune.



          They typical method to make it available locally is to use [subgraph()][1]-step to pull out just the portion of the graph that you care about and return that to the Gremlin Console. It will be returned as a TinkerGraph for graphs that support subgraph()-step (like Titan, though I assume you would use JanusGraph), so for your test which is using TinkerFactory and a tiny graph you could just do this:



          gremlin> :remote connect tinkerpop.server conf/remote-objects.yaml 


          Note the configuration of "remote-objects.yaml" because that configuration will return actual objects - an actual TinkerGraph rather than a string representation of a TinkerGraph.



          gremlin> :> TinkerFactory.createModern()


          That will create the "modern" graph remotely and return the TinkerGraph to the Gremlin Console. You can access that result



          gremlin> graph = result[0].object


          The :> stores the response from the server in a variable named "result" and that contains your TinkerGraph in a List. This is explained in the reference documentation. From there you can use that "graph" object as you would using the standard Gephi instructions.






          share|improve this answer






















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53327537%2fconnecting-a-local-gephi-instance-to-a-remote-titan-server%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            If your graph is "remote" and not in-memory in the Gremlin Console then you have to devise a way to make it available locally that way. This situation is typical for Graphs that run in Gremlin Server or are wholly remote like CosmosDB, DSE Graph or Amazon Neptune.



            They typical method to make it available locally is to use [subgraph()][1]-step to pull out just the portion of the graph that you care about and return that to the Gremlin Console. It will be returned as a TinkerGraph for graphs that support subgraph()-step (like Titan, though I assume you would use JanusGraph), so for your test which is using TinkerFactory and a tiny graph you could just do this:



            gremlin> :remote connect tinkerpop.server conf/remote-objects.yaml 


            Note the configuration of "remote-objects.yaml" because that configuration will return actual objects - an actual TinkerGraph rather than a string representation of a TinkerGraph.



            gremlin> :> TinkerFactory.createModern()


            That will create the "modern" graph remotely and return the TinkerGraph to the Gremlin Console. You can access that result



            gremlin> graph = result[0].object


            The :> stores the response from the server in a variable named "result" and that contains your TinkerGraph in a List. This is explained in the reference documentation. From there you can use that "graph" object as you would using the standard Gephi instructions.






            share|improve this answer



























              1














              If your graph is "remote" and not in-memory in the Gremlin Console then you have to devise a way to make it available locally that way. This situation is typical for Graphs that run in Gremlin Server or are wholly remote like CosmosDB, DSE Graph or Amazon Neptune.



              They typical method to make it available locally is to use [subgraph()][1]-step to pull out just the portion of the graph that you care about and return that to the Gremlin Console. It will be returned as a TinkerGraph for graphs that support subgraph()-step (like Titan, though I assume you would use JanusGraph), so for your test which is using TinkerFactory and a tiny graph you could just do this:



              gremlin> :remote connect tinkerpop.server conf/remote-objects.yaml 


              Note the configuration of "remote-objects.yaml" because that configuration will return actual objects - an actual TinkerGraph rather than a string representation of a TinkerGraph.



              gremlin> :> TinkerFactory.createModern()


              That will create the "modern" graph remotely and return the TinkerGraph to the Gremlin Console. You can access that result



              gremlin> graph = result[0].object


              The :> stores the response from the server in a variable named "result" and that contains your TinkerGraph in a List. This is explained in the reference documentation. From there you can use that "graph" object as you would using the standard Gephi instructions.






              share|improve this answer

























                1












                1








                1







                If your graph is "remote" and not in-memory in the Gremlin Console then you have to devise a way to make it available locally that way. This situation is typical for Graphs that run in Gremlin Server or are wholly remote like CosmosDB, DSE Graph or Amazon Neptune.



                They typical method to make it available locally is to use [subgraph()][1]-step to pull out just the portion of the graph that you care about and return that to the Gremlin Console. It will be returned as a TinkerGraph for graphs that support subgraph()-step (like Titan, though I assume you would use JanusGraph), so for your test which is using TinkerFactory and a tiny graph you could just do this:



                gremlin> :remote connect tinkerpop.server conf/remote-objects.yaml 


                Note the configuration of "remote-objects.yaml" because that configuration will return actual objects - an actual TinkerGraph rather than a string representation of a TinkerGraph.



                gremlin> :> TinkerFactory.createModern()


                That will create the "modern" graph remotely and return the TinkerGraph to the Gremlin Console. You can access that result



                gremlin> graph = result[0].object


                The :> stores the response from the server in a variable named "result" and that contains your TinkerGraph in a List. This is explained in the reference documentation. From there you can use that "graph" object as you would using the standard Gephi instructions.






                share|improve this answer













                If your graph is "remote" and not in-memory in the Gremlin Console then you have to devise a way to make it available locally that way. This situation is typical for Graphs that run in Gremlin Server or are wholly remote like CosmosDB, DSE Graph or Amazon Neptune.



                They typical method to make it available locally is to use [subgraph()][1]-step to pull out just the portion of the graph that you care about and return that to the Gremlin Console. It will be returned as a TinkerGraph for graphs that support subgraph()-step (like Titan, though I assume you would use JanusGraph), so for your test which is using TinkerFactory and a tiny graph you could just do this:



                gremlin> :remote connect tinkerpop.server conf/remote-objects.yaml 


                Note the configuration of "remote-objects.yaml" because that configuration will return actual objects - an actual TinkerGraph rather than a string representation of a TinkerGraph.



                gremlin> :> TinkerFactory.createModern()


                That will create the "modern" graph remotely and return the TinkerGraph to the Gremlin Console. You can access that result



                gremlin> graph = result[0].object


                The :> stores the response from the server in a variable named "result" and that contains your TinkerGraph in a List. This is explained in the reference documentation. From there you can use that "graph" object as you would using the standard Gephi instructions.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 19 '18 at 11:58









                stephen mallettestephen mallette

                26.4k33079




                26.4k33079





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53327537%2fconnecting-a-local-gephi-instance-to-a-remote-titan-server%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Top Tejano songwriter Luis Silva dead of heart attack at 64

                    政党

                    天津地下鉄3号線