I am writting a small Java application to connect to a HBase node. The ZooKeeper connection is successful, but later, I systematically get the following error (I have changed my IP address of course):
org.apache.hadoop.hbase.MasterNotRunningException 12.34.56.78:60000
Does anyone know what is happening and how to solve this issue?
Thanks!
Ok, solved that issue. Before someone commits suicide... -> the problem is caused by a mismatch between the HBase.jar versions available in the central maven repository (currently 0.90.xx) and those used by Cloudera's CDH3 installation package (0.89.xx).
The main issue is that Cloudera compiles its own Hbase.jar and these are not available from the central repository. But, Cloudera makes them available from:
<repositories>
<repository>
<id>cloudera</id>
<url>https://repository.cloudera.com/content/groups/public/</url>
</repository>
</repositories>
To find the HBase version you need for your application, open http://your.node.ip.address:60010. For CDH3Beta3, it is 0.89.20100924-28. Then, add it in your pom.xml as a dependency:
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase</artifactId>
<version>0.89.20100924-28</version>
</dependency>
Et voila!
Related
Fail to use exasol repository, the link https://maven.exasol.com/artifactory/exasol-releases redirects to the exasol.com new homepage.
This fails to get the dependencies I need:
<repository>
<id>exasol-maven-repo</id>
<name>Exasol Repository</name>
<url>https://maven.exasol.com/artifactory/exasol-releases</url>;
</repository>
Tried to open the link with curl and got nothing.
curl -O https://maven.exasol.com/artifactory/exasol-releases/org/scala-lang/scala-compiler/2.12.0/scala-compiler-2.12.0.pom
enter image description here
maven.exasol.com is discontinued. If you want to get e.g. the jdbc driver, you can use maven central now. See JDBC documentation.
<dependencies>
<dependency>
<groupId>com.exasol</groupId>
<artifactId>exasol-jdbc</artifactId>
<version>7.1.0</version>
</dependency>
</dependencies>
It looks like you are interested in some scala packages. import-export-udf-common-scala is also available on maven central now: https://central.sonatype.dev/artifact/com.exasol/import-export-udf-common-scala_2.13/1.0.0
I have added below 2 dependencies in POM file for running a Sikuli program and getting the error
"loadlib: libVisionProxy.dylib not available in /Users/priya/Library/Application Support/Sikulix/SikulixLibs_201510051707"
what should I do to fix this issue in my MAC system.
**Dependency added.**
'<dependency>
<groupId>org.sikuli</groupId>
<artifactId>sikuli-api</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>com.sikulix</groupId>
<artifactId>sikulixapi</artifactId>
<version>2.0.4</version>
</dependency>'
In Maven dependency I can see the Jar added are
Sikuli-api 1.2.0 ,
Sikuli-core 1.2.2 ,
sikulixapi 2.0.4.,
sikulix2tigervnc 1.1.4
sikuli-api and sikulixapi are two different packages, that should not be used together. decide for one of them.
For SikuliX: Delete the folder /Users/priya/Library/Application Support/Sikulix/ and Strat all over again.
It seems that I got the wires crossed & ask you to point me the right direction.
I have a problem with the Eclipse IDE for Enterprise Java Developers (version: 2019-06 (4.12.0), build id: 20190614-1200). There is a code part where I get the error message MysqlDataSource cannot be resolved to a type. Searching the Web, I found out that this class is included in the download of mysql-connector-java JAR 8.0.14 with all dependencies. I added it over the 'Fix project setup…', where I added the JAR file to the libraries of the Java Build Path.
Unfortunately, the error message does not vanish. Can you see what I am doing wrong?
Edit 1:
With the hint from another Website, I found out that the hibernate JAR included was the source files JAR. So, I corrected it the hibernate-entitymanager JAR, clicked "Clean…" under "Project", but to no avail: the EntityManager is still unlocatable. (Well, after several tries, the first error message to resolve is no more with MySQL.)
As I learned from somebody on another Web site, the following lines have to be added to the pom.xml file:
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.1-api</artifactId>
<version>1.0.2.Final</version>
</dependency>
or
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>javax.persistence-api</artifactId>
<version>2.2</version>
</dependency>
I'm trying to run this sample "GroupDocs Java Viewer - Sample Dropwizard"
download it from here
it need these jar files:
aspose-email-5.3.0.0.jar
aspose-imaging-2.9.0.jar
aspose-words-15.6.0.jar
aspose-slides-15.5.1.jar
I can not find them here maven.aspose.com
I found jars with jdk16 but still have the same error:
Failed to execute goal on project groupdocs-viewer-dropwizard: Could
not resolve dependencies for project
com.groupdocs.samples:groupdocs-viewer-dropwizard:jar:2.12.0: The
following artifacts could not be resolved:
com.aspose:aspose-email:jar:5.3.0.0,
com.aspose:aspose-imaging:jar:2.9.0,
com.aspose:aspose-slides:jar:15.5.1,
com.aspose:aspose-words:jar:15.6.0: Failure to find
com.aspose:aspose-email:jar:5.3.0.0 in
http://repository.springsource.com/maven/bundles/external was cached
in the local repository, resolution will not be reattempted until the
update interval of com.springsource.repository.bundles.external has
elapsed or updates are forced -> [Help 1]
You can try to use this maven repositories
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>libs-release</name>
<url>http://maven.aspose.com/artifactory/libs-release</url>
</repository>
<repository>
<snapshots />
<id>snapshots</id>
<name>libs-snapshot</name>
<url>http://maven.aspose.com/artifactory/libs-snapshot</url>
</repository>
Also you can use Aspose maven page for find any library and get correct code to connect this library http://maven.aspose.com/repository/webapp/home.html
For example Aspose.Email you can connect to your project with this code
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-email</artifactId>
<version>5.3.0</version>
<classifier>jdk16</classifier>
</dependency>
I am trying to use com.google.maps in my OSGi bundle. I've added the dependency like this:
<dependency>
<groupId>com.google.maps</groupId>
<artifactId>google-maps-services</artifactId>
<version>0.1.7</version>
</dependency>
However, when I try to deploy this bundle to AEM, I get an error:
Unable to resolve 392.38: missing requirement [392.38] osgi.wiring.package; (&(osgi.wiring.package=com.google.gson)(version>=2.3.0)(!(version>=3.0.0))))
How can I resolve this?
go to maven central: http://search.maven.org
Advanced search
Write to the By Classname section: com.google.gson
In the list of results, find the ones that might be good for you
Download the jars and check the manifest header if the required package is exported
If you do that, you will find the following maven dependency:
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.3.1</version>
</dependency>
Alternatively, you can use JPM website for the search as it indexes all OSGi related MANIFEST headers and it mirrors the whole maven central repo. After you find the artifact that is necessary for you, there is a good chance that it is from maven central originally (so you do not have to set alternate repositories in your maven project). You can check the origin of the bundle in the details page.