GithubHelp home page GithubHelp logo

classicvalues / datawave-accumulo-service Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nationalsecurityagency/datawave-accumulo-service

0.0 1.0 0.0 120 KB

License: Apache License 2.0

Dockerfile 0.16% Java 99.84%

datawave-accumulo-service's Introduction

Accumulo Service

Apache License Build Status

The Accumulo service is an administrator utility that provides a rest API which exposes a small subset of Accumulo's table and security operations to external clients. Users must possess the Administrator role to access the service's endpoints.

Root Context

https://host:port/accumulo/v1/


Admin API

Method Operation Description Request Body
POST admin/createTable/{tableName} Creates the given table N/A
POST admin/flushTable/{tableName} Initiates minor compaction on the given table N/A
POST admin/grantSystemPermission/{userName}/{permission} Grants user the specified system permission N/A
POST admin/revokeSystemPermission/{userName}/{permission} Revokes system permission from user N/A
POST admin/grantTablePermission/{userName}/{tableName}/{permission} Grants user the specified table permission N/A
POST admin/revokeTablePermission/{userName}/{tableName}/{permission} Revokes table permission from user N/A
POST admin/setTableProperty/{tableName}/{propertyName}/{propertyValue} Sets the specified table property N/A
POST admin/removeTableProperty/{tableName}/{propertyName} Removes the specified table property N/A
GET admin/listTables Lists all Accumulo tables N/A
GET admin/listUsers Lists all Accumulo users N/A
GET admin/listUserAuthorizations/{userName} Lists the user's authorizations N/A
GET admin/listUserPermissions/{userName} Lists the user's permissions N/A
PUT admin/update Processes the specified table mutations UpdateRequest
POST admin/validateVisibilities Validates one or more visibility expressions visibility form param

Lookup API

Enables simple batch scans on a given table/row to retrieve results, and also supports query auditing (i.e., when audit-client.enabled: true, which is the default)

Method Operation Description Request Body
GET/POST lookup/{tableName}/{row} Scans the given row and returns scan results Optional form params
  • Several optional parameters can be expressed via query string (GET) or form param (POST)

  • See LookupController class for details

Stats API

May be used as a proxy for the Accumulo Monitor as a convenience, in order to expose the monitor's raw stats response to external clients

Method Operation Description Request Body
GET stats Retrieves the raw stats response from the Accumulo Monitor N/A

Getting Started

  1. First, refer to services/README for launching the config, authorization, and audit services.

    • The authorization service should be launched with the mock profile to leverage test PKI materials and associated user configuration (see authorization-mock.yml).
  2. Launch this service as follows, with the remoteauth profile to enable client cert authentication, and with the mock profile to utilize an in-memory Accumulo instance containing some test data...

    java -jar service/target/accumulo-service*-exec.jar --spring.profiles.active=dev,remoteauth,mock
    
  3. Ensure that the testUser.p12 (password: ChangeIt) cert is imported into your browser, and then visit any of the following:

    Note: The stats API is not functional when using the mock profile, as it requires that ZooKeeper and Accumulo Monitor instances are running

    See sample_configuration/accumulo-dev.yml and configure as desired

datawave-accumulo-service's People

Contributors

brianloss avatar ivakegg avatar keith-ratcliffe avatar jwomeara avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.