Skip to content

Commit

Permalink
dbshell example
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalii Cherkashyn authored Oct 16, 2020
1 parent 6f9174b commit a4840c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mapr.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,12 @@ desc /full/path/to/maprdb/table
[manipulate with MapRDB via DbShell](https://docs.datafabric.hpe.com/61/ReferenceGuide/HBaseShellforMapR-DB.html)
* [find by id](https://mapr.com/docs/61/ReferenceGuide/dbshell-find-findbyid.html)
* [query data](https://docs.datafabric.hpe.com/61/ReferenceGuide/dbshell-find-query.html)
* [query with dbshell](https://docs.datafabric.hpe.com/60/MapR-DB/JSON_DB/QueryWithDBShell.html)
```sh
mapr dbshell
find /mapr/prod/vantage/orchestration/tables/metadata --q {"$select":["mdf4Path.name","mdf4Path.fullPath"],"$limit":2}
find /mapr/prod/vantage/orchestration/tables/metadata --fields mdf4Path.name,mdf4Path.fullPath --limit 2
find /mapr/prod/vantage/orchestration/tables/metadata --fields mdf4Path.name,mdf4Path.fullPath --limit 2 --offset 2 --where {"$eq":{"session_id":"9aaa13577-ad80"}} --orderby created_time
find /mapr/prod/vantage/orchestration/tables/metadata --c {"$eq":{"session_id":"9aaa13577-ad80"}}
```
example of inline execution
```sh
Expand Down

0 comments on commit a4840c4

Please sign in to comment.