Comments (4)
I was having the same problem.
Just started to play around with all the hadoop stuff, I know Java but I'm by far not an expert in the language and all the tools that come with it, one of those tools is Maven.
So after a week of trying to build the code getting the same error I started to read more about maven and found this:
https://maven.apache.org/guides/mini/guide-using-toolchains.html
Long story short, if your are new to all this Maven+Java thing then you probably have not created the ~/.m2/toolchains.xml
file as in the guide; once you created that file, Maven will use the path you specify there to look for the needed JDK version.
With the toolchains.xml
file in place I'm now able to compile all the sub modules.
This is just a problem when you are a newbie ( like me 🤦♂️ ), is common knowledge so is not written in the instructions.
from hadoop-book.
I created a PR (#39 ) just to explicitly tell the toolchains.xml
file part.
@tomwhite I know that this is just common knowledge, but a little hint can help a lot to the newcomers.
from hadoop-book.
I'm a newbie, can you show me how...
from hadoop-book.
I installed Open-jdk-8 then my problem was solved
from hadoop-book.
Related Issues (20)
- Expand the list of supported Hadoop versions HOT 3
- Why is hadoop version configured twice? HOT 1
- Chapter 11 fails to build HOT 2
- add support for 1.2.1 release HOT 1
- Chapter 14 build failing: thrift 0.2.0 not available on Central Maven Repository HOT 4
- could not find hadoop-localhost.xml HOT 1
- A Weather Dataset location HOT 1
- Weather Dataset Location HOT 1
- Building and Running the Code HOT 2
- Building and Running the Code 2 HOT 3
- need full ncdc weather data for usage HOT 2
- Permission denied when trying to download NCDC data from S3 HOT 4
- error running HBaseTemperatureBulkImporter
- package org.apache.hadoop.record does not exist
- 'hadoop distcp' not working. HOT 1
- Error: org.apache.avro.Schema.getLogicalType()Lorg/apache/avro/LogicalType; HOT 1
- Chapter 2: MapReduce: hadoop command doesn't work without class package HOT 7
- AWS EC2 Single Hadoop cluster - issue with hdfs HOT 1
- The first issue for me:install and compile the examples using the instructions on the book’s website
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hadoop-book.