{"id":17638884,"url":"https://github.com/nongvantinh/janusgraph-with-dotnet","last_synced_at":"2026-05-04T15:36:10.188Z","repository":{"id":258261028,"uuid":"873713401","full_name":"nongvantinh/janusgraph-with-dotnet","owner":"nongvantinh","description":"This \"Hello World\" project is meant to demonstrate how to start JanusGraph with a Cassandra backend and Elasticsearch in a Docker environment, then connect to it using the C# GremlinClient.","archived":false,"fork":false,"pushed_at":"2024-11-03T17:50:42.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T05:38:19.721Z","etag":null,"topics":["cassandra","dotnet","elasticsearch","janusgraph"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nongvantinh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-16T15:38:24.000Z","updated_at":"2024-11-03T17:50:45.000Z","dependencies_parsed_at":"2025-02-05T06:31:59.151Z","dependency_job_id":"69eb15d4-f9c8-43ab-8270-e7536b291bfb","html_url":"https://github.com/nongvantinh/janusgraph-with-dotnet","commit_stats":null,"previous_names":["nongvantinh/janusgraph-with-dotnet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nongvantinh/janusgraph-with-dotnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nongvantinh%2Fjanusgraph-with-dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nongvantinh%2Fjanusgraph-with-dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nongvantinh%2Fjanusgraph-with-dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nongvantinh%2Fjanusgraph-with-dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nongvantinh","download_url":"https://codeload.github.com/nongvantinh/janusgraph-with-dotnet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nongvantinh%2Fjanusgraph-with-dotnet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32613672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cassandra","dotnet","elasticsearch","janusgraph"],"created_at":"2024-10-23T04:05:27.325Z","updated_at":"2026-05-04T15:36:10.157Z","avatar_url":"https://github.com/nongvantinh.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"For docker compose example, please see branch 1.0:\n\n---\n\n# Testing Interaction Between .NET and JanusGraph\n\nThis \"Hello World\" project demonstrates how to set up JanusGraph with a Cassandra backend and Elasticsearch in a Kubernetes environment, then connect to it using the C# GremlinClient.\n\n## Prerequisites\n- **Minikube**: Installed and running.\n- **Kubernetes CLI (kubectl)**: Installed and configured for local Minikube usage.\n- **.NET SDK**: Installed for running the C# application.\n\n## Running the Setup\n\n1. **Start Minikube and Enable the Tunnel**\n   Open a terminal, then start Minikube and set up the tunnel to allow access to your Kubernetes services.\n\n   ```bash\n   minikube start\n   minikube tunnel\n   ```\n\n   \u003e **Note**: The tunnel command must be kept running in a separate terminal while you are working with the services.\n\n\n2. **Deploy Kubernets resources**\n\n   ```bash\n   ./database.sh  --setup --update-host\n   ```\n   Run the following command to check the ingress-nginx Namespace and ensure the controller Pod is running.\n\n   ```bash\n   kubectl get pods -n ingress-nginx -l app.kubernetes.io/name=ingress-nginx\n   ```\n   ```bash\n   NAME                                       READY   STATUS      RESTARTS   AGE\n   ingress-nginx-admission-create-78jjl       0/1     Completed   0          84s\n   ingress-nginx-admission-patch-cc9pr        0/1     Completed   0          84s\n   ingress-nginx-controller-79fcc99b4-qn69k   1/1     Running     0          84s\n   ```\n   \n   Don’t worry about the Completed Pods. These were short-lived Pods that initialized the environment.\n   Once the controller Pod is running, you have an NGINX Ingress controller and are ready to create some Ingress objects.\n\n3. **Verify Pods are Running**\n   After deploying, check that all pods are up and running:\n\n   ```bash\n   kubectl get pods\n   ```\n\n   You should see output similar to the following:\n\n   ```\n   NAME                          READY   STATUS    RESTARTS   AGE\n   cassandra-0                   1/1     Running   0          13m\n   elasticsearch-0               1/1     Running   0          13m\n   janusgraph-7f84d455cd-hrtxp   1/1     Running   0          13m\n   ```\n\n   Ensure each pod status is \"Running.\" If not, refer to the troubleshooting section below.\n\n5. **Run the .NET Application**\n   Navigate to the `MyJanusGraphApp` project directory and build and run the C# application:\n\n   ```bash\n   cd MyJanusGraphApp\n   dotnet build\n   dotnet run\n   ```\n\n   If successful, the terminal will display a sample response from JanusGraph.\n\n6. **Clean Up**\n   To delete the resources when finished, run:\n\n   ```bash\n   ./database.sh  --cleanup\n   ```\n\n## Troubleshooting\n\nIf you encounter issues during setup, here are some common solutions:\n\n### 1. Pods in \"CrashLoopBackOff\" or \"OOMKilled\" Status\n   If any pods (such as Cassandra or Elasticsearch) fail to start and show \"CrashLoopBackOff\" or \"OOMKilled\" statuses, it is likely due to insufficient memory.\n\n   **Solution**:\n   - Edit the `janusgraph-cassandra-elasticsearch.yaml` file to reduce the memory requirements for Cassandra and Elasticsearch:\n     ```yaml\n     env:\n       - name: MAX_HEAP_SIZE\n         value: \"512M\"\n       - name: HEAP_NEWSIZE\n         value: \"100M\"\n     ```\n\n   - For Elasticsearch, set:\n     ```yaml\n     env:\n       - name: ES_JAVA_OPTS\n         value: \"-Xms512m -Xmx512m\"\n     ```\n\n   - Reapply the changes:\n     ```bash\n     kubectl apply -f janusgraph-cassandra-elasticsearch.yaml\n     ```\n\n### 2. Unable to Connect to Services\n   If the application is unable to connect to JanusGraph or other services:\n   - Ensure all services are port-forwarded correctly.\n   - Verify that each service is accessible by using:\n     ```bash\n     curl http://localhost:8182  # JanusGraph\n     curl http://localhost:9200  # Elasticsearch\n     ```\n\n### 3. Checking Pod Logs\n   For further troubleshooting, view the logs of any failing pod to diagnose issues:\n\n   ```bash\n   kubectl logs \u003cpod-name\u003e\n   ```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnongvantinh%2Fjanusgraph-with-dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnongvantinh%2Fjanusgraph-with-dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnongvantinh%2Fjanusgraph-with-dotnet/lists"}