{"id":15297592,"url":"https://github.com/anicolaspp/jmcli","last_synced_at":"2026-01-29T16:36:34.163Z","repository":{"id":95258003,"uuid":"247584999","full_name":"anicolaspp/jmcli","owner":"anicolaspp","description":"A remote CLI interface for MapR","archived":false,"fork":false,"pushed_at":"2020-03-17T13:37:55.000Z","size":61,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-02T04:16:41.395Z","etag":null,"topics":["bigdata","cli","java","jvm","mapr","maprc","scala"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anicolaspp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-03-16T01:39:17.000Z","updated_at":"2022-01-20T13:44:35.000Z","dependencies_parsed_at":"2023-03-13T23:16:05.480Z","dependency_job_id":null,"html_url":"https://github.com/anicolaspp/jmcli","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/anicolaspp/jmcli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicolaspp%2Fjmcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicolaspp%2Fjmcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicolaspp%2Fjmcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicolaspp%2Fjmcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anicolaspp","download_url":"https://codeload.github.com/anicolaspp/jmcli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicolaspp%2Fjmcli/sbom","scorecard":{"id":196687,"data":{"date":"2025-08-11","repo":{"name":"github.com/anicolaspp/jmcli","commit":"461099da3d1a8f71e84af64d6754c54bea9e1328"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T21:56:47.210Z","repository_id":95258003,"created_at":"2025-08-16T21:56:47.210Z","updated_at":"2025-08-16T21:56:47.210Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28880980,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["bigdata","cli","java","jvm","mapr","maprc","scala"],"created_at":"2024-09-30T19:18:26.046Z","updated_at":"2026-01-29T16:36:34.149Z","avatar_url":"https://github.com/anicolaspp.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jmcli\n[![Maven Central](https://img.shields.io/maven-central/v/com.github.anicolaspp/jmcli_2.13.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.github.anicolaspp%22%20AND%20a:%22jmcli_2.13%22)[![Build Status](https://travis-ci.org/anicolaspp/jmcli.svg?branch=master)](https://travis-ci.org/anicolaspp/jmcli)\n\nA JVM based CLI for MapR\n\nThis library offers easy access to MapR management tooling in the same way the famous `maprcli` tool does. The main idea is to present a JVM way to interact with MapR clusters. \n\n`jmcli` uses the underlaying MapR Api Server by making REST calls to different APIs. However, all these interactions are hidden behind a clean and straight forward interfaces that reassemble the powerful `maprcli`. \n\n## The MapR CLI Client\n\nIn order to start communicating with the MapR cluster, we must first create a `MapRCLIClient`. The following code shows how this can be done. \n\n```scala\n val client = MapRCLI\n      .withHost(\"https://172.20.60.107:8443\")\n      .withAuth(\"user\", \"mypass\")\n```\n\nNotice that we must pass the URL where the MapR Api Server is running and the authentication pieces if the cluster if secured.  \nOnce we have a client, then we can start interacting with the MapR cluster.\n\n## Managing Volumes\n\nWe can use `jmcli` to create MapR Volumes in the following way. \n\n- Create volume only with a given `name`.\n\n```scala      \nval volumeCreate = client\n      .volume()\n      .create(\"npereztest\")\n\nval response = volumeCreate.run()      \n```\n\n- Create volume with `name` and some other args. \n\n```scala\nval volumeCreate = client\n      .volume()\n      .create(\"nperez\", (\"path\", \"/user/nperez\"), (\"advisoryquota\", \"500G\"), (\"topology\", \"/data/ssd\"))\n\nval response = volumeCreate.run()   \n```\n\n- List existing volumes.\n\n```scala\nclient.volume().list().run()\n```\n\nNotice that each `maprcli` command can be accessed using `jmcli` using the same fluent API. \n\n- Mounting and unmounting a volume\n\n```scala\nval mount = client.volume().mount(\"nperez\", \"/user/nperez\")\n\nval unmount = client.volume().unmount(\"nperez\")\n\nmount.run()\nunmount.run()\n```              \n\nIn the current version of `jmcli` we are providing access to only some of the possible APIs. We are going to be adding more as the library evolves. \n\nThe following is the available `volume` APIs.\n\n- `volume list`\n- `volume create`\n- `volume mount`\n- `volume unmount`\n- `volume info`\n- `volume snapshot list`\n- `volume snapshot create`\n- `volume snapshot remove`\n- `volume modify`\n- `volume remove`\n- `volume rename`\n- `volume showmounts`\n\n## Managing Tables\n\nTables can also be through by `jmcli`.\n\n- Creating tables.\n\n```scala\n\nval createTable = client\n  .table()\n  .create(\"/user/mytable\")\n\ncreateTable.run()\n```\n\n- Listing column families on table.\n\n```scala\nval cfQuery = client\n .table()\n .cf()\n .list(\"/user/mytable\")\n \ncdQuery.run()\n```\nThe `table` API support the following commands\n\n- `table create`\n- `table cf list`\n- `table delete`\n- `table edit`\n- `table info`\n- `table region list`\n- `table region split`\n\nWe will continue adding more soon. \n\n## Managing Streams\n\nStream can also be managed in the following way. \n\n```scala\nclient.stream().create(\"/mystream\")\n```\nAgain, the same fluent API use by `maprcli` can be used here. \n\nThe following is the list of available entry points. \n\n- `stream assign list`\n- `stream create`\n- `stream cursor list`\n- `stream cursor delete`\n- `stream edit`\n- `stream delete`\n- `stream info`\n- `stream topic create`\n- `stream topic delete`\n- `stream topic info`\n- `stream topic list`\n\nWe will continue adding more soon. \n\n## Sync and Async Commands \n\nAll APIs presented in this library run `synchronously`. However, we can run the `asynchronously` by importing the `com.github.anicolasp.mapr.cli.runnable.Async`. The following snippet shows an example. \n\n```scala\nimport com.github.anicolasp.mapr.cli.runnable.Async._\n\nclient.volume().list().runAsync().foreach(list =\u003e doSomeThing(list))\n```\n\n## Java \n\nWhen using java, this libray uses the exact same API. The following shows a simple example. \n\n```java \npackage com.github.anicolasp.test;\n\nimport com.github.anicolasp.mapr.cli.client.Client;\nimport com.github.anicolasp.mapr.cli.client.MapRCLI;\nimport com.github.anicolasp.mapr.cli.runnable.RunnableQuery;\n\npublic class App {\n    public static void main(String[] args) {\n        Client client = MapRCLI\n                .withHost(\"https://\u003capi server ip\u003e:8443\")\n                .withAuth(\"user\", \"pass\");\n\n        RunnableQuery query = client.volume().list();\n\n       query.run();\n    }\n}\n```\n\n## Addition APIs Configurations\n\nThe entry points that `jmcli` offers require only the arguments that the `mapcli` requires. Any addition parameter can also be passed, but we do not force it. \n\nThe following example shows that we can create a volume and provide the requiered paramenters but we can also add more arguments that can be passed to the corresponding API call. \n\n```scala\nclient.volume().create(\"myvol\").run()          // creates volume with name `myvol`\n\nclient\n .volume()\n .create(\"myvol\", (\"path\", \"/user/mounthere\"))\n .run()                                       // creates volume with name `myvol` and mounts it at `/user/mounthere`\n```\n\nAny optional parameter is passed in the form of tuples `(String, String)` with the name of the parameter and the value we want to pass in. \n\nAll possible arguments are fully described in the [MapR Documentation](https://mapr.com/docs/61/ReferenceGuide/maprcli-REST-API-Syntax.html).\n\n## Linking\n\nYou can get this library from Maven Central using the following snippet.\n\n```xml\n\u003cdependency\u003e\n \u003cgroupId\u003ecom.github.anicolaspp\u003c/groupId\u003e\n \u003cartifactId\u003ejmcli_2.13\u003c/artifactId\u003e\n \u003cversion\u003ex.y.z\u003c/version\u003e\n\u003c/dependency\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanicolaspp%2Fjmcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanicolaspp%2Fjmcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanicolaspp%2Fjmcli/lists"}