You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by richard t <e0...@yahoo.com.INVALID> on 2021/01/29 13:54:31 UTC

problem building hbase 3.0.0

hi,
my ultimate goal is to have a basic CRUD client to hbase using the java api.
in trying to get there, I downloaded the source for hbase 3.0.0 because of the client source and wanted to build this client and test it against my hbase instance that is running.
the hbase source is not building due to this error:BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18:03 min
[INFO] Finished at: 2021-01-28T11:22:12-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M4:test (default-test) on project hbase-http: There are test failures.
[ERROR]
[ERROR] Please refer to /home/rtkatch/Downloads/hbase-src/hbase-master/hbase-http/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
I have tried to run with -DskipTests but this error seems to be persistent.I am using maven 3.6.3. compiling with openjdk 1.8
I had found some information where one can set up configuration in the pom to skip tests, so I will try to set that up.
Any information on this would be much appreciated.
One other comment, I just don't understand why one has to build everything just to get a test client... there really should be a bundle that contains only the stuff needed to connect to the hbase. I noticed that there were different archetypes but am not sure how to use them other than copying them to my dev directory for use. 
thanks!


Re: problem building hbase 3.0.0

Posted by Sean Busbey <bu...@apache.org>.
A few things:

1) it sounds like you do not need to work on the under development hbase
codebase, so I'd recommend focusing on using an hbase 2.x release
(preferably 2.3.4 since that's what you mention running)

If something comes up later where you do need the under development
codebase, please bring that up on dev@hbase (folks not on that mailing list
should only use the things the project has published to downstream)

2) for HBase 2.3.4 you should be able to rely on released artifacts.

Our download page has links for both the source and already built
convenience artifacts for HBase 2.3.4

http://hbase.apache.org/downloads.html

You can find the client source files there.

3) if your application uses maven then you should add a dependency at
compile scope for hbase-shaded-client 2.3.4 and at test scope for
hbase-shaded-testing-util 2.3.4 if you have unit tests that need a mini
hbase.


If that doesn't work then please give us specific failure conditions and
details so we can make sure the easy/expected path to use is functional.


On Fri, Jan 29, 2021, 15:43 richard t <e0...@yahoo.com.invalid> wrote:

