Chapter 14 build failing: thrift 0.2.0 not available on Central Maven Repository #19

Closed
apennebaker opened this Issue Jan 10, 2014 · 4 comments

Comments

Projects
None yet
2 participants
@apennebaker

Trace:

[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Chapter 13: HBase 3.0
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.maven.apache.org/maven2/org/apache/hadoop/hadoop-core/0.20-append-r1056497/hadoop-core-0.20-append-r1056497.pom
[WARNING] The POM for org.apache.hadoop:hadoop-core:jar:0.20-append-r1056497 is missing, no dependency information available
Downloading: http://repo.maven.apache.org/maven2/org/apache/thrift/thrift/0.2.0/thrift-0.2.0.pom
[WARNING] The POM for org.apache.thrift:thrift:jar:0.2.0 is missing, no dependency information available
Downloading: http://repo.maven.apache.org/maven2/org/apache/thrift/thrift/0.2.0/thrift-0.2.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Hadoop: The Definitive Guide, Project ............. SUCCESS [0.295s]
[INFO] Common Code ....................................... SUCCESS [1.196s]
[INFO] Chapter 2: MapReduce .............................. SUCCESS [0.122s]
[INFO] Chapter 3: The Hadoop Distributed Filesystem ...... SUCCESS [12.142s]
[INFO] Chapter 4: Hadoop I/O ............................. SUCCESS [1.282s]
[INFO] Chapter 4: Hadoop I/O (Avro) ...................... SUCCESS [3.536s]
[INFO] Chapter 5: Developing a MapReduce Application ..... SUCCESS [24.197s]
[INFO] Chapter 7: MapReduce Types and Formats ............ SUCCESS [0.811s]
[INFO] Chapter 8: MapReduce Features ..................... SUCCESS [0.850s]
[INFO] Chapter 11: Pig ................................... SUCCESS [0.620s]
[INFO] Chapter 12: Hive .................................. SUCCESS [0.239s]
[INFO] Chapter 13: HBase ................................. FAILURE [0.543s]
[INFO] Chapter 14: ZooKeeper ............................. SKIPPED
[INFO] Chapter 15: Sqoop ................................. SKIPPED
[INFO] Chapter 16: Case Studies .......................... SKIPPED
[INFO] Hadoop Examples JAR ............................... SKIPPED
[INFO] Snippet testing ................................... SKIPPED
[INFO] Hadoop: The Definitive Guide, Example Code ........ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 46.070s
[INFO] Finished at: Fri Jan 10 11:10:34 EST 2014
[INFO] Final Memory: 14M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ch13: Could not resolve dependencies for project com.hadoopbook:ch13:jar:3.0: Failure to find org.apache.thrift:thrift:jar:0.2.0 in https://repository.apache.org/content/repositories/releases/ was cached in the local repository, resolution will not be reattempted until the update interval of apache.releases has elapsed or updates are forced -> [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/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :ch13

I went to the Central Maven Repository to look for this package. They don't have thrift down to 0.2.0, they only go as far back as 0.9.0:

http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.apache.thrift%22

@apennebaker

This comment has been minimized.

Show comment Hide comment
@apennebaker

apennebaker Jan 10, 2014

I've emailed the Thrift Users mailing list to request that thrift 0.2.0 be republished on the Central Maven Repository.

I've emailed the Thrift Users mailing list to request that thrift 0.2.0 be republished on the Central Maven Repository.

@tomwhite

This comment has been minimized.

Show comment Hide comment
@tomwhite

tomwhite Jan 10, 2014

Owner

HBase 0.90.4 is quite old now, so it's probably worth using a more recent version. Does it work if you try 0.94? (The build works for me, probably because the thrift JAR is in my local repo.)

Owner

tomwhite commented Jan 10, 2014

HBase 0.90.4 is quite old now, so it's probably worth using a more recent version. Does it work if you try 0.94? (The build works for me, probably because the thrift JAR is in my local repo.)

@tomwhite

This comment has been minimized.

Show comment Hide comment
@tomwhite

tomwhite Jan 10, 2014

Owner

I just tried compiling with HBase 0.94.15 (and 0.92.2) and both failed due to an API change:

[ERROR] /Users/tom/book-workspace/hadoop-book/ch13/src/main/java/HBaseStationCli.java:[23,7] addColumn(byte[],byte[]) in org.apache.hadoop.hbase.client.Get cannot be applied to (byte[])

It's still worth upgrading though, it'll just take a little more work.

Owner

tomwhite commented Jan 10, 2014

I just tried compiling with HBase 0.94.15 (and 0.92.2) and both failed due to an API change:

[ERROR] /Users/tom/book-workspace/hadoop-book/ch13/src/main/java/HBaseStationCli.java:[23,7] addColumn(byte[],byte[]) in org.apache.hadoop.hbase.client.Get cannot be applied to (byte[])

It's still worth upgrading though, it'll just take a little more work.

@tomwhite

This comment has been minimized.

Show comment Hide comment
@tomwhite

tomwhite Jan 12, 2014

Owner

I upgraded to HBase 0.94.15 in 0087add and the build now succeeds.

Owner

tomwhite commented Jan 12, 2014

I upgraded to HBase 0.94.15 in 0087add and the build now succeeds.

@tomwhite tomwhite closed this Jan 12, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment