You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by abhishek1015 <ab...@gmail.com> on 2014/07/31 03:09:05 UTC

hbase project compilation

Hello,

I have clone the hbase git repository using command provided in the hbase
home page.

git clone https://git-wip-us.apache.org/repos/asf/hbase.git

While I compile this project using 'mvn clean package' command, I see
following error:

Project ID: com.sun.jersey:jersey-project:pom:1.9

Reason: Cannot find parent: net.java:jvnet-parent for project:
com.sun.jersey:jersey-project:pom:1.9 for project
com.sun.jersey:jersey-project:pom:1.9

I am wondering if this is a known problem with this repository.

Can anyone suggest me how can I package the recent version of HBase? For my
project, I require to use hbase 0.99 or higher.

Thanks
Abhishek 




--
View this message in context: http://apache-hbase.679495.n3.nabble.com/hbase-project-compilation-tp4062116.html
Sent from the HBase Developer mailing list archive at Nabble.com.

Re: hbase project compilation

Posted by abhishek1015 <ab...@gmail.com>.
I am able to compile now.

I had upgraded from jdk 6 to jdk 7. but, i forgot to set javac to newer
version.

Abhishek





--
View this message in context: http://apache-hbase.679495.n3.nabble.com/hbase-project-compilation-tp4062116p4062128.html
Sent from the HBase Developer mailing list archive at Nabble.com.

Re: hbase project compilation

Posted by abhishek1015 <ab...@gmail.com>.
Thanks  Gustavo.

I resolved this issue. Compilation was failing because I was using maven 2
instead of maven 3, and also using jdk 6 instead of jdk 7.

I am able to compile successfully.

Abhishek 



--
View this message in context: http://apache-hbase.679495.n3.nabble.com/hbase-project-compilation-tp4062116p4062152.html
Sent from the HBase Developer mailing list archive at Nabble.com.

Re: hbase project compilation

Posted by Gustavo Anatoly <gu...@gmail.com>.
Hello, Abhishek.

The compile action has been called from shell or via Eclipse? Try compile
HBase from shell:* $ mvn clean compile*



2014-07-31 1:37 GMT-03:00 abhishek1015 <ab...@gmail.com>:

> Thank you for your reply. I am using hbase 0.99 or higher as it supports
> the
> resizing block cache size dynamically. I want to explore if this can help
> in
> changing workload condition.
>
> As you recommended, I installed maven 3.0.5. However, it does not compile.
>
>
> Now I see following error. What version of java you are using?
>
> $java -version
> java version "1.7.0_55"
> OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1~0.12.04.2)
> OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)
>
> [INFO] HBase ............................................. SUCCESS
> [3:27.193s]
> [INFO] HBase - Common .................................... SUCCESS
> [2:04.919s]
> [INFO] HBase - Protocol .................................. SUCCESS
> [21.046s]
> [INFO] HBase - Client .................................... SUCCESS
> [35.799s]
> [INFO] HBase - Hadoop Compatibility ...................... SUCCESS [0.646s]
> [INFO] HBase - Hadoop Two Compatibility .................. SUCCESS
> [23.477s]
> [INFO] HBase - Prefix Tree ............................... SUCCESS [1.291s]
> [INFO] HBase - Server .................................... FAILURE
> [57.586s]
> [INFO] HBase - Testing Util .............................. SKIPPED
> [INFO] HBase - Thrift .................................... SKIPPED
> [INFO] HBase - Shell ..................................... SKIPPED
> [INFO] HBase - Integration Tests ......................... SKIPPED
> [INFO] HBase - Examples .................................. SKIPPED
> [INFO] HBase - Assembly .................................. SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 7:57.225s
> [INFO] Finished at: Thu Jul 31 04:48:30 PDT 2014
> [INFO] Final Memory: 55M/319M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile
> (default-compile) on project hbase-server: Compilation failure: Compilation
> failure:
> [ERROR]
>
> /home/hadoop/git/hbase/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java:[55,27]
> cannot find symbol
> [ERROR] symbol  : class ConcurrentLinkedDeque
> [ERROR] location: package java.util.concurrent
> [ERROR]
>
> /home/hadoop/git/hbase/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java:[1125,20]
> cannot find symbol
> [ERROR] symbol  : class ConcurrentLinkedDeque
> [ERROR] location: class org.apache.hadoop.hbase.ipc.RpcServer.Connection
> [ERROR]
>
> /home/hadoop/git/hbase/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java:[1125,68]
> cannot find symbol
> [ERROR] symbol  : class ConcurrentLinkedDeque
> [ERROR] location: class org.apache.hadoop.hbase.ipc.RpcServer.Connection
> [ERROR] -> [Help 1]
>
> Thanks
> Abhishek
>
>
>
> --
> View this message in context:
> http://apache-hbase.679495.n3.nabble.com/hbase-project-compilation-tp4062116p4062125.html
> Sent from the HBase Developer mailing list archive at Nabble.com.
>