>  Hi Josh, first of all thanks for any help you can provide... I do
> appreciate it.
> `-DskipTests` is the standard Maven "ism" to skip tests. Your output
> appears to indicate that you were running tests, so perhaps your
> invocation was incorrect? You've not provided enough information for us
> to know why exactly your build failed.
> well, in the pom file, it does say that you should use the invocation "mvn
> package" to build.as far as the -DskipTests, I did use that BUT there
> were some tests still being run in the actual build, my assumption is that
> there were some poms that might have overridden this but I would have to
> look...
> it does turn out that the specific one that I had the problem hbase-http,
> I did set the configuration to skipTests and that did work...
>
> You do not have to build HBase from source in order to build an
> application. Every official release which this project creates has
> artifacts which are published in Maven Central for you to consume directly.
> ok, except that I when building just the client source code I couldn't
> find this version (3.0.0-SNAPSHOT) for a dependencywhich I did open a jira
> ticket on that...
> another guy named sean suggested I need to build from the top down in
> order for some of those dependencies to properly builton the apache web
> site, it does have a link that seems to point to that dependency but
> unfortunately in going to the link it returned a 404
>
> One final note: you are building from the master branch (3.0.0-SNAPSHOT)
> which is still under development. I'd suggest that you add a dependency
> in your application to the Maven dependency
> org.apache.hbase:hbase-client for the version of HBase that you are
> actually running.
> I have an actual running hbase (2.3.4) that does run but (and this is an
> important but)... I can't seem to get a client to build with the
> hbase-clientalone, and I couldn't seem to find the client source code to
> use to test out the java api / connect to my version of hbase...any help
> you can provide on that would be the real solution...
>
> If you do not yet have a HBase which is already running, you can
> download a pre-built release from
> https://hbase.apache.org/downloads.html. Be sure to grab a version of
> Hadoop which is compatible with the HBase release which you are running.
> Thanks again for the response!Richard    On Friday, January 29, 2021,
> 04:19:42 PM EST, Josh Elser <el...@apache.org> wrote:
>
>  `-DskipTests` is the standard Maven "ism" to skip tests. Your output
> appears to indicate that you were running tests, so perhaps your
> invocation was incorrect? You've not provided enough information for us
> to know why exactly your build failed.
>
> You do not have to build HBase from source in order to build an
> application. Every official release which this project creates has
> artifacts which are published in Maven Central for you to consume directly.
>
> One final note: you are building from the master branch (3.0.0-SNAPSHOT)
> which is still under development. I'd suggest that you add a dependency
> in your application to the Maven dependency
> org.apache.hbase:hbase-client for the version of HBase that you are
> actually running.
>
> If you do not yet have a HBase which is already running, you can
> download a pre-built release from
> https://hbase.apache.org/downloads.html. Be sure to grab a version of
> Hadoop which is compatible with the HBase release which you are running.
>
> On 1/29/21 8:54 AM, richard t wrote:
> > hi,
> > my ultimate goal is to have a basic CRUD client to hbase using the java
> api.
> > in trying to get there, I downloaded the source for hbase 3.0.0 because
> of the client source and wanted to build this client and test it against my
> hbase instance that is running.
> > the hbase source is not building due to this error:BUILD FAILURE
> >
> [INFO] ------------------------------------------------------------------------
> > [INFO] Total time: 18:03 min
> > [INFO] Finished at: 2021-01-28T11:22:12-05:00
> >
> [INFO] ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M4:test (default-test)
> on project hbase-http: There are test failures.
> > [ERROR]
> > [ERROR] Please refer to
> /home/rtkatch/Downloads/hbase-src/hbase-master/hbase-http/target/surefire-reports
> for the individual test results.
> > [ERROR] Please refer to dump files (if any
> exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
> > I have tried to run with -DskipTests but this error seems to be
> persistent.I am using maven 3.6.3. compiling with openjdk 1.8
> > I had found some information where one can set up configuration in the
> pom to skip tests, so I will try to set that up.
> > Any information on this would be much appreciated.
> > One other comment, I just don't understand why one has to build
> everything just to get a test client... there really should be a bundle
> that contains only the stuff needed to connect to the hbase. I noticed that
> there were different archetypes but am not sure how to use them other than
> copying them to my dev directory for use.
> > thanks!
> >
> >
>

Re: problem building hbase 3.0.0

Posted by richard t <e0...@yahoo.com.INVALID>.
 Hi Josh, first of all thanks for any help you can provide... I do appreciate it.
`-DskipTests` is the standard Maven "ism" to skip tests. Your output
appears to indicate that you were running tests, so perhaps your
invocation was incorrect? You've not provided enough information for us
to know why exactly your build failed.
well, in the pom file, it does say that you should use the invocation "mvn package" to build.as far as the -DskipTests, I did use that BUT there were some tests still being run in the actual build, my assumption is that there were some poms that might have overridden this but I would have to look...
it does turn out that the specific one that I had the problem hbase-http, I did set the configuration to skipTests and that did work... 

You do not have to build HBase from source in order to build an
application. Every official release which this project creates has
artifacts which are published in Maven Central for you to consume directly.
ok, except that I when building just the client source code I couldn't find this version (3.0.0-SNAPSHOT) for a dependencywhich I did open a jira ticket on that... 
another guy named sean suggested I need to build from the top down in order for some of those dependencies to properly builton the apache web site, it does have a link that seems to point to that dependency but unfortunately in going to the link it returned a 404

One final note: you are building from the master branch (3.0.0-SNAPSHOT)
which is still under development. I'd suggest that you add a dependency
in your application to the Maven dependency
org.apache.hbase:hbase-client for the version of HBase that you are
actually running.
I have an actual running hbase (2.3.4) that does run but (and this is an important but)... I can't seem to get a client to build with the hbase-clientalone, and I couldn't seem to find the client source code to use to test out the java api / connect to my version of hbase...any help you can provide on that would be the real solution...  

If you do not yet have a HBase which is already running, you can
download a pre-built release from
https://hbase.apache.org/downloads.html. Be sure to grab a version of
Hadoop which is compatible with the HBase release which you are running.
Thanks again for the response!Richard    On Friday, January 29, 2021, 04:19:42 PM EST, Josh Elser <el...@apache.org> wrote:  
 
 `-DskipTests` is the standard Maven "ism" to skip tests. Your output 
appears to indicate that you were running tests, so perhaps your 
invocation was incorrect? You've not provided enough information for us 
to know why exactly your build failed.

You do not have to build HBase from source in order to build an 
application. Every official release which this project creates has 
artifacts which are published in Maven Central for you to consume directly.

One final note: you are building from the master branch (3.0.0-SNAPSHOT) 
which is still under development. I'd suggest that you add a dependency 
in your application to the Maven dependency 
org.apache.hbase:hbase-client for the version of HBase that you are 
actually running.

If you do not yet have a HBase which is already running, you can 
download a pre-built release from 
https://hbase.apache.org/downloads.html. Be sure to grab a version of 
Hadoop which is compatible with the HBase release which you are running.

On 1/29/21 8:54 AM, richard t wrote:
> hi,
> my ultimate goal is to have a basic CRUD client to hbase using the java api.
> in trying to get there, I downloaded the source for hbase 3.0.0 because of the client source and wanted to build this client and test it against my hbase instance that is running.
> the hbase source is not building due to this error:BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 18:03 min
> [INFO] Finished at: 2021-01-28T11:22:12-05:00
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M4:test (default-test) on project hbase-http: There are test failures.
> [ERROR]
> [ERROR] Please refer to /home/rtkatch/Downloads/hbase-src/hbase-master/hbase-http/target/surefire-reports for the individual test results.
> [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
> I have tried to run with -DskipTests but this error seems to be persistent.I am using maven 3.6.3. compiling with openjdk 1.8
> I had found some information where one can set up configuration in the pom to skip tests, so I will try to set that up.
> Any information on this would be much appreciated.
> One other comment, I just don't understand why one has to build everything just to get a test client... there really should be a bundle that contains only the stuff needed to connect to the hbase. I noticed that there were different archetypes but am not sure how to use them other than copying them to my dev directory for use.
> thanks!
> 
> 
  

Re: problem building hbase 3.0.0

Posted by Josh Elser <el...@apache.org>.
`-DskipTests` is the standard Maven "ism" to skip tests. Your output 
appears to indicate that you were running tests, so perhaps your 
invocation was incorrect? You've not provided enough information for us 
to know why exactly your build failed.

You do not have to build HBase from source in order to build an 
application. Every official release which this project creates has 
artifacts which are published in Maven Central for you to consume directly.

One final note: you are building from the master branch (3.0.0-SNAPSHOT) 
which is still under development. I'd suggest that you add a dependency 
in your application to the Maven dependency 
org.apache.hbase:hbase-client for the version of HBase that you are 
actually running.

If you do not yet have a HBase which is already running, you can 
download a pre-built release from 
https://hbase.apache.org/downloads.html. Be sure to grab a version of 
Hadoop which is compatible with the HBase release which you are running.

On 1/29/21 8:54 AM, richard t wrote:
> hi,
> my ultimate goal is to have a basic CRUD client to hbase using the java api.
> in trying to get there, I downloaded the source for hbase 3.0.0 because of the client source and wanted to build this client and test it against my hbase instance that is running.
> the hbase source is not building due to this error:BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 18:03 min
> [INFO] Finished at: 2021-01-28T11:22:12-05:00
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M4:test (default-test) on project hbase-http: There are test failures.
> [ERROR]
> [ERROR] Please refer to /home/rtkatch/Downloads/hbase-src/hbase-master/hbase-http/target/surefire-reports for the individual test results.
> [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
> I have tried to run with -DskipTests but this error seems to be persistent.I am using maven 3.6.3. compiling with openjdk 1.8
> I had found some information where one can set up configuration in the pom to skip tests, so I will try to set that up.
> Any information on this would be much appreciated.
> One other comment, I just don't understand why one has to build everything just to get a test client... there really should be a bundle that contains only the stuff needed to connect to the hbase. I noticed that there were different archetypes but am not sure how to use them other than copying them to my dev directory for use.
> thanks!
> 
>