Elsipe connects to Hbase
When programming with the hbase API, importing many packages may cause errors
Since it is too tedious to add dependencies manually, we finally chose to create a new maven project, which makes it possible to add the dependencies we need automatically.
Create a new maven project
I’m using the latest version of eclipse 2021-12, so I skipped this step.
Create a new project
Modify pom.xml
In the new maven project, find the pom.xml and modify it
Add the following, and make sure that the version is consistent with your own hbase version.
Check your own hbase version with “hbase version” command
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-client</artifactId>
<version>2.4.10</version>
</dependency>
Wait for automatic compilation to complete
The imported packages will not report errors
Read More:
- How to Solve Assert error (IDEA Package Imported)
- [Solved] Hbase Error: ERROR: KeeperErrorCode = NoNode for /hbase/master
- [Solved] JAVA connect HBase program is stuck and does not report an error
- How to Solve java server error (java application Run Normally)
- [Solved] Hbase-shell 2.x Error: Unhandled Java exception: java.lang.IncompatibleClassChangeError: Found class jline.Terminal…
- How to Solve Error: Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.
- How to Solve Flynk Task Java verifyerror 209 error
- How to Solve ERROR: Java 1.7 or later is required to run Apache Drill
- How to Solve Java Runtime (class file version 53.0)ERROR
- Springboot Project: How to Introduces Local Jar Package
- How to Solve JAVA Error: error: A JNI error has occureed
- How to Solve Java Error \ufeff
- How to Solve Error:java.io.InvalidClassException
- How to Solve IntelliJ IDEA Error: Cannot determine path to ‘tools.jar‘ library for 17 (C:\Program Files\Java\jd…
- Caused by: java.lang.IllegalStateException (How to Fix)
- JAVA: How to Solve Foreach Loop Remove/add Element Error
- IDEA Import Servlet Package Error [How to Solve]
- [Solved] JAVA Project Import jstl Error: java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator
- [Solved] Java Error: Must declare a named package because this compilation unit is associated to the named module
- How to Solve Log4j 2.5 upgrade to 2.15 error