Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connect to local JanusGraph 0.3.2 #162

Open
MayJV opened this issue Nov 6, 2019 · 7 comments
Open

connect to local JanusGraph 0.3.2 #162

MayJV opened this issue Nov 6, 2019 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@MayJV
Copy link

MayJV commented Nov 6, 2019

Hey! I'm trying to connect my janusgraph DB as a datasource, but this did not work.

version: '2'
services:
  arcadeanalytics-app:
    image: arcadeanalytics/arcadeanalytics:1.0.3
    environment:
      - SPRING_PROFILES_ACTIVE=prod,swagger
      - SPRING_DATASOURCE_URL=jdbc:postgresql://arcadeanalytics-postgresql:5432/arcadeanalytics
      - SPRING_DATA_ELASTICSEARCH_CLUSTER_NODES=arcadeanalytics-elasticsearch:9300
      - SPRING_EMAIL_HOST=smtp.gmail.com
      - SPRING_EMAIL_PORT=587
      - SPRING_EMAIL_USERNAME=
      - SPRING_EMAIL_PASSWORD=
      - JHIPSTER_SLEEP=10 # gives time for the database to boot before the application
      - JHIPSTER_MAIL_FROM=
      - JHIPSTER_MAIL_BASE-URL=
      - APPLICATION_PATH=/arcade
      - APPLICATION_MEDIAPATH=/content/media/
      - APPLICATION_STORAGE_PATH=/arcade/storage
      - APPLICATION_CONNECTORSPATH=/arcade-connectors
      - JAVA_OPTS=-DSSH_PRIV_KEY=/arcade/.ssh/id_rsa -DSSH_PUB_KEY=/arcade/.ssh/id_rsa.pub
    ports:
      - 8098:8080
    volumes:
      - ~/.arcade/:/arcade/
  arcadeanalytics-postgresql:
    image: postgres:9
    ports:
      - 5452:5432
    volumes:
      - ~/.arcade/arcadeanalytics/postgresql/:/var/lib/postgresql/data/
    environment:
      - POSTGRES_USER=arcadeanalytics
      - POSTGRES_PASSWORD=
  arcadeanalytics-elasticsearch:
    image: elasticsearch:2.4.6
    volumes:
      - ~/.arcade/arcadeanalytics/elasticsearch/:/usr/share/elasticsearch/data/
    environment:
      - "ES_JAVA_OPTS=-Xms4g -Xmx4g"
    ports:
      - 19200:9200
      - 19300:9300
  arcadeanalytics-janusgraph:
    extends:
      file: janusgraph.yml
      service: arcadeanalytics-janusgraph


Any suggestions? Thanks for the help!

@MayJV
Copy link
Author

MayJV commented Nov 6, 2019

image

@arcade-player
Copy link
Contributor

is the docker container of janus running?
what's the output of docker ps?

@MayJV
Copy link
Author

MayJV commented Nov 6, 2019

yes , janus is running.
image

@MayJV
Copy link
Author

MayJV commented Nov 6, 2019

is the docker container of janus running?
what's the output of docker ps

janus is ok.
can you help me check the config is true ? Thanks

@arcade-player arcade-player self-assigned this Nov 11, 2019
@arcade-player arcade-player added the bug Something isn't working label Nov 11, 2019
@arcade-player
Copy link
Contributor

Our mistake. The JanusGraph docker image doesn't have any data inside.
We use that image in our tests loading one of the dataset provided with janus distributuon:

https://github.com/ArcadeAnalytics/arcade-connectors/blob/c95890b391fdfa9b9d4238864b1adf5b8ab5d727/gremlin/src/test/kotlin/com/arcadeanalytics/provider/gremlin/janusgraph/JanusgraphTestHelper.kt#L58

We are working toimprove our docker image with dataset preloaded.

@MayJV
Copy link
Author

MayJV commented Nov 11, 2019

Oh,I've solved the problem. because of my janus config . scripts/empty-sample.groovy is not g

Arcade Analytics is a good tool , Thank you for your contribution. 👍

@theZiki
Copy link

theZiki commented Dec 3, 2019

Oh,I've solved the problem. because of my janus config . scripts/empty-sample.groovy is not g

Arcade Analytics is a good tool , Thank you for your contribution. 👍

Hi what was your problem? I also have the same problem, but I can't connect to my locally runing JanusGrapsh server, not as docker image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants