maven - org.apache.hadoop.conf.Configuration does not exist in hadoop-core.jar -


i writing hbase client in java. first line, of coz, looks this:

import org.apache.hadoop.conf.configuration;

i using cloudera cdh4.3.1, package versions should be:

hadoop-2.0.0+1367 hbase-0.94.6+106 

==updated==

my pom.xml looks this:

<dependency>   <groupid>org.apache.hadoop</groupid>   <artifactid>hadoop-core</artifactid>   <version>2.0.0-mr1-cdh4.3.1</version> </dependency>   <dependency>   <groupid>org.apache.hbase</groupid>   <artifactid>hbase</artifactid>   <version>0.94.6-cdh4.3.1</version> </dependency> 

but somehow, in hadoop-core.jar, not seeing existence of org.apache.hadoop.conf.configuration. result of it, import not resolved java obviously.

add hadoop-common pom.xml

<dependency>                                                                                                                                            <groupid>org.apache.hadoop</groupid>                                                                                                                <artifactid>hadoop-common</artifactid>                                                                                                              <version>2.0.0-cdh4.3.1</version>                                                                                             </dependency>    

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -