NiceSystems / hrider

hbase UI tool
Apache License 2.0
133 stars 45 forks source link

Broken Build #32

Closed yepher closed 11 years ago

yepher commented 11 years ago

With the pom out of the box I can't get it to build. Are there some special setup process?

Shouldn't things like "org.apache.hadoop.hbase.io.encoding" be picked up from the pom?

Here is the maven output

[hrider (master)]$ mvn clean install [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for h-rider:h-rider:jar:1.0.5.0 [WARNING] 'repositories.repository.id' must not be 'local', this identifier is reserved for the local repository, using it for other repositories will corrupt your repository metadata. @ line 17, column 17 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building h-rider 1.0.5.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ h-rider --- [INFO] Deleting /Users/name/Software/hrider/target [INFO] [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ h-rider --- [WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 31 resources [INFO] [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ h-rider --- [WARNING] File encoding has not been set, using platform encoding MacRoman, i.e. build is platform dependent! [INFO] Compiling 72 source files to /Users/name/Software/hrider/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[14,42] package org.apache.hadoop.hbase.io.encoding does not exist [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[15,39] cannot find symbol symbol : class CacheConfig location: package org.apache.hadoop.hbase.io.hfile [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[18,43] org.apache.hadoop.hbase.regionserver.StoreFileScanner is not public in org.apache.hadoop.hbase.regionserver; cannot be accessed from outside package [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[19,51] cannot find symbol symbol : class SchemaMetrics location: package org.apache.hadoop.hbase.regionserver.metrics [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[331,39] cannot find symbol symbol : variable HFILE_BLOCK_CACHE_SIZE_KEY location: class org.apache.hadoop.hbase.HConstants [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[333,47] cannot find symbol symbol : class WriterBuilder location: class org.apache.hadoop.hbase.regionserver.StoreFile [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[334,41] cannot find symbol symbol : class CacheConfig location: class hrider.hbase.Connection [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[393,79] cannot find symbol symbol : class CacheConfig location: class hrider.hbase.Connection [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[393,117] cannot find symbol symbol : variable DataBlockEncoding location: class hrider.hbase.Connection [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[393,34] internal error; cannot instantiate Reader(org.apache.hadoop.fs.FileSystem,org.apache.hadoop.fs.Path,org.apache.hadoop.hbase.io.hfile.BlockCache,boolean) at org.apache.hadoop.hbase.regionserver.StoreFile.Reader to () [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[396,12] cannot find symbol symbol : class StoreFileScanner location: class hrider.hbase.Connection [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[397,12] cannot find symbol symbol : variable SchemaMetrics location: class hrider.hbase.Connection [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[465,18] close() in org.apache.hadoop.hbase.regionserver.StoreFile.Reader cannot be applied to (boolean) [INFO] 13 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.375s [INFO] Finished at: Fri Apr 12 10:52:57 CDT 2013 [INFO] Final Memory: 14M/81M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project h-rider: Compilation failure: Compilation failure: [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[14,42] package org.apache.hadoop.hbase.io.encoding does not exist [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[15,39] cannot find symbol [ERROR] symbol : class CacheConfig [ERROR] location: package org.apache.hadoop.hbase.io.hfile [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[18,43] org.apache.hadoop.hbase.regionserver.StoreFileScanner is not public in org.apache.hadoop.hbase.regionserver; cannot be accessed from outside package [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[19,51] cannot find symbol [ERROR] symbol : class SchemaMetrics [ERROR] location: package org.apache.hadoop.hbase.regionserver.metrics [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[331,39] cannot find symbol [ERROR] symbol : variable HFILE_BLOCK_CACHE_SIZE_KEY [ERROR] location: class org.apache.hadoop.hbase.HConstants [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[333,47] cannot find symbol [ERROR] symbol : class WriterBuilder [ERROR] location: class org.apache.hadoop.hbase.regionserver.StoreFile [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[334,41] cannot find symbol [ERROR] symbol : class CacheConfig [ERROR] location: class hrider.hbase.Connection [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[393,79] cannot find symbol [ERROR] symbol : class CacheConfig [ERROR] location: class hrider.hbase.Connection [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[393,117] cannot find symbol [ERROR] symbol : variable DataBlockEncoding [ERROR] location: class hrider.hbase.Connection [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[393,34] internal error; cannot instantiate Reader(org.apache.hadoop.fs.FileSystem,org.apache.hadoop.fs.Path,org.apache.hadoop.hbase.io.hfile.BlockCache,boolean) at org.apache.hadoop.hbase.regionserver.StoreFile.Reader to () [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[396,12] cannot find symbol [ERROR] symbol : class StoreFileScanner [ERROR] location: class hrider.hbase.Connection [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[397,12] cannot find symbol [ERROR] symbol : variable SchemaMetrics [ERROR] location: class hrider.hbase.Connection [ERROR] /Users/name/Software/hrider/src/main/java/hrider/hbase/Connection.java:[465,18] close() in org.apache.hadoop.hbase.regionserver.StoreFile.Reader cannot be applied to (boolean) [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [hrider (master)]$

icher-g commented 11 years ago

1.0.5.0 version of h-rider can only compile with 0.94.1 version of hbase or more. You need to select the correct profile from the pom.

yepher commented 11 years ago

Thank you. I did the following and it works:

mvn clean install -P 0.94.1