简体   繁体   中英

How to connect to MaprDB (Hbase) from Java program without mapr client

I know how to talk to MaprDB from Java program with Mapr client installed. But, want to know how can I connect to MaprDB without Mapr client installed? Is there a pure Java API (ie without needing to install any other software, just using some jars) for my requirement?

Please note - these are binary tables (and not JSON tables).

There is an approach that you can use.

The so-called DAG (data access gateway) is a gRPC-based gateway that you can use. There is a pure Java client for this. Performance impact is significant, but not massive and the API is the same OJAI API as when you access the database using the thick client.

See the following links for more information:

https://mapr.com/docs/61/MapROverview/MapRDataAccessGateway.html https://mapr.com/docs/61/AdvancedInstallation/InstallingDataAccessGateway.html https://mapr.com/docs/61/AdministratorGuide/AdminMapRDataAccessGateway.html https://mapr.com/docs/61/EcosystemRN/MapR_Data_Access_Gateway_2.0_release_notes.html

Depends upon your definition of "without needing to install any other software".

You don't need to install the mapr-client package to access the MapR Cluster from a Java application - the MapR jars can be installed to your preferred location on the classpath or even shaded into an "uber" jar.

But you do need to be running on a supported client platform (Linux x86-64, MacOS x86-64, Windows i386 or x86-64), because the maprfs jar does contain JNI libraries packaged within it that it unpacks at initialisation time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM