Check out this mail thread and follow hope this will solve your problem http://mail-archives.apache.org/mod_mbox/hadoop-common-user/201012.mbox/%[email protected]%3E
Dont forget to import hadoop.jar and check if hadoop is running Regards Shashwat On Mon, Mar 12, 2012 at 11:48 PM, Mohammad Tariq <[email protected]> wrote: > Hello Mahdi, > > Have you imported "org.apache.hadoop.conf.Configuration" in your > code.May be you have added the jar but forgot to import it. > > Regards, > Mohammad Tariq > > > > On Mon, Mar 12, 2012 at 6:06 PM, N Keywal <[email protected]> wrote: > > only jar files. They are already in the hbase distrib (i.e. if you > download > > hbase, you get the hadoop jar files you need). You just need to import > them > > in your IDE. > > > > > > On Mon, Mar 12, 2012 at 1:05 PM, Mahdi Negahi <[email protected] > >wrote: > > > >> > >> I so confused. I must install Hadoop or use only jar files ? > >> > >> > Date: Mon, 12 Mar 2012 12:46:09 +0100 > >> > Subject: RE: Java Programming and Hbase > >> > From: [email protected] > >> > To: [email protected] > >> > > >> > You will need the hadoop jar for this. Hbase uses hadoop for common > stuff > >> > like the configuration you've seen, so even a simple client needs it. > >> > > >> > N. > >> > Le 12 mars 2012 12:06, "Mahdi Negahi" <[email protected]> a > >> écrit : > >> > > >> > > > >> > > Is it necessary to install hadoop for hbase, if want use Hbase in > my > >> > > laptop and use it via Java ????? > >> > > > >> > > > Date: Mon, 12 Mar 2012 10:43:44 +0100 > >> > > > Subject: Re: Java Programming and Hbase > >> > > > From: [email protected] > >> > > > To: [email protected] > >> > > > > >> > > > you also need to import hadoop.jar, since hbase runs on hahoop > >> > > > > >> > > > > >> > > > > >> > > > On Mon, Mar 12, 2012 at 9:45 AM, Mahdi Negahi < > >> [email protected] > >> > > >wrote: > >> > > > > >> > > > > > >> > > > > Dear Friends > >> > > > > > >> > > > > > >> > > > > I try to write a simple application with Java and manipulate my > >> Hbase > >> > > > > table. so I read this post and try to follow it. > >> > > > > > >> > > > > http://hbase.apache.org/docs/current/api/index.html > >> > > > > > >> > > > > I use eclipse and add hbase-092.0.jar as external jar file for > my > >> > > project. > >> > > > > but i have problem in the first line of guideline. the following > >> code > >> > > line > >> > > > > Configuration config = HBaseConfiguration.create(); > >> > > > > > >> > > > > has a following error > >> > > > > > >> > > > > The type org.apache.hadoop.conf.Configuration cannot be > resolved. > >> It is > >> > > > > indirectly referenced from required .class files > >> > > > > > >> > > > > and Configuration's package that eclipse want to add to my > project > >> is > >> > > > > > >> > > > > import javax.security.auth.login.Configuration; > >> > > > > > >> > > > > i think it is not an appropriate package. > >> > > > > > >> > > > > please advice me and refer me to new guideline. > >> > > > > > >> > > > >> > >> > -- Shashwat Shriparv +91-9663531241 +91-990059620