Re: hbase project compilation

Posted by abhishek1015 <ab...@gmail.com>.
Thank you for your reply. I am using hbase 0.99 or higher as it supports the
resizing block cache size dynamically. I want to explore if this can help in
changing workload condition. 

As you recommended, I installed maven 3.0.5. However, it does not compile. 


Now I see following error. What version of java you are using?

$java -version
java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1~0.12.04.2)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)

[INFO] HBase ............................................. SUCCESS
[3:27.193s]
[INFO] HBase - Common .................................... SUCCESS
[2:04.919s]
[INFO] HBase - Protocol .................................. SUCCESS [21.046s]
[INFO] HBase - Client .................................... SUCCESS [35.799s]
[INFO] HBase - Hadoop Compatibility ...................... SUCCESS [0.646s]
[INFO] HBase - Hadoop Two Compatibility .................. SUCCESS [23.477s]
[INFO] HBase - Prefix Tree ............................... SUCCESS [1.291s]
[INFO] HBase - Server .................................... FAILURE [57.586s]
[INFO] HBase - Testing Util .............................. SKIPPED
[INFO] HBase - Thrift .................................... SKIPPED
[INFO] HBase - Shell ..................................... SKIPPED
[INFO] HBase - Integration Tests ......................... SKIPPED
[INFO] HBase - Examples .................................. SKIPPED
[INFO] HBase - Assembly .................................. SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 7:57.225s
[INFO] Finished at: Thu Jul 31 04:48:30 PDT 2014
[INFO] Final Memory: 55M/319M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile
(default-compile) on project hbase-server: Compilation failure: Compilation
failure:
[ERROR]
/home/hadoop/git/hbase/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java:[55,27]
cannot find symbol
[ERROR] symbol  : class ConcurrentLinkedDeque
[ERROR] location: package java.util.concurrent
[ERROR]
/home/hadoop/git/hbase/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java:[1125,20]
cannot find symbol
[ERROR] symbol  : class ConcurrentLinkedDeque
[ERROR] location: class org.apache.hadoop.hbase.ipc.RpcServer.Connection
[ERROR]
/home/hadoop/git/hbase/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java:[1125,68]
cannot find symbol
[ERROR] symbol  : class ConcurrentLinkedDeque
[ERROR] location: class org.apache.hadoop.hbase.ipc.RpcServer.Connection
[ERROR] -> [Help 1]

Thanks 
Abhishek



--
View this message in context: http://apache-hbase.679495.n3.nabble.com/hbase-project-compilation-tp4062116p4062125.html
Sent from the HBase Developer mailing list archive at Nabble.com.

Re: hbase project compilation

Posted by Ted Yu <yu...@gmail.com>.
bq. I require to use hbase 0.99 or higher.

0.99 is not released yet.

What version of mvn are you using ?
I use Apache Maven 3.0.5

'mvn clean package -DskipTests' compiles fine.


On Wed, Jul 30, 2014 at 6:09 PM, abhishek1015 <ab...@gmail.com>
wrote:

> Hello,
>
> I have clone the hbase git repository using command provided in the hbase
> home page.
>
> git clone https://git-wip-us.apache.org/repos/asf/hbase.git
>
> While I compile this project using 'mvn clean package' command, I see
> following error:
>
> Project ID: com.sun.jersey:jersey-project:pom:1.9
>
> Reason: Cannot find parent: net.java:jvnet-parent for project:
> com.sun.jersey:jersey-project:pom:1.9 for project
> com.sun.jersey:jersey-project:pom:1.9
>
> I am wondering if this is a known problem with this repository.
>
> Can anyone suggest me how can I package the recent version of HBase? For my
> project, I require to use hbase 0.99 or higher.
>
> Thanks
> Abhishek
>
>
>
>
> --
> View this message in context:
> http://apache-hbase.679495.n3.nabble.com/hbase-project-compilation-tp4062116.html
> Sent from the HBase Developer mailing list archive at Nabble.com.
>