You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Gerald Klein <jk...@zognet.com> on 2013/12/27 15:21:46 UTC

hbase config problem

hi I have been attempting to learn hbase and have been unable to get a
local copy running, it comes back with"could not find or load main class
org.apache.hadoop.hbase.util.HBaseConfTool" and "could not find or load
main class org.apache.hadoop.hbase.zookeeper.ZKServerTool" and "culd not
find or load main class org.apache.hadoop.hbase.master.HMaster" I have
tried adding stuff to the config HBASE_CLASSPATH but nothing seems to get
rid of the error, I also grepped the directories from the install package
and could not find the class that they are looking for, anyone have an idea
of what this is? thanks

-- 

Gerald Klein DBA

ContactMe@geraldklein.com

www.geraldklein.com <http://geraldklein.com/>

geraldklein.wordpress.com

jk@zognet.com

708-599-0352


Arch Awesome, Ranger & Vim the coding triple threat.

Linux registered user #548580

Brought to you by the Amish Mafia

Re: hbase config problem

Posted by Gerald Klein <jk...@zognet.com>.
Yes I can see this, and every doc says the same thing pretty much, I don't
have anything custom with this distro and I haven't run into this before.
Java stuff is always been drop in, no problem. I don't get why it is not
finding the classes. The java_home should be pointing to the executable
like /usr/bin/java yes?


On Fri, Dec 27, 2013 at 12:58 PM, Jean-Marc Spaggiari <
jean-marc@spaggiari.org> wrote:

> Ok. It's working fine with 0.96.1.1. I just downloaded it, decompressed,
> added JAVA_HOME:
>
> jmspaggiari@t430s:~/Downloads/hbase/hbase-0.96.1.1-hadoop1$ vi
> conf/hbase-env.sh
> jmspaggiari@t430s:~/Downloads/hbase/hbase-0.96.1.1-hadoop1$
> bin/start-hbase.sh
> starting master, logging to
>
> /home/jmspaggiari/Downloads/hbase/hbase-0.96.1.1-hadoop1/bin/../logs/hbase-jmspaggiari-master-t430s.out
> jmspaggiari@t430s:~/Downloads/hbase/hbase-0.96.1.1-hadoop1$
>
>
> And everything is working fine.
>
>
> 2013/12/27 Jean-Marc Spaggiari <je...@spaggiari.org>
>
> > FYI,
> > I just tried with Trunk and got something similar to what you have.
> >
> >
> > Error: Could not find or load main class
> > org.apache.hadoop.hbase.util.HBaseConfTool
> > Error: Could not find or load main class
> > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> >
> > I will try with 0.96.1.1 shortly.
> >
> > JM
> >
> >
> > 2013/12/27 Jean-Marc Spaggiari <je...@spaggiari.org>
> >
> >> But it still log "localhost:" instead of the host name....
> >>
> >> Also, you are not trying each time with the same version.
> >>
> >> Initial log was:
> >> /root/Software/hbase-gz/hbase-0.96.0
> >> Now it's:
> >> /root/Software/hbase-gz/hbase-0.95.2/
> >>
> >> Can you please make sure you test with 0.96.1.1? 0.95 was a dev version.
> >> 0.96 has been built from that.
> >>
> >> Can you paste on pastebin the output of "set"?
> >>
> >>
> >> 2013/12/27 Gerald Klein <jk...@zognet.com>
> >>
> >>> Ok same problem still, it just seems like it just isn't locating the
> base
> >>> classes.
> >>>
> >>> Error: Could not find or load main class
> >>> org.apache.hadoop.hbase.util.HBaseConfTool
> >>> Error: Could not find or load main class
> >>> org.apache.hadoop.hbase.zookeeper.ZKServerTool
> >>> starting master, logging to
> >>>
> >>>
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> >>> Error: Could not find or load main class
> >>> org.apache.hadoop.hbase.master.HMaster
> >>> Password:
> >>> localhost: starting regionserver, logging to
> >>>
> >>>
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> >>> localhost: Error: Could not find or load main class
> >>> org.apache.hadoop.hbase.regionserver.HRegionServer
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> On Fri, Dec 27, 2013 at 12:14 PM, Jean-Marc Spaggiari <
> >>> jean-marc@spaggiari.org> wrote:
> >>>
> >>> > Thanks for sharing the files.
> >>> >
> >>> > So 2 things.
> >>> >
> >>> > first, regarding the hosts file. You have twice the same name but
> with
> >>> 2
> >>> > different IPs:
> >>> > 127.0.0.1       zenlinux.localdomain zenlinux
> >>> > 127.0.0.1       localhost.localdomain locahost
> >>> > 192.168.1.81 zenlinux.localdomain zenlinux
> >>> >
> >>> > Please remove the 1st line.
> >>> >
> >>> > 2nd, in your hbase-site.xml can you please try without those 2
> >>> properties
> >>> > set? Just keep it empty. It will use the /tmp directory.
> >>> >
> >>> > Thanks,
> >>> >
> >>> > JM
> >>> >
> >>> >
> >>> > 2013/12/27 Gerald Klein <jk...@zognet.com>
> >>> >
> >>> > > OK here they are first is hbase-env.sh
> >>> > >
> >>> > > http://pastebin.com/KPaw9aaE
> >>> > >
> >>> > > second hbase-site.xml
> >>> > >
> >>> > > http://pastebin.com/WZixuTas
> >>> > >
> >>> > > third hosts file
> >>> > >
> >>> > > http://pastebin.com/dLFi7gcN
> >>> > >
> >>> > >
> >>> > > thanks again
> >>> > >
> >>> > > I am not worried about the password locally I just type it in, this
> >>> is
> >>> > fine
> >>> > > for learning it
> >>> > >
> >>> > >
> >>> > >
> >>> > >
> >>> > > On Fri, Dec 27, 2013 at 11:34 AM, Jean-Marc Spaggiari <
> >>> > > jean-marc@spaggiari.org> wrote:
> >>> > >
> >>> > > > Attachements doesn't work on the mailing list :( You can paste
> >>> them on
> >>> > > > pastebin or past the content of the scripts on your email
> directly.
> >>> > > >
> >>> > > > Have you been able to configure the passwordless?
> >>> > > >
> >>> > > > Also, you are trying with 0.96.0, right? Can you try with
> 0.96.1.1
> >>> > > instead?
> >>> > > > http://www.apache.org/dyn/closer.cgi/hbase/
> >>> > > >
> >>> > > > JM
> >>> > > >
> >>> > > >
> >>> > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> >>> > > >
> >>> > > > > OK here it is and thanks a lot for taking the time.
> >>> > > > >
> >>> > > > >
> >>> > > > > On Fri, Dec 27, 2013 at 11:15 AM, Jean-Marc Spaggiari <
> >>> > > > > jean-marc@spaggiari.org> wrote:
> >>> > > > >
> >>> > > > >> Can you share your config files?
> >>> > > > >> hbase-env.sh
> >>> > > > >> hosts
> >>> > > > >> hbase-site.xml
> >>> > > > >>
> >>> > > > >> Are you able to passwordless ssh in the same host? Like ssh
> >>> MYHOST
> >>> > > does
> >>> > > > it
> >>> > > > >> ask for a password?
> >>> > > > >>
> >>> > > > >> If so, can you configure it password less?
> >>> > > > >>
> >>> > > > >> to create the key: ssh-keygen -t rsa
> >>> > > > >> To install: ssh-copy-id -i ~/.ssh/id_rsa.pub
> >>> > > > your_user_name@your_host_name
> >>> > > > >>
> >>> > > > >> JM
> >>> > > > >>
> >>> > > > >>
> >>> > > > >> 2013/12/27 Gerald Klein <jk...@zognet.com>
> >>> > > > >>
> >>> > > > >> > Yes I have added it to the conf/hbase-env.sh file in the
> last
> >>> > email
> >>> > > > >> when it
> >>> > > > >> > initially failed that test, I currently have it pointed to
> >>> > > > >> > /opt/oracle-jdk-bin-1.7.0.45
> >>> > > > >> > which is where Gentoo has it installed.
> >>> > > > >> >
> >>> > > > >> >
> >>> > > > >> >
> >>> > > > >> >
> >>> > > > >> >
> >>> > > > >> > On Fri, Dec 27, 2013 at 10:48 AM, Jean-Marc Spaggiari <
> >>> > > > >> > jean-marc@spaggiari.org> wrote:
> >>> > > > >> >
> >>> > > > >> > > Have you modified any of the files into conf/ ?
> >>> > > > >> > >
> >>> > > > >> > > Please add your JAVA_HOME setting into conf/hbase-env.sh
> and
> >>> > > retry.
> >>> > > > >> > >
> >>> > > > >> > > The password issue is related to the passwordless setting,
> >>> but
> >>> > it
> >>> > > > >> should
> >>> > > > >> > > not be required for the standalone version. We will look
> at
> >>> that
> >>> > > > after
> >>> > > > >> > you
> >>> > > > >> > > try again ;)
> >>> > > > >> > >
> >>> > > > >> > > JM
> >>> > > > >> > >
> >>> > > > >> > >
> >>> > > > >> > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> >>> > > > >> > >
> >>> > > > >> > > > Thanks for the help, I unset all vars and made sure that
> >>> the
> >>> > > > >> JAVA_HOME
> >>> > > > >> > > was
> >>> > > > >> > > > set in .bashrc, Same errors but now JAVA_HOME not set as
> >>> > below:
> >>> > > > >> > > >
> >>> > > > >> > > > Error: Could not find or load main class
> >>> > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> >>> > > > >> > > > Error: Could not find or load main class
> >>> > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> >>> > > > >> > > > starting master, logging to
> >>> > > > >> > > >
> >>> > > > >> > > >
> >>> > > > >> > >
> >>> > > > >> >
> >>> > > > >>
> >>> > > >
> >>> > >
> >>> >
> >>>
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.out
> >>> > > > >> > > > Error: Could not find or load main class
> >>> > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> >>> > > > >> > > > Password:
> >>> > > > >> > > > localhost:
> >>> > > > >> > > >
> >>> > > > >> >
> >>> > > >
> >>> >
> >>>
> +======================================================================+
> >>> > > > >> > > > localhost: |      Error: JAVA_HOME is not set and Java
> >>> could
> >>> > not
> >>> > > > be
> >>> > > > >> > found
> >>> > > > >> > > >       |
> >>> > > > >> > > > localhost:
> >>> > > > >> > > >
> >>> > > > >> >
> >>> > > >
> >>> >
> >>>
> +----------------------------------------------------------------------+
> >>> > > > >> > > > localhost: | Please download the latest Sun JDK from the
> >>> Sun
> >>> > > Java
> >>> > > > >> web
> >>> > > > >> > > site
> >>> > > > >> > > >        |
> >>> > > > >> > > > localhost: |       >
> >>> http://java.sun.com/javase/downloads/ <
> >>> > > > >> > > >        |
> >>> > > > >> > > > localhost: |
> >>> > > > >> > > >        |
> >>> > > > >> > > > localhost: | HBase requires Java 1.6 or later.
> >>> > > > >> > > >        |
> >>> > > > >> > > > localhost: | NOTE: This script will find Sun Java
> whether
> >>> you
> >>> > > > >> install
> >>> > > > >> > > using
> >>> > > > >> > > > the   |
> >>> > > > >> > > > localhost: |       binary or the RPM based installer.
> >>> > > > >> > > >       |
> >>> > > > >> > > > localhost:
> >>> > > > >> > > >
> >>> > > > >> >
> >>> > > >
> >>> >
> >>>
> +======================================================================+
> >>> > > > >> > > >
> >>> > > > >> > > > So I set JAVA_HOME in hbase-env.sh, but I still get the
> >>> > > following
> >>> > > > >> > > >
> >>> > > > >> > > > Error: Could not find or load main class
> >>> > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> >>> > > > >> > > > Error: Could not find or load main class
> >>> > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> >>> > > > >> > > > starting master, logging to
> >>> > > > >> > > >
> >>> > > > >> > > >
> >>> > > > >> > >
> >>> > > > >> >
> >>> > > > >>
> >>> > > >
> >>> > >
> >>> >
> >>>
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.out
> >>> > > > >> > > > Error: Could not find or load main class
> >>> > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> >>> > > > >> > > > Password:
> >>> > > > >> > > > localhost: starting regionserver, logging to
> >>> > > > >> > > >
> >>> > > > >> > > >
> >>> > > > >> > >
> >>> > > > >> >
> >>> > > > >>
> >>> > > >
> >>> > >
> >>> >
> >>>
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.out
> >>> > > > >> > > > localhost: Error: Could not find or load main class
> >>> > > > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> >>> > > > >> > > >
> >>> > > > >> > > > then I forced a domain name via hostname and still got
> the
> >>> > > > following
> >>> > > > >> > > >
> >>> > > > >> > > >
> >>> > > > >> > > > Error: Could not find or load main class
> >>> > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> >>> > > > >> > > > Error: Could not find or load main class
> >>> > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> >>> > > > >> > > > starting master, logging to
> >>> > > > >> > > >
> >>> > > > >> > > >
> >>> > > > >> > >
> >>> > > > >> >
> >>> > > > >>
> >>> > > >
> >>> > >
> >>> >
> >>>
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> >>> > > > >> > > > Error: Could not find or load main class
> >>> > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> >>> > > > >> > > > Password:
> >>> > > > >> > > > localhost: starting regionserver, logging to
> >>> > > > >> > > >
> >>> > > > >> > > >
> >>> > > > >> > >
> >>> > > > >> >
> >>> > > > >>
> >>> > > >
> >>> > >
> >>> >
> >>>
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> >>> > > > >> > > > localhost: Error: Could not find or load main class
> >>> > > > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> >>> > > > >> > > >
> >>> > > > >> > > >
> >>> > > > >> > > > I appreciate any help with this, I don't usually
> >>> experience a
> >>> > > > setup
> >>> > > > >> > > problem
> >>> > > > >> > > > like this.
> >>> > > > >> > > >
> >>> > > > >> > > > thanks
> >>> > > > >> > > >
> >>> > > > >> > > >
> >>> > > > >> > > >
> >>> > > > >> > > > On Fri, Dec 27, 2013 at 8:48 AM, Jean-Marc Spaggiari <
> >>> > > > >> > > > jean-marc@spaggiari.org> wrote:
> >>> > > > >> > > >
> >>> > > > >> > > > > Hi Gerald,
> >>> > > > >> > > > >
> >>> > > > >> > > > > The easiest way to test HBase locally is:
> >>> > > > >> > > > > 1) Download the tar.gz
> >>> > > > >> > > > > 2) Ungzip it.
> >>> > > > >> > > > > 3) Make sure host file contains FQDN assign to local
> IP
> >>> > > address
> >>> > > > >> (and
> >>> > > > >> > > not
> >>> > > > >> > > > > 127.0.0.1)
> >>> > > > >> > > > > 4) define JAVA_HOME to point to you Sun JDK
> >>> > > > >> > > > > 5) bin/start-hbase.sh
> >>> > > > >> > > > >
> >>> > > > >> > > > > Don't change anything, don't set any other variable,
> >>> don't
> >>> > do
> >>> > > > >> > anything.
> >>> > > > >> > > > > Just those 5 simple steps. Then you should have a
> >>> standalone
> >>> > > > >> version
> >>> > > > >> > > > > running.
> >>> > > > >> > > > >
> >>> > > > >> > > > > JM
> >>> > > > >> > > > >
> >>> > > > >> > > > >
> >>> > > > >> > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> >>> > > > >> > > > >
> >>> > > > >> > > > > > hi I have been attempting to learn hbase and have
> been
> >>> > > unable
> >>> > > > to
> >>> > > > >> > get
> >>> > > > >> > > a
> >>> > > > >> > > > > > local copy running, it comes back with"could not
> find
> >>> or
> >>> > > load
> >>> > > > >> main
> >>> > > > >> > > > class
> >>> > > > >> > > > > > org.apache.hadoop.hbase.util.HBaseConfTool" and
> >>> "could not
> >>> > > > find
> >>> > > > >> or
> >>> > > > >> > > load
> >>> > > > >> > > > > > main class
> >>> org.apache.hadoop.hbase.zookeeper.ZKServerTool"
> >>> > > and
> >>> > > > >> > "culd
> >>> > > > >> > > > not
> >>> > > > >> > > > > > find or load main class
> >>> > > > org.apache.hadoop.hbase.master.HMaster"
> >>> > > > >> I
> >>> > > > >> > > have
> >>> > > > >> > > > > > tried adding stuff to the config HBASE_CLASSPATH but
> >>> > nothing
> >>> > > > >> seems
> >>> > > > >> > to
> >>> > > > >> > > > get
> >>> > > > >> > > > > > rid of the error, I also grepped the directories
> from
> >>> the
> >>> > > > >> install
> >>> > > > >> > > > package
> >>> > > > >> > > > > > and could not find the class that they are looking
> >>> for,
> >>> > > anyone
> >>> > > > >> have
> >>> > > > >> > > an
> >>> > > > >> > > > > idea
> >>> > > > >> > > > > > of what this is? thanks
> >>> > > > >> > > > > >
> >>> > > > >> > > > > > --
> >>> > > > >> > > > > >
> >>> > > > >> > > > > > Gerald Klein DBA
> >>> > > > >> > > > > >
> >>> > > > >> > > > > > ContactMe@geraldklein.com
> >>> > > > >> > > > > >
> >>> > > > >> > > > > > www.geraldklein.com <http://geraldklein.com/>
> >>> > > > >> > > > > >
> >>> > > > >> > > > > > geraldklein.wordpress.com
> >>> > > > >> > > > > >
> >>> > > > >> > > > > > jk@zognet.com
> >>> > > > >> > > > > >
> >>> > > > >> > > > > > 708-599-0352
> >>> > > > >> > > > > >
> >>> > > > >> > > > > >
> >>> > > > >> > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> >>> > > > >> > > > > >
> >>> > > > >> > > > > > Linux registered user #548580
> >>> > > > >> > > > > >
> >>> > > > >> > > > > > Brought to you by the Amish Mafia
> >>> > > > >> > > > > >
> >>> > > > >> > > > >
> >>> > > > >> > > >
> >>> > > > >> > > >
> >>> > > > >> > > >
> >>> > > > >> > > > --
> >>> > > > >> > > >
> >>> > > > >> > > > Gerald Klein DBA
> >>> > > > >> > > >
> >>> > > > >> > > > ContactMe@geraldklein.com
> >>> > > > >> > > >
> >>> > > > >> > > > www.geraldklein.com <http://geraldklein.com/>
> >>> > > > >> > > >
> >>> > > > >> > > > geraldklein.wordpress.com
> >>> > > > >> > > >
> >>> > > > >> > > > jk@zognet.com
> >>> > > > >> > > >
> >>> > > > >> > > > 708-599-0352
> >>> > > > >> > > >
> >>> > > > >> > > >
> >>> > > > >> > > > Arch Awesome, Ranger & Vim the coding triple threat.
> >>> > > > >> > > >
> >>> > > > >> > > > Linux registered user #548580
> >>> > > > >> > > >
> >>> > > > >> > > > Brought to you by the Amish Mafia
> >>> > > > >> > > >
> >>> > > > >> > >
> >>> > > > >> >
> >>> > > > >> >
> >>> > > > >> >
> >>> > > > >> > --
> >>> > > > >> >
> >>> > > > >> > Gerald Klein DBA
> >>> > > > >> >
> >>> > > > >> > ContactMe@geraldklein.com
> >>> > > > >> >
> >>> > > > >> > www.geraldklein.com <http://geraldklein.com/>
> >>> > > > >> >
> >>> > > > >> > geraldklein.wordpress.com
> >>> > > > >> >
> >>> > > > >> > jk@zognet.com
> >>> > > > >> >
> >>> > > > >> > 708-599-0352
> >>> > > > >> >
> >>> > > > >> >
> >>> > > > >> > Arch Awesome, Ranger & Vim the coding triple threat.
> >>> > > > >> >
> >>> > > > >> > Linux registered user #548580
> >>> > > > >> >
> >>> > > > >> > Brought to you by the Amish Mafia
> >>> > > > >> >
> >>> > > > >>
> >>> > > > >
> >>> > > > >
> >>> > > > >
> >>> > > > > --
> >>> > > > >
> >>> > > > > Gerald Klein DBA
> >>> > > > >
> >>> > > > > ContactMe@geraldklein.com
> >>> > > > >
> >>> > > > > www.geraldklein.com <http://geraldklein.com/>
> >>> > > > >
> >>> > > > > geraldklein.wordpress.com
> >>> > > > >
> >>> > > > > jk@zognet.com
> >>> > > > >
> >>> > > > > 708-599-0352
> >>> > > > >
> >>> > > > >
> >>> > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> >>> > > > >
> >>> > > > > Linux registered user #548580
> >>> > > > >
> >>> > > > > Brought to you by the Amish Mafia
> >>> > > > >
> >>> > > > >
> >>> > > >
> >>> > >
> >>> > >
> >>> > >
> >>> > > --
> >>> > >
> >>> > > Gerald Klein DBA
> >>> > >
> >>> > > ContactMe@geraldklein.com
> >>> > >
> >>> > > www.geraldklein.com <http://geraldklein.com/>
> >>> > >
> >>> > > geraldklein.wordpress.com
> >>> > >
> >>> > > jk@zognet.com
> >>> > >
> >>> > > 708-599-0352
> >>> > >
> >>> > >
> >>> > > Arch Awesome, Ranger & Vim the coding triple threat.
> >>> > >
> >>> > > Linux registered user #548580
> >>> > >
> >>> > > Brought to you by the Amish Mafia
> >>> > >
> >>> >
> >>>
> >>>
> >>>
> >>> --
> >>>
> >>> Gerald Klein DBA
> >>>
> >>> ContactMe@geraldklein.com
> >>>
> >>> www.geraldklein.com <http://geraldklein.com/>
> >>>
> >>> geraldklein.wordpress.com
> >>>
> >>> jk@zognet.com
> >>>
> >>> 708-599-0352
> >>>
> >>>
> >>> Arch Awesome, Ranger & Vim the coding triple threat.
> >>>
> >>> Linux registered user #548580
> >>>
> >>> Brought to you by the Amish Mafia
> >>>
> >>
> >>
> >
>



-- 

Gerald Klein DBA

ContactMe@geraldklein.com

www.geraldklein.com <http://geraldklein.com/>

geraldklein.wordpress.com

jk@zognet.com

708-599-0352


Arch Awesome, Ranger & Vim the coding triple threat.

Linux registered user #548580

Brought to you by the Amish Mafia

Re: hbase config problem

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
Ok. It's working fine with 0.96.1.1. I just downloaded it, decompressed,
added JAVA_HOME:

jmspaggiari@t430s:~/Downloads/hbase/hbase-0.96.1.1-hadoop1$ vi
conf/hbase-env.sh
jmspaggiari@t430s:~/Downloads/hbase/hbase-0.96.1.1-hadoop1$
bin/start-hbase.sh
starting master, logging to
/home/jmspaggiari/Downloads/hbase/hbase-0.96.1.1-hadoop1/bin/../logs/hbase-jmspaggiari-master-t430s.out
jmspaggiari@t430s:~/Downloads/hbase/hbase-0.96.1.1-hadoop1$


And everything is working fine.


2013/12/27 Jean-Marc Spaggiari <je...@spaggiari.org>

> FYI,
> I just tried with Trunk and got something similar to what you have.
>
>
> Error: Could not find or load main class
> org.apache.hadoop.hbase.util.HBaseConfTool
> Error: Could not find or load main class
> org.apache.hadoop.hbase.zookeeper.ZKServerTool
>
> I will try with 0.96.1.1 shortly.
>
> JM
>
>
> 2013/12/27 Jean-Marc Spaggiari <je...@spaggiari.org>
>
>> But it still log "localhost:" instead of the host name....
>>
>> Also, you are not trying each time with the same version.
>>
>> Initial log was:
>> /root/Software/hbase-gz/hbase-0.96.0
>> Now it's:
>> /root/Software/hbase-gz/hbase-0.95.2/
>>
>> Can you please make sure you test with 0.96.1.1? 0.95 was a dev version.
>> 0.96 has been built from that.
>>
>> Can you paste on pastebin the output of "set"?
>>
>>
>> 2013/12/27 Gerald Klein <jk...@zognet.com>
>>
>>> Ok same problem still, it just seems like it just isn't locating the base
>>> classes.
>>>
>>> Error: Could not find or load main class
>>> org.apache.hadoop.hbase.util.HBaseConfTool
>>> Error: Could not find or load main class
>>> org.apache.hadoop.hbase.zookeeper.ZKServerTool
>>> starting master, logging to
>>>
>>> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
>>> Error: Could not find or load main class
>>> org.apache.hadoop.hbase.master.HMaster
>>> Password:
>>> localhost: starting regionserver, logging to
>>>
>>> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
>>> localhost: Error: Could not find or load main class
>>> org.apache.hadoop.hbase.regionserver.HRegionServer
>>>
>>>
>>>
>>>
>>>
>>> On Fri, Dec 27, 2013 at 12:14 PM, Jean-Marc Spaggiari <
>>> jean-marc@spaggiari.org> wrote:
>>>
>>> > Thanks for sharing the files.
>>> >
>>> > So 2 things.
>>> >
>>> > first, regarding the hosts file. You have twice the same name but with
>>> 2
>>> > different IPs:
>>> > 127.0.0.1       zenlinux.localdomain zenlinux
>>> > 127.0.0.1       localhost.localdomain locahost
>>> > 192.168.1.81 zenlinux.localdomain zenlinux
>>> >
>>> > Please remove the 1st line.
>>> >
>>> > 2nd, in your hbase-site.xml can you please try without those 2
>>> properties
>>> > set? Just keep it empty. It will use the /tmp directory.
>>> >
>>> > Thanks,
>>> >
>>> > JM
>>> >
>>> >
>>> > 2013/12/27 Gerald Klein <jk...@zognet.com>
>>> >
>>> > > OK here they are first is hbase-env.sh
>>> > >
>>> > > http://pastebin.com/KPaw9aaE
>>> > >
>>> > > second hbase-site.xml
>>> > >
>>> > > http://pastebin.com/WZixuTas
>>> > >
>>> > > third hosts file
>>> > >
>>> > > http://pastebin.com/dLFi7gcN
>>> > >
>>> > >
>>> > > thanks again
>>> > >
>>> > > I am not worried about the password locally I just type it in, this
>>> is
>>> > fine
>>> > > for learning it
>>> > >
>>> > >
>>> > >
>>> > >
>>> > > On Fri, Dec 27, 2013 at 11:34 AM, Jean-Marc Spaggiari <
>>> > > jean-marc@spaggiari.org> wrote:
>>> > >
>>> > > > Attachements doesn't work on the mailing list :( You can paste
>>> them on
>>> > > > pastebin or past the content of the scripts on your email directly.
>>> > > >
>>> > > > Have you been able to configure the passwordless?
>>> > > >
>>> > > > Also, you are trying with 0.96.0, right? Can you try with 0.96.1.1
>>> > > instead?
>>> > > > http://www.apache.org/dyn/closer.cgi/hbase/
>>> > > >
>>> > > > JM
>>> > > >
>>> > > >
>>> > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
>>> > > >
>>> > > > > OK here it is and thanks a lot for taking the time.
>>> > > > >
>>> > > > >
>>> > > > > On Fri, Dec 27, 2013 at 11:15 AM, Jean-Marc Spaggiari <
>>> > > > > jean-marc@spaggiari.org> wrote:
>>> > > > >
>>> > > > >> Can you share your config files?
>>> > > > >> hbase-env.sh
>>> > > > >> hosts
>>> > > > >> hbase-site.xml
>>> > > > >>
>>> > > > >> Are you able to passwordless ssh in the same host? Like ssh
>>> MYHOST
>>> > > does
>>> > > > it
>>> > > > >> ask for a password?
>>> > > > >>
>>> > > > >> If so, can you configure it password less?
>>> > > > >>
>>> > > > >> to create the key: ssh-keygen -t rsa
>>> > > > >> To install: ssh-copy-id -i ~/.ssh/id_rsa.pub
>>> > > > your_user_name@your_host_name
>>> > > > >>
>>> > > > >> JM
>>> > > > >>
>>> > > > >>
>>> > > > >> 2013/12/27 Gerald Klein <jk...@zognet.com>
>>> > > > >>
>>> > > > >> > Yes I have added it to the conf/hbase-env.sh file in the last
>>> > email
>>> > > > >> when it
>>> > > > >> > initially failed that test, I currently have it pointed to
>>> > > > >> > /opt/oracle-jdk-bin-1.7.0.45
>>> > > > >> > which is where Gentoo has it installed.
>>> > > > >> >
>>> > > > >> >
>>> > > > >> >
>>> > > > >> >
>>> > > > >> >
>>> > > > >> > On Fri, Dec 27, 2013 at 10:48 AM, Jean-Marc Spaggiari <
>>> > > > >> > jean-marc@spaggiari.org> wrote:
>>> > > > >> >
>>> > > > >> > > Have you modified any of the files into conf/ ?
>>> > > > >> > >
>>> > > > >> > > Please add your JAVA_HOME setting into conf/hbase-env.sh and
>>> > > retry.
>>> > > > >> > >
>>> > > > >> > > The password issue is related to the passwordless setting,
>>> but
>>> > it
>>> > > > >> should
>>> > > > >> > > not be required for the standalone version. We will look at
>>> that
>>> > > > after
>>> > > > >> > you
>>> > > > >> > > try again ;)
>>> > > > >> > >
>>> > > > >> > > JM
>>> > > > >> > >
>>> > > > >> > >
>>> > > > >> > > 2013/12/27 Gerald Klein <jk...@zognet.com>
>>> > > > >> > >
>>> > > > >> > > > Thanks for the help, I unset all vars and made sure that
>>> the
>>> > > > >> JAVA_HOME
>>> > > > >> > > was
>>> > > > >> > > > set in .bashrc, Same errors but now JAVA_HOME not set as
>>> > below:
>>> > > > >> > > >
>>> > > > >> > > > Error: Could not find or load main class
>>> > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
>>> > > > >> > > > Error: Could not find or load main class
>>> > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
>>> > > > >> > > > starting master, logging to
>>> > > > >> > > >
>>> > > > >> > > >
>>> > > > >> > >
>>> > > > >> >
>>> > > > >>
>>> > > >
>>> > >
>>> >
>>> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.out
>>> > > > >> > > > Error: Could not find or load main class
>>> > > > >> > > > org.apache.hadoop.hbase.master.HMaster
>>> > > > >> > > > Password:
>>> > > > >> > > > localhost:
>>> > > > >> > > >
>>> > > > >> >
>>> > > >
>>> >
>>> +======================================================================+
>>> > > > >> > > > localhost: |      Error: JAVA_HOME is not set and Java
>>> could
>>> > not
>>> > > > be
>>> > > > >> > found
>>> > > > >> > > >       |
>>> > > > >> > > > localhost:
>>> > > > >> > > >
>>> > > > >> >
>>> > > >
>>> >
>>> +----------------------------------------------------------------------+
>>> > > > >> > > > localhost: | Please download the latest Sun JDK from the
>>> Sun
>>> > > Java
>>> > > > >> web
>>> > > > >> > > site
>>> > > > >> > > >        |
>>> > > > >> > > > localhost: |       >
>>> http://java.sun.com/javase/downloads/ <
>>> > > > >> > > >        |
>>> > > > >> > > > localhost: |
>>> > > > >> > > >        |
>>> > > > >> > > > localhost: | HBase requires Java 1.6 or later.
>>> > > > >> > > >        |
>>> > > > >> > > > localhost: | NOTE: This script will find Sun Java whether
>>> you
>>> > > > >> install
>>> > > > >> > > using
>>> > > > >> > > > the   |
>>> > > > >> > > > localhost: |       binary or the RPM based installer.
>>> > > > >> > > >       |
>>> > > > >> > > > localhost:
>>> > > > >> > > >
>>> > > > >> >
>>> > > >
>>> >
>>> +======================================================================+
>>> > > > >> > > >
>>> > > > >> > > > So I set JAVA_HOME in hbase-env.sh, but I still get the
>>> > > following
>>> > > > >> > > >
>>> > > > >> > > > Error: Could not find or load main class
>>> > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
>>> > > > >> > > > Error: Could not find or load main class
>>> > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
>>> > > > >> > > > starting master, logging to
>>> > > > >> > > >
>>> > > > >> > > >
>>> > > > >> > >
>>> > > > >> >
>>> > > > >>
>>> > > >
>>> > >
>>> >
>>> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.out
>>> > > > >> > > > Error: Could not find or load main class
>>> > > > >> > > > org.apache.hadoop.hbase.master.HMaster
>>> > > > >> > > > Password:
>>> > > > >> > > > localhost: starting regionserver, logging to
>>> > > > >> > > >
>>> > > > >> > > >
>>> > > > >> > >
>>> > > > >> >
>>> > > > >>
>>> > > >
>>> > >
>>> >
>>> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.out
>>> > > > >> > > > localhost: Error: Could not find or load main class
>>> > > > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
>>> > > > >> > > >
>>> > > > >> > > > then I forced a domain name via hostname and still got the
>>> > > > following
>>> > > > >> > > >
>>> > > > >> > > >
>>> > > > >> > > > Error: Could not find or load main class
>>> > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
>>> > > > >> > > > Error: Could not find or load main class
>>> > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
>>> > > > >> > > > starting master, logging to
>>> > > > >> > > >
>>> > > > >> > > >
>>> > > > >> > >
>>> > > > >> >
>>> > > > >>
>>> > > >
>>> > >
>>> >
>>> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
>>> > > > >> > > > Error: Could not find or load main class
>>> > > > >> > > > org.apache.hadoop.hbase.master.HMaster
>>> > > > >> > > > Password:
>>> > > > >> > > > localhost: starting regionserver, logging to
>>> > > > >> > > >
>>> > > > >> > > >
>>> > > > >> > >
>>> > > > >> >
>>> > > > >>
>>> > > >
>>> > >
>>> >
>>> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
>>> > > > >> > > > localhost: Error: Could not find or load main class
>>> > > > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
>>> > > > >> > > >
>>> > > > >> > > >
>>> > > > >> > > > I appreciate any help with this, I don't usually
>>> experience a
>>> > > > setup
>>> > > > >> > > problem
>>> > > > >> > > > like this.
>>> > > > >> > > >
>>> > > > >> > > > thanks
>>> > > > >> > > >
>>> > > > >> > > >
>>> > > > >> > > >
>>> > > > >> > > > On Fri, Dec 27, 2013 at 8:48 AM, Jean-Marc Spaggiari <
>>> > > > >> > > > jean-marc@spaggiari.org> wrote:
>>> > > > >> > > >
>>> > > > >> > > > > Hi Gerald,
>>> > > > >> > > > >
>>> > > > >> > > > > The easiest way to test HBase locally is:
>>> > > > >> > > > > 1) Download the tar.gz
>>> > > > >> > > > > 2) Ungzip it.
>>> > > > >> > > > > 3) Make sure host file contains FQDN assign to local IP
>>> > > address
>>> > > > >> (and
>>> > > > >> > > not
>>> > > > >> > > > > 127.0.0.1)
>>> > > > >> > > > > 4) define JAVA_HOME to point to you Sun JDK
>>> > > > >> > > > > 5) bin/start-hbase.sh
>>> > > > >> > > > >
>>> > > > >> > > > > Don't change anything, don't set any other variable,
>>> don't
>>> > do
>>> > > > >> > anything.
>>> > > > >> > > > > Just those 5 simple steps. Then you should have a
>>> standalone
>>> > > > >> version
>>> > > > >> > > > > running.
>>> > > > >> > > > >
>>> > > > >> > > > > JM
>>> > > > >> > > > >
>>> > > > >> > > > >
>>> > > > >> > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
>>> > > > >> > > > >
>>> > > > >> > > > > > hi I have been attempting to learn hbase and have been
>>> > > unable
>>> > > > to
>>> > > > >> > get
>>> > > > >> > > a
>>> > > > >> > > > > > local copy running, it comes back with"could not find
>>> or
>>> > > load
>>> > > > >> main
>>> > > > >> > > > class
>>> > > > >> > > > > > org.apache.hadoop.hbase.util.HBaseConfTool" and
>>> "could not
>>> > > > find
>>> > > > >> or
>>> > > > >> > > load
>>> > > > >> > > > > > main class
>>> org.apache.hadoop.hbase.zookeeper.ZKServerTool"
>>> > > and
>>> > > > >> > "culd
>>> > > > >> > > > not
>>> > > > >> > > > > > find or load main class
>>> > > > org.apache.hadoop.hbase.master.HMaster"
>>> > > > >> I
>>> > > > >> > > have
>>> > > > >> > > > > > tried adding stuff to the config HBASE_CLASSPATH but
>>> > nothing
>>> > > > >> seems
>>> > > > >> > to
>>> > > > >> > > > get
>>> > > > >> > > > > > rid of the error, I also grepped the directories from
>>> the
>>> > > > >> install
>>> > > > >> > > > package
>>> > > > >> > > > > > and could not find the class that they are looking
>>> for,
>>> > > anyone
>>> > > > >> have
>>> > > > >> > > an
>>> > > > >> > > > > idea
>>> > > > >> > > > > > of what this is? thanks
>>> > > > >> > > > > >
>>> > > > >> > > > > > --
>>> > > > >> > > > > >
>>> > > > >> > > > > > Gerald Klein DBA
>>> > > > >> > > > > >
>>> > > > >> > > > > > ContactMe@geraldklein.com
>>> > > > >> > > > > >
>>> > > > >> > > > > > www.geraldklein.com <http://geraldklein.com/>
>>> > > > >> > > > > >
>>> > > > >> > > > > > geraldklein.wordpress.com
>>> > > > >> > > > > >
>>> > > > >> > > > > > jk@zognet.com
>>> > > > >> > > > > >
>>> > > > >> > > > > > 708-599-0352
>>> > > > >> > > > > >
>>> > > > >> > > > > >
>>> > > > >> > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
>>> > > > >> > > > > >
>>> > > > >> > > > > > Linux registered user #548580
>>> > > > >> > > > > >
>>> > > > >> > > > > > Brought to you by the Amish Mafia
>>> > > > >> > > > > >
>>> > > > >> > > > >
>>> > > > >> > > >
>>> > > > >> > > >
>>> > > > >> > > >
>>> > > > >> > > > --
>>> > > > >> > > >
>>> > > > >> > > > Gerald Klein DBA
>>> > > > >> > > >
>>> > > > >> > > > ContactMe@geraldklein.com
>>> > > > >> > > >
>>> > > > >> > > > www.geraldklein.com <http://geraldklein.com/>
>>> > > > >> > > >
>>> > > > >> > > > geraldklein.wordpress.com
>>> > > > >> > > >
>>> > > > >> > > > jk@zognet.com
>>> > > > >> > > >
>>> > > > >> > > > 708-599-0352
>>> > > > >> > > >
>>> > > > >> > > >
>>> > > > >> > > > Arch Awesome, Ranger & Vim the coding triple threat.
>>> > > > >> > > >
>>> > > > >> > > > Linux registered user #548580
>>> > > > >> > > >
>>> > > > >> > > > Brought to you by the Amish Mafia
>>> > > > >> > > >
>>> > > > >> > >
>>> > > > >> >
>>> > > > >> >
>>> > > > >> >
>>> > > > >> > --
>>> > > > >> >
>>> > > > >> > Gerald Klein DBA
>>> > > > >> >
>>> > > > >> > ContactMe@geraldklein.com
>>> > > > >> >
>>> > > > >> > www.geraldklein.com <http://geraldklein.com/>
>>> > > > >> >
>>> > > > >> > geraldklein.wordpress.com
>>> > > > >> >
>>> > > > >> > jk@zognet.com
>>> > > > >> >
>>> > > > >> > 708-599-0352
>>> > > > >> >
>>> > > > >> >
>>> > > > >> > Arch Awesome, Ranger & Vim the coding triple threat.
>>> > > > >> >
>>> > > > >> > Linux registered user #548580
>>> > > > >> >
>>> > > > >> > Brought to you by the Amish Mafia
>>> > > > >> >
>>> > > > >>
>>> > > > >
>>> > > > >
>>> > > > >
>>> > > > > --
>>> > > > >
>>> > > > > Gerald Klein DBA
>>> > > > >
>>> > > > > ContactMe@geraldklein.com
>>> > > > >
>>> > > > > www.geraldklein.com <http://geraldklein.com/>
>>> > > > >
>>> > > > > geraldklein.wordpress.com
>>> > > > >
>>> > > > > jk@zognet.com
>>> > > > >
>>> > > > > 708-599-0352
>>> > > > >
>>> > > > >
>>> > > > > Arch Awesome, Ranger & Vim the coding triple threat.
>>> > > > >
>>> > > > > Linux registered user #548580
>>> > > > >
>>> > > > > Brought to you by the Amish Mafia
>>> > > > >
>>> > > > >
>>> > > >
>>> > >
>>> > >
>>> > >
>>> > > --
>>> > >
>>> > > Gerald Klein DBA
>>> > >
>>> > > ContactMe@geraldklein.com
>>> > >
>>> > > www.geraldklein.com <http://geraldklein.com/>
>>> > >
>>> > > geraldklein.wordpress.com
>>> > >
>>> > > jk@zognet.com
>>> > >
>>> > > 708-599-0352
>>> > >
>>> > >
>>> > > Arch Awesome, Ranger & Vim the coding triple threat.
>>> > >
>>> > > Linux registered user #548580
>>> > >
>>> > > Brought to you by the Amish Mafia
>>> > >
>>> >
>>>
>>>
>>>
>>> --
>>>
>>> Gerald Klein DBA
>>>
>>> ContactMe@geraldklein.com
>>>
>>> www.geraldklein.com <http://geraldklein.com/>
>>>
>>> geraldklein.wordpress.com
>>>
>>> jk@zognet.com
>>>
>>> 708-599-0352
>>>
>>>
>>> Arch Awesome, Ranger & Vim the coding triple threat.
>>>
>>> Linux registered user #548580
>>>
>>> Brought to you by the Amish Mafia
>>>
>>
>>
>

Re: hbase config problem

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
FYI,
I just tried with Trunk and got something similar to what you have.

Error: Could not find or load main class
org.apache.hadoop.hbase.util.HBaseConfTool
Error: Could not find or load main class
org.apache.hadoop.hbase.zookeeper.ZKServerTool

I will try with 0.96.1.1 shortly.

JM


2013/12/27 Jean-Marc Spaggiari <je...@spaggiari.org>

> But it still log "localhost:" instead of the host name....
>
> Also, you are not trying each time with the same version.
>
> Initial log was:
> /root/Software/hbase-gz/hbase-0.96.0
> Now it's:
> /root/Software/hbase-gz/hbase-0.95.2/
>
> Can you please make sure you test with 0.96.1.1? 0.95 was a dev version.
> 0.96 has been built from that.
>
> Can you paste on pastebin the output of "set"?
>
>
> 2013/12/27 Gerald Klein <jk...@zognet.com>
>
>> Ok same problem still, it just seems like it just isn't locating the base
>> classes.
>>
>> Error: Could not find or load main class
>> org.apache.hadoop.hbase.util.HBaseConfTool
>> Error: Could not find or load main class
>> org.apache.hadoop.hbase.zookeeper.ZKServerTool
>> starting master, logging to
>>
>> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
>> Error: Could not find or load main class
>> org.apache.hadoop.hbase.master.HMaster
>> Password:
>> localhost: starting regionserver, logging to
>>
>> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
>> localhost: Error: Could not find or load main class
>> org.apache.hadoop.hbase.regionserver.HRegionServer
>>
>>
>>
>>
>>
>> On Fri, Dec 27, 2013 at 12:14 PM, Jean-Marc Spaggiari <
>> jean-marc@spaggiari.org> wrote:
>>
>> > Thanks for sharing the files.
>> >
>> > So 2 things.
>> >
>> > first, regarding the hosts file. You have twice the same name but with 2
>> > different IPs:
>> > 127.0.0.1       zenlinux.localdomain zenlinux
>> > 127.0.0.1       localhost.localdomain locahost
>> > 192.168.1.81 zenlinux.localdomain zenlinux
>> >
>> > Please remove the 1st line.
>> >
>> > 2nd, in your hbase-site.xml can you please try without those 2
>> properties
>> > set? Just keep it empty. It will use the /tmp directory.
>> >
>> > Thanks,
>> >
>> > JM
>> >
>> >
>> > 2013/12/27 Gerald Klein <jk...@zognet.com>
>> >
>> > > OK here they are first is hbase-env.sh
>> > >
>> > > http://pastebin.com/KPaw9aaE
>> > >
>> > > second hbase-site.xml
>> > >
>> > > http://pastebin.com/WZixuTas
>> > >
>> > > third hosts file
>> > >
>> > > http://pastebin.com/dLFi7gcN
>> > >
>> > >
>> > > thanks again
>> > >
>> > > I am not worried about the password locally I just type it in, this is
>> > fine
>> > > for learning it
>> > >
>> > >
>> > >
>> > >
>> > > On Fri, Dec 27, 2013 at 11:34 AM, Jean-Marc Spaggiari <
>> > > jean-marc@spaggiari.org> wrote:
>> > >
>> > > > Attachements doesn't work on the mailing list :( You can paste them
>> on
>> > > > pastebin or past the content of the scripts on your email directly.
>> > > >
>> > > > Have you been able to configure the passwordless?
>> > > >
>> > > > Also, you are trying with 0.96.0, right? Can you try with 0.96.1.1
>> > > instead?
>> > > > http://www.apache.org/dyn/closer.cgi/hbase/
>> > > >
>> > > > JM
>> > > >
>> > > >
>> > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
>> > > >
>> > > > > OK here it is and thanks a lot for taking the time.
>> > > > >
>> > > > >
>> > > > > On Fri, Dec 27, 2013 at 11:15 AM, Jean-Marc Spaggiari <
>> > > > > jean-marc@spaggiari.org> wrote:
>> > > > >
>> > > > >> Can you share your config files?
>> > > > >> hbase-env.sh
>> > > > >> hosts
>> > > > >> hbase-site.xml
>> > > > >>
>> > > > >> Are you able to passwordless ssh in the same host? Like ssh
>> MYHOST
>> > > does
>> > > > it
>> > > > >> ask for a password?
>> > > > >>
>> > > > >> If so, can you configure it password less?
>> > > > >>
>> > > > >> to create the key: ssh-keygen -t rsa
>> > > > >> To install: ssh-copy-id -i ~/.ssh/id_rsa.pub
>> > > > your_user_name@your_host_name
>> > > > >>
>> > > > >> JM
>> > > > >>
>> > > > >>
>> > > > >> 2013/12/27 Gerald Klein <jk...@zognet.com>
>> > > > >>
>> > > > >> > Yes I have added it to the conf/hbase-env.sh file in the last
>> > email
>> > > > >> when it
>> > > > >> > initially failed that test, I currently have it pointed to
>> > > > >> > /opt/oracle-jdk-bin-1.7.0.45
>> > > > >> > which is where Gentoo has it installed.
>> > > > >> >
>> > > > >> >
>> > > > >> >
>> > > > >> >
>> > > > >> >
>> > > > >> > On Fri, Dec 27, 2013 at 10:48 AM, Jean-Marc Spaggiari <
>> > > > >> > jean-marc@spaggiari.org> wrote:
>> > > > >> >
>> > > > >> > > Have you modified any of the files into conf/ ?
>> > > > >> > >
>> > > > >> > > Please add your JAVA_HOME setting into conf/hbase-env.sh and
>> > > retry.
>> > > > >> > >
>> > > > >> > > The password issue is related to the passwordless setting,
>> but
>> > it
>> > > > >> should
>> > > > >> > > not be required for the standalone version. We will look at
>> that
>> > > > after
>> > > > >> > you
>> > > > >> > > try again ;)
>> > > > >> > >
>> > > > >> > > JM
>> > > > >> > >
>> > > > >> > >
>> > > > >> > > 2013/12/27 Gerald Klein <jk...@zognet.com>
>> > > > >> > >
>> > > > >> > > > Thanks for the help, I unset all vars and made sure that
>> the
>> > > > >> JAVA_HOME
>> > > > >> > > was
>> > > > >> > > > set in .bashrc, Same errors but now JAVA_HOME not set as
>> > below:
>> > > > >> > > >
>> > > > >> > > > Error: Could not find or load main class
>> > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
>> > > > >> > > > Error: Could not find or load main class
>> > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
>> > > > >> > > > starting master, logging to
>> > > > >> > > >
>> > > > >> > > >
>> > > > >> > >
>> > > > >> >
>> > > > >>
>> > > >
>> > >
>> >
>> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.out
>> > > > >> > > > Error: Could not find or load main class
>> > > > >> > > > org.apache.hadoop.hbase.master.HMaster
>> > > > >> > > > Password:
>> > > > >> > > > localhost:
>> > > > >> > > >
>> > > > >> >
>> > > >
>> > +======================================================================+
>> > > > >> > > > localhost: |      Error: JAVA_HOME is not set and Java
>> could
>> > not
>> > > > be
>> > > > >> > found
>> > > > >> > > >       |
>> > > > >> > > > localhost:
>> > > > >> > > >
>> > > > >> >
>> > > >
>> > +----------------------------------------------------------------------+
>> > > > >> > > > localhost: | Please download the latest Sun JDK from the
>> Sun
>> > > Java
>> > > > >> web
>> > > > >> > > site
>> > > > >> > > >        |
>> > > > >> > > > localhost: |       > http://java.sun.com/javase/downloads/<
>> > > > >> > > >        |
>> > > > >> > > > localhost: |
>> > > > >> > > >        |
>> > > > >> > > > localhost: | HBase requires Java 1.6 or later.
>> > > > >> > > >        |
>> > > > >> > > > localhost: | NOTE: This script will find Sun Java whether
>> you
>> > > > >> install
>> > > > >> > > using
>> > > > >> > > > the   |
>> > > > >> > > > localhost: |       binary or the RPM based installer.
>> > > > >> > > >       |
>> > > > >> > > > localhost:
>> > > > >> > > >
>> > > > >> >
>> > > >
>> > +======================================================================+
>> > > > >> > > >
>> > > > >> > > > So I set JAVA_HOME in hbase-env.sh, but I still get the
>> > > following
>> > > > >> > > >
>> > > > >> > > > Error: Could not find or load main class
>> > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
>> > > > >> > > > Error: Could not find or load main class
>> > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
>> > > > >> > > > starting master, logging to
>> > > > >> > > >
>> > > > >> > > >
>> > > > >> > >
>> > > > >> >
>> > > > >>
>> > > >
>> > >
>> >
>> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.out
>> > > > >> > > > Error: Could not find or load main class
>> > > > >> > > > org.apache.hadoop.hbase.master.HMaster
>> > > > >> > > > Password:
>> > > > >> > > > localhost: starting regionserver, logging to
>> > > > >> > > >
>> > > > >> > > >
>> > > > >> > >
>> > > > >> >
>> > > > >>
>> > > >
>> > >
>> >
>> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.out
>> > > > >> > > > localhost: Error: Could not find or load main class
>> > > > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
>> > > > >> > > >
>> > > > >> > > > then I forced a domain name via hostname and still got the
>> > > > following
>> > > > >> > > >
>> > > > >> > > >
>> > > > >> > > > Error: Could not find or load main class
>> > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
>> > > > >> > > > Error: Could not find or load main class
>> > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
>> > > > >> > > > starting master, logging to
>> > > > >> > > >
>> > > > >> > > >
>> > > > >> > >
>> > > > >> >
>> > > > >>
>> > > >
>> > >
>> >
>> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
>> > > > >> > > > Error: Could not find or load main class
>> > > > >> > > > org.apache.hadoop.hbase.master.HMaster
>> > > > >> > > > Password:
>> > > > >> > > > localhost: starting regionserver, logging to
>> > > > >> > > >
>> > > > >> > > >
>> > > > >> > >
>> > > > >> >
>> > > > >>
>> > > >
>> > >
>> >
>> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
>> > > > >> > > > localhost: Error: Could not find or load main class
>> > > > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
>> > > > >> > > >
>> > > > >> > > >
>> > > > >> > > > I appreciate any help with this, I don't usually
>> experience a
>> > > > setup
>> > > > >> > > problem
>> > > > >> > > > like this.
>> > > > >> > > >
>> > > > >> > > > thanks
>> > > > >> > > >
>> > > > >> > > >
>> > > > >> > > >
>> > > > >> > > > On Fri, Dec 27, 2013 at 8:48 AM, Jean-Marc Spaggiari <
>> > > > >> > > > jean-marc@spaggiari.org> wrote:
>> > > > >> > > >
>> > > > >> > > > > Hi Gerald,
>> > > > >> > > > >
>> > > > >> > > > > The easiest way to test HBase locally is:
>> > > > >> > > > > 1) Download the tar.gz
>> > > > >> > > > > 2) Ungzip it.
>> > > > >> > > > > 3) Make sure host file contains FQDN assign to local IP
>> > > address
>> > > > >> (and
>> > > > >> > > not
>> > > > >> > > > > 127.0.0.1)
>> > > > >> > > > > 4) define JAVA_HOME to point to you Sun JDK
>> > > > >> > > > > 5) bin/start-hbase.sh
>> > > > >> > > > >
>> > > > >> > > > > Don't change anything, don't set any other variable,
>> don't
>> > do
>> > > > >> > anything.
>> > > > >> > > > > Just those 5 simple steps. Then you should have a
>> standalone
>> > > > >> version
>> > > > >> > > > > running.
>> > > > >> > > > >
>> > > > >> > > > > JM
>> > > > >> > > > >
>> > > > >> > > > >
>> > > > >> > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
>> > > > >> > > > >
>> > > > >> > > > > > hi I have been attempting to learn hbase and have been
>> > > unable
>> > > > to
>> > > > >> > get
>> > > > >> > > a
>> > > > >> > > > > > local copy running, it comes back with"could not find
>> or
>> > > load
>> > > > >> main
>> > > > >> > > > class
>> > > > >> > > > > > org.apache.hadoop.hbase.util.HBaseConfTool" and "could
>> not
>> > > > find
>> > > > >> or
>> > > > >> > > load
>> > > > >> > > > > > main class
>> org.apache.hadoop.hbase.zookeeper.ZKServerTool"
>> > > and
>> > > > >> > "culd
>> > > > >> > > > not
>> > > > >> > > > > > find or load main class
>> > > > org.apache.hadoop.hbase.master.HMaster"
>> > > > >> I
>> > > > >> > > have
>> > > > >> > > > > > tried adding stuff to the config HBASE_CLASSPATH but
>> > nothing
>> > > > >> seems
>> > > > >> > to
>> > > > >> > > > get
>> > > > >> > > > > > rid of the error, I also grepped the directories from
>> the
>> > > > >> install
>> > > > >> > > > package
>> > > > >> > > > > > and could not find the class that they are looking for,
>> > > anyone
>> > > > >> have
>> > > > >> > > an
>> > > > >> > > > > idea
>> > > > >> > > > > > of what this is? thanks
>> > > > >> > > > > >
>> > > > >> > > > > > --
>> > > > >> > > > > >
>> > > > >> > > > > > Gerald Klein DBA
>> > > > >> > > > > >
>> > > > >> > > > > > ContactMe@geraldklein.com
>> > > > >> > > > > >
>> > > > >> > > > > > www.geraldklein.com <http://geraldklein.com/>
>> > > > >> > > > > >
>> > > > >> > > > > > geraldklein.wordpress.com
>> > > > >> > > > > >
>> > > > >> > > > > > jk@zognet.com
>> > > > >> > > > > >
>> > > > >> > > > > > 708-599-0352
>> > > > >> > > > > >
>> > > > >> > > > > >
>> > > > >> > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
>> > > > >> > > > > >
>> > > > >> > > > > > Linux registered user #548580
>> > > > >> > > > > >
>> > > > >> > > > > > Brought to you by the Amish Mafia
>> > > > >> > > > > >
>> > > > >> > > > >
>> > > > >> > > >
>> > > > >> > > >
>> > > > >> > > >
>> > > > >> > > > --
>> > > > >> > > >
>> > > > >> > > > Gerald Klein DBA
>> > > > >> > > >
>> > > > >> > > > ContactMe@geraldklein.com
>> > > > >> > > >
>> > > > >> > > > www.geraldklein.com <http://geraldklein.com/>
>> > > > >> > > >
>> > > > >> > > > geraldklein.wordpress.com
>> > > > >> > > >
>> > > > >> > > > jk@zognet.com
>> > > > >> > > >
>> > > > >> > > > 708-599-0352
>> > > > >> > > >
>> > > > >> > > >
>> > > > >> > > > Arch Awesome, Ranger & Vim the coding triple threat.
>> > > > >> > > >
>> > > > >> > > > Linux registered user #548580
>> > > > >> > > >
>> > > > >> > > > Brought to you by the Amish Mafia
>> > > > >> > > >
>> > > > >> > >
>> > > > >> >
>> > > > >> >
>> > > > >> >
>> > > > >> > --
>> > > > >> >
>> > > > >> > Gerald Klein DBA
>> > > > >> >
>> > > > >> > ContactMe@geraldklein.com
>> > > > >> >
>> > > > >> > www.geraldklein.com <http://geraldklein.com/>
>> > > > >> >
>> > > > >> > geraldklein.wordpress.com
>> > > > >> >
>> > > > >> > jk@zognet.com
>> > > > >> >
>> > > > >> > 708-599-0352
>> > > > >> >
>> > > > >> >
>> > > > >> > Arch Awesome, Ranger & Vim the coding triple threat.
>> > > > >> >
>> > > > >> > Linux registered user #548580
>> > > > >> >
>> > > > >> > Brought to you by the Amish Mafia
>> > > > >> >
>> > > > >>
>> > > > >
>> > > > >
>> > > > >
>> > > > > --
>> > > > >
>> > > > > Gerald Klein DBA
>> > > > >
>> > > > > ContactMe@geraldklein.com
>> > > > >
>> > > > > www.geraldklein.com <http://geraldklein.com/>
>> > > > >
>> > > > > geraldklein.wordpress.com
>> > > > >
>> > > > > jk@zognet.com
>> > > > >
>> > > > > 708-599-0352
>> > > > >
>> > > > >
>> > > > > Arch Awesome, Ranger & Vim the coding triple threat.
>> > > > >
>> > > > > Linux registered user #548580
>> > > > >
>> > > > > Brought to you by the Amish Mafia
>> > > > >
>> > > > >
>> > > >
>> > >
>> > >
>> > >
>> > > --
>> > >
>> > > Gerald Klein DBA
>> > >
>> > > ContactMe@geraldklein.com
>> > >
>> > > www.geraldklein.com <http://geraldklein.com/>
>> > >
>> > > geraldklein.wordpress.com
>> > >
>> > > jk@zognet.com
>> > >
>> > > 708-599-0352
>> > >
>> > >
>> > > Arch Awesome, Ranger & Vim the coding triple threat.
>> > >
>> > > Linux registered user #548580
>> > >
>> > > Brought to you by the Amish Mafia
>> > >
>> >
>>
>>
>>
>> --
>>
>> Gerald Klein DBA
>>
>> ContactMe@geraldklein.com
>>
>> www.geraldklein.com <http://geraldklein.com/>
>>
>> geraldklein.wordpress.com
>>
>> jk@zognet.com
>>
>> 708-599-0352
>>
>>
>> Arch Awesome, Ranger & Vim the coding triple threat.
>>
>> Linux registered user #548580
>>
>> Brought to you by the Amish Mafia
>>
>
>

Re: hbase config problem

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
You're welcome. Looking forward to helping you again ;)

JM


2013/12/27 Gerald Klein <jk...@zognet.com>

> OK Yea!! Looks like we got it with 96.1.1 can't say what the problem was
> but this one works. I am quite puzzled. But I wanted to thank you for your
> help and patience, quite more then I could expect. I truly appreciate your
> time and help with this.
>
> thanks again
>
> --jerry
>
>
> On Fri, Dec 27, 2013 at 1:21 PM, Jean-Marc Spaggiari <
> jean-marc@spaggiari.org> wrote:
>
> > Hadoop 2 is for Hadoop 2... Hadoop 1 is for.... guess.... Hadoop 1 ;)
> >
> > If you are running in distributed mode with Hadoop 2.x.x then use the tar
> > marked Hadoop 2.
> >
> > For standalone, I used Hadoop 1 version.
> >
> > Regarding your java_home it should point where you JDK is. In my own
> > environment it's /usr/local/jdk1.7.0_45 not the /bin nor the /bin/java.
> You
> > should not point to you ..../bin/java file. But into the JDK home
> > directory.
> >
> >
> > JM
> >
> >
> > 2013/12/27 Gerald Klein <jk...@zognet.com>
> >
> > > yes I will try with 96.1.1 let me ask you what is the difference
> between
> > > files marked hadoop 1 and hadoop 2?
> > >
> > >
> > > On Fri, Dec 27, 2013 at 1:01 PM, Jean-Marc Spaggiari <
> > > jean-marc@spaggiari.org> wrote:
> > >
> > > > That's strange. It's the same issue I get with trunk, but I don't
> face
> > > that
> > > > with 0.96.1.1. Are you testing with 0.96.0? Or 0.96.1.1? Can you try
> > with
> > > > 0.96.1.1?
> > > >
> > > >
> > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > >
> > > > > Ok sorry about the versions here is 96 I am not sure why the
> > > "localhost:"
> > > > > is there as you can see from the prompt, it is showing the logged
> in
> > > > domain
> > > > > as different.
> > > > >
> > > > > [root@zenlinux.localdomain.com ~/Software/hbase-gz/hbase-0.96.0]#
> > (in
> > > > > ranger) bin/start-hbase.sh
> > > > > Error: Could not find or load main class
> > > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > Error: Could not find or load main class
> > > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > starting master, logging to
> > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > > > > Error: Could not find or load main class
> > > > > org.apache.hadoop.hbase.master.HMaster
> > > > > Password:
> > > > > localhost: starting regionserver, logging to
> > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > > > > localhost: Error: Could not find or load main class
> > > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Fri, Dec 27, 2013 at 12:39 PM, Jean-Marc Spaggiari <
> > > > > jean-marc@spaggiari.org> wrote:
> > > > >
> > > > > > But it still log "localhost:" instead of the host name....
> > > > > >
> > > > > > Also, you are not trying each time with the same version.
> > > > > >
> > > > > > Initial log was:
> > > > > > /root/Software/hbase-gz/hbase-0.96.0
> > > > > > Now it's:
> > > > > > /root/Software/hbase-gz/hbase-0.95.2/
> > > > > >
> > > > > > Can you please make sure you test with 0.96.1.1? 0.95 was a dev
> > > > version.
> > > > > > 0.96 has been built from that.
> > > > > >
> > > > > > Can you paste on pastebin the output of "set"?
> > > > > >
> > > > > >
> > > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > >
> > > > > > > Ok same problem still, it just seems like it just isn't
> locating
> > > the
> > > > > base
> > > > > > > classes.
> > > > > > >
> > > > > > > Error: Could not find or load main class
> > > > > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > > > Error: Could not find or load main class
> > > > > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > > > starting master, logging to
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > > > > > > Error: Could not find or load main class
> > > > > > > org.apache.hadoop.hbase.master.HMaster
> > > > > > > Password:
> > > > > > > localhost: starting regionserver, logging to
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > > > > > > localhost: Error: Could not find or load main class
> > > > > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > On Fri, Dec 27, 2013 at 12:14 PM, Jean-Marc Spaggiari <
> > > > > > > jean-marc@spaggiari.org> wrote:
> > > > > > >
> > > > > > > > Thanks for sharing the files.
> > > > > > > >
> > > > > > > > So 2 things.
> > > > > > > >
> > > > > > > > first, regarding the hosts file. You have twice the same name
> > but
> > > > > with
> > > > > > 2
> > > > > > > > different IPs:
> > > > > > > > 127.0.0.1       zenlinux.localdomain zenlinux
> > > > > > > > 127.0.0.1       localhost.localdomain locahost
> > > > > > > > 192.168.1.81 zenlinux.localdomain zenlinux
> > > > > > > >
> > > > > > > > Please remove the 1st line.
> > > > > > > >
> > > > > > > > 2nd, in your hbase-site.xml can you please try without those
> 2
> > > > > > properties
> > > > > > > > set? Just keep it empty. It will use the /tmp directory.
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > >
> > > > > > > > JM
> > > > > > > >
> > > > > > > >
> > > > > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > > >
> > > > > > > > > OK here they are first is hbase-env.sh
> > > > > > > > >
> > > > > > > > > http://pastebin.com/KPaw9aaE
> > > > > > > > >
> > > > > > > > > second hbase-site.xml
> > > > > > > > >
> > > > > > > > > http://pastebin.com/WZixuTas
> > > > > > > > >
> > > > > > > > > third hosts file
> > > > > > > > >
> > > > > > > > > http://pastebin.com/dLFi7gcN
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > thanks again
> > > > > > > > >
> > > > > > > > > I am not worried about the password locally I just type it
> > in,
> > > > this
> > > > > > is
> > > > > > > > fine
> > > > > > > > > for learning it
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > On Fri, Dec 27, 2013 at 11:34 AM, Jean-Marc Spaggiari <
> > > > > > > > > jean-marc@spaggiari.org> wrote:
> > > > > > > > >
> > > > > > > > > > Attachements doesn't work on the mailing list :( You can
> > > paste
> > > > > them
> > > > > > > on
> > > > > > > > > > pastebin or past the content of the scripts on your email
> > > > > directly.
> > > > > > > > > >
> > > > > > > > > > Have you been able to configure the passwordless?
> > > > > > > > > >
> > > > > > > > > > Also, you are trying with 0.96.0, right? Can you try with
> > > > > 0.96.1.1
> > > > > > > > > instead?
> > > > > > > > > > http://www.apache.org/dyn/closer.cgi/hbase/
> > > > > > > > > >
> > > > > > > > > > JM
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > > > > >
> > > > > > > > > > > OK here it is and thanks a lot for taking the time.
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > On Fri, Dec 27, 2013 at 11:15 AM, Jean-Marc Spaggiari <
> > > > > > > > > > > jean-marc@spaggiari.org> wrote:
> > > > > > > > > > >
> > > > > > > > > > >> Can you share your config files?
> > > > > > > > > > >> hbase-env.sh
> > > > > > > > > > >> hosts
> > > > > > > > > > >> hbase-site.xml
> > > > > > > > > > >>
> > > > > > > > > > >> Are you able to passwordless ssh in the same host?
> Like
> > > ssh
> > > > > > MYHOST
> > > > > > > > > does
> > > > > > > > > > it
> > > > > > > > > > >> ask for a password?
> > > > > > > > > > >>
> > > > > > > > > > >> If so, can you configure it password less?
> > > > > > > > > > >>
> > > > > > > > > > >> to create the key: ssh-keygen -t rsa
> > > > > > > > > > >> To install: ssh-copy-id -i ~/.ssh/id_rsa.pub
> > > > > > > > > > your_user_name@your_host_name
> > > > > > > > > > >>
> > > > > > > > > > >> JM
> > > > > > > > > > >>
> > > > > > > > > > >>
> > > > > > > > > > >> 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > > > > > >>
> > > > > > > > > > >> > Yes I have added it to the conf/hbase-env.sh file in
> > the
> > > > > last
> > > > > > > > email
> > > > > > > > > > >> when it
> > > > > > > > > > >> > initially failed that test, I currently have it
> > pointed
> > > to
> > > > > > > > > > >> > /opt/oracle-jdk-bin-1.7.0.45
> > > > > > > > > > >> > which is where Gentoo has it installed.
> > > > > > > > > > >> >
> > > > > > > > > > >> >
> > > > > > > > > > >> >
> > > > > > > > > > >> >
> > > > > > > > > > >> >
> > > > > > > > > > >> > On Fri, Dec 27, 2013 at 10:48 AM, Jean-Marc
> Spaggiari
> > <
> > > > > > > > > > >> > jean-marc@spaggiari.org> wrote:
> > > > > > > > > > >> >
> > > > > > > > > > >> > > Have you modified any of the files into conf/ ?
> > > > > > > > > > >> > >
> > > > > > > > > > >> > > Please add your JAVA_HOME setting into
> > > conf/hbase-env.sh
> > > > > and
> > > > > > > > > retry.
> > > > > > > > > > >> > >
> > > > > > > > > > >> > > The password issue is related to the passwordless
> > > > setting,
> > > > > > but
> > > > > > > > it
> > > > > > > > > > >> should
> > > > > > > > > > >> > > not be required for the standalone version. We
> will
> > > look
> > > > > at
> > > > > > > that
> > > > > > > > > > after
> > > > > > > > > > >> > you
> > > > > > > > > > >> > > try again ;)
> > > > > > > > > > >> > >
> > > > > > > > > > >> > > JM
> > > > > > > > > > >> > >
> > > > > > > > > > >> > >
> > > > > > > > > > >> > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > > > > > >> > >
> > > > > > > > > > >> > > > Thanks for the help, I unset all vars and made
> > sure
> > > > that
> > > > > > the
> > > > > > > > > > >> JAVA_HOME
> > > > > > > > > > >> > > was
> > > > > > > > > > >> > > > set in .bashrc, Same errors but now JAVA_HOME
> not
> > > set
> > > > as
> > > > > > > > below:
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > > > > > > >> > > > starting master, logging to
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > >
> > > > > > > > > > >> >
> > > > > > > > > > >>
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.out
> > > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > > > > > > > >> > > > Password:
> > > > > > > > > > >> > > > localhost:
> > > > > > > > > > >> > > >
> > > > > > > > > > >> >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > +======================================================================+
> > > > > > > > > > >> > > > localhost: |      Error: JAVA_HOME is not set
> and
> > > Java
> > > > > > could
> > > > > > > > not
> > > > > > > > > > be
> > > > > > > > > > >> > found
> > > > > > > > > > >> > > >       |
> > > > > > > > > > >> > > > localhost:
> > > > > > > > > > >> > > >
> > > > > > > > > > >> >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > +----------------------------------------------------------------------+
> > > > > > > > > > >> > > > localhost: | Please download the latest Sun JDK
> > from
> > > > the
> > > > > > Sun
> > > > > > > > > Java
> > > > > > > > > > >> web
> > > > > > > > > > >> > > site
> > > > > > > > > > >> > > >        |
> > > > > > > > > > >> > > > localhost: |       >
> > > > > > http://java.sun.com/javase/downloads/<
> > > > > > > > > > >> > > >        |
> > > > > > > > > > >> > > > localhost: |
> > > > > > > > > > >> > > >        |
> > > > > > > > > > >> > > > localhost: | HBase requires Java 1.6 or later.
> > > > > > > > > > >> > > >        |
> > > > > > > > > > >> > > > localhost: | NOTE: This script will find Sun
> Java
> > > > > whether
> > > > > > > you
> > > > > > > > > > >> install
> > > > > > > > > > >> > > using
> > > > > > > > > > >> > > > the   |
> > > > > > > > > > >> > > > localhost: |       binary or the RPM based
> > > installer.
> > > > > > > > > > >> > > >       |
> > > > > > > > > > >> > > > localhost:
> > > > > > > > > > >> > > >
> > > > > > > > > > >> >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > +======================================================================+
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > > So I set JAVA_HOME in hbase-env.sh, but I still
> > get
> > > > the
> > > > > > > > > following
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > > > > > > >> > > > starting master, logging to
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > >
> > > > > > > > > > >> >
> > > > > > > > > > >>
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.out
> > > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > > > > > > > >> > > > Password:
> > > > > > > > > > >> > > > localhost: starting regionserver, logging to
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > >
> > > > > > > > > > >> >
> > > > > > > > > > >>
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.out
> > > > > > > > > > >> > > > localhost: Error: Could not find or load main
> > class
> > > > > > > > > > >> > > >
> org.apache.hadoop.hbase.regionserver.HRegionServer
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > > then I forced a domain name via hostname and
> still
> > > got
> > > > > the
> > > > > > > > > > following
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > > > > > > >> > > > starting master, logging to
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > >
> > > > > > > > > > >> >
> > > > > > > > > > >>
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > > > > > > > >> > > > Password:
> > > > > > > > > > >> > > > localhost: starting regionserver, logging to
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > >
> > > > > > > > > > >> >
> > > > > > > > > > >>
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > > > > > > > > > >> > > > localhost: Error: Could not find or load main
> > class
> > > > > > > > > > >> > > >
> org.apache.hadoop.hbase.regionserver.HRegionServer
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > > I appreciate any help with this, I don't usually
> > > > > > experience
> > > > > > > a
> > > > > > > > > > setup
> > > > > > > > > > >> > > problem
> > > > > > > > > > >> > > > like this.
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > > thanks
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > > On Fri, Dec 27, 2013 at 8:48 AM, Jean-Marc
> > > Spaggiari <
> > > > > > > > > > >> > > > jean-marc@spaggiari.org> wrote:
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > > > Hi Gerald,
> > > > > > > > > > >> > > > >
> > > > > > > > > > >> > > > > The easiest way to test HBase locally is:
> > > > > > > > > > >> > > > > 1) Download the tar.gz
> > > > > > > > > > >> > > > > 2) Ungzip it.
> > > > > > > > > > >> > > > > 3) Make sure host file contains FQDN assign to
> > > local
> > > > > IP
> > > > > > > > > address
> > > > > > > > > > >> (and
> > > > > > > > > > >> > > not
> > > > > > > > > > >> > > > > 127.0.0.1)
> > > > > > > > > > >> > > > > 4) define JAVA_HOME to point to you Sun JDK
> > > > > > > > > > >> > > > > 5) bin/start-hbase.sh
> > > > > > > > > > >> > > > >
> > > > > > > > > > >> > > > > Don't change anything, don't set any other
> > > variable,
> > > > > > don't
> > > > > > > > do
> > > > > > > > > > >> > anything.
> > > > > > > > > > >> > > > > Just those 5 simple steps. Then you should
> have
> > a
> > > > > > > standalone
> > > > > > > > > > >> version
> > > > > > > > > > >> > > > > running.
> > > > > > > > > > >> > > > >
> > > > > > > > > > >> > > > > JM
> > > > > > > > > > >> > > > >
> > > > > > > > > > >> > > > >
> > > > > > > > > > >> > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > > > > > >> > > > >
> > > > > > > > > > >> > > > > > hi I have been attempting to learn hbase and
> > > have
> > > > > been
> > > > > > > > > unable
> > > > > > > > > > to
> > > > > > > > > > >> > get
> > > > > > > > > > >> > > a
> > > > > > > > > > >> > > > > > local copy running, it comes back with"could
> > not
> > > > > find
> > > > > > or
> > > > > > > > > load
> > > > > > > > > > >> main
> > > > > > > > > > >> > > > class
> > > > > > > > > > >> > > > > > org.apache.hadoop.hbase.util.HBaseConfTool"
> > and
> > > > > "could
> > > > > > > not
> > > > > > > > > > find
> > > > > > > > > > >> or
> > > > > > > > > > >> > > load
> > > > > > > > > > >> > > > > > main class
> > > > > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool"
> > > > > > > > > and
> > > > > > > > > > >> > "culd
> > > > > > > > > > >> > > > not
> > > > > > > > > > >> > > > > > find or load main class
> > > > > > > > > > org.apache.hadoop.hbase.master.HMaster"
> > > > > > > > > > >> I
> > > > > > > > > > >> > > have
> > > > > > > > > > >> > > > > > tried adding stuff to the config
> > HBASE_CLASSPATH
> > > > but
> > > > > > > > nothing
> > > > > > > > > > >> seems
> > > > > > > > > > >> > to
> > > > > > > > > > >> > > > get
> > > > > > > > > > >> > > > > > rid of the error, I also grepped the
> > directories
> > > > > from
> > > > > > > the
> > > > > > > > > > >> install
> > > > > > > > > > >> > > > package
> > > > > > > > > > >> > > > > > and could not find the class that they are
> > > looking
> > > > > > for,
> > > > > > > > > anyone
> > > > > > > > > > >> have
> > > > > > > > > > >> > > an
> > > > > > > > > > >> > > > > idea
> > > > > > > > > > >> > > > > > of what this is? thanks
> > > > > > > > > > >> > > > > >
> > > > > > > > > > >> > > > > > --
> > > > > > > > > > >> > > > > >
> > > > > > > > > > >> > > > > > Gerald Klein DBA
> > > > > > > > > > >> > > > > >
> > > > > > > > > > >> > > > > > ContactMe@geraldklein.com
> > > > > > > > > > >> > > > > >
> > > > > > > > > > >> > > > > > www.geraldklein.com <
> http://geraldklein.com/>
> > > > > > > > > > >> > > > > >
> > > > > > > > > > >> > > > > > geraldklein.wordpress.com
> > > > > > > > > > >> > > > > >
> > > > > > > > > > >> > > > > > jk@zognet.com
> > > > > > > > > > >> > > > > >
> > > > > > > > > > >> > > > > > 708-599-0352
> > > > > > > > > > >> > > > > >
> > > > > > > > > > >> > > > > >
> > > > > > > > > > >> > > > > > Arch Awesome, Ranger & Vim the coding triple
> > > > threat.
> > > > > > > > > > >> > > > > >
> > > > > > > > > > >> > > > > > Linux registered user #548580
> > > > > > > > > > >> > > > > >
> > > > > > > > > > >> > > > > > Brought to you by the Amish Mafia
> > > > > > > > > > >> > > > > >
> > > > > > > > > > >> > > > >
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > > --
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > > Gerald Klein DBA
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > > ContactMe@geraldklein.com
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > > geraldklein.wordpress.com
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > > jk@zognet.com
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > > 708-599-0352
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > > Arch Awesome, Ranger & Vim the coding triple
> > threat.
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > > Linux registered user #548580
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > > > Brought to you by the Amish Mafia
> > > > > > > > > > >> > > >
> > > > > > > > > > >> > >
> > > > > > > > > > >> >
> > > > > > > > > > >> >
> > > > > > > > > > >> >
> > > > > > > > > > >> > --
> > > > > > > > > > >> >
> > > > > > > > > > >> > Gerald Klein DBA
> > > > > > > > > > >> >
> > > > > > > > > > >> > ContactMe@geraldklein.com
> > > > > > > > > > >> >
> > > > > > > > > > >> > www.geraldklein.com <http://geraldklein.com/>
> > > > > > > > > > >> >
> > > > > > > > > > >> > geraldklein.wordpress.com
> > > > > > > > > > >> >
> > > > > > > > > > >> > jk@zognet.com
> > > > > > > > > > >> >
> > > > > > > > > > >> > 708-599-0352
> > > > > > > > > > >> >
> > > > > > > > > > >> >
> > > > > > > > > > >> > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > > > > > > >> >
> > > > > > > > > > >> > Linux registered user #548580
> > > > > > > > > > >> >
> > > > > > > > > > >> > Brought to you by the Amish Mafia
> > > > > > > > > > >> >
> > > > > > > > > > >>
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > --
> > > > > > > > > > >
> > > > > > > > > > > Gerald Klein DBA
> > > > > > > > > > >
> > > > > > > > > > > ContactMe@geraldklein.com
> > > > > > > > > > >
> > > > > > > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > > > > > > >
> > > > > > > > > > > geraldklein.wordpress.com
> > > > > > > > > > >
> > > > > > > > > > > jk@zognet.com
> > > > > > > > > > >
> > > > > > > > > > > 708-599-0352
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > > > > > > >
> > > > > > > > > > > Linux registered user #548580
> > > > > > > > > > >
> > > > > > > > > > > Brought to you by the Amish Mafia
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > >
> > > > > > > > > Gerald Klein DBA
> > > > > > > > >
> > > > > > > > > ContactMe@geraldklein.com
> > > > > > > > >
> > > > > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > > > > >
> > > > > > > > > geraldklein.wordpress.com
> > > > > > > > >
> > > > > > > > > jk@zognet.com
> > > > > > > > >
> > > > > > > > > 708-599-0352
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > > > > >
> > > > > > > > > Linux registered user #548580
> > > > > > > > >
> > > > > > > > > Brought to you by the Amish Mafia
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > >
> > > > > > > Gerald Klein DBA
> > > > > > >
> > > > > > > ContactMe@geraldklein.com
> > > > > > >
> > > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > > >
> > > > > > > geraldklein.wordpress.com
> > > > > > >
> > > > > > > jk@zognet.com
> > > > > > >
> > > > > > > 708-599-0352
> > > > > > >
> > > > > > >
> > > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > > >
> > > > > > > Linux registered user #548580
> > > > > > >
> > > > > > > Brought to you by the Amish Mafia
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > Gerald Klein DBA
> > > > >
> > > > > ContactMe@geraldklein.com
> > > > >
> > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > >
> > > > > geraldklein.wordpress.com
> > > > >
> > > > > jk@zognet.com
> > > > >
> > > > > 708-599-0352
> > > > >
> > > > >
> > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > >
> > > > > Linux registered user #548580
> > > > >
> > > > > Brought to you by the Amish Mafia
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > >
> > > Gerald Klein DBA
> > >
> > > ContactMe@geraldklein.com
> > >
> > > www.geraldklein.com <http://geraldklein.com/>
> > >
> > > geraldklein.wordpress.com
> > >
> > > jk@zognet.com
> > >
> > > 708-599-0352
> > >
> > >
> > > Arch Awesome, Ranger & Vim the coding triple threat.
> > >
> > > Linux registered user #548580
> > >
> > > Brought to you by the Amish Mafia
> > >
> >
>
>
>
> --
>
> Gerald Klein DBA
>
> ContactMe@geraldklein.com
>
> www.geraldklein.com <http://geraldklein.com/>
>
> geraldklein.wordpress.com
>
> jk@zognet.com
>
> 708-599-0352
>
>
> Arch Awesome, Ranger & Vim the coding triple threat.
>
> Linux registered user #548580
>
> Brought to you by the Amish Mafia
>

Re: hbase config problem

Posted by Gerald Klein <jk...@zognet.com>.
OK Yea!! Looks like we got it with 96.1.1 can't say what the problem was
but this one works. I am quite puzzled. But I wanted to thank you for your
help and patience, quite more then I could expect. I truly appreciate your
time and help with this.

thanks again

--jerry


On Fri, Dec 27, 2013 at 1:21 PM, Jean-Marc Spaggiari <
jean-marc@spaggiari.org> wrote:

> Hadoop 2 is for Hadoop 2... Hadoop 1 is for.... guess.... Hadoop 1 ;)
>
> If you are running in distributed mode with Hadoop 2.x.x then use the tar
> marked Hadoop 2.
>
> For standalone, I used Hadoop 1 version.
>
> Regarding your java_home it should point where you JDK is. In my own
> environment it's /usr/local/jdk1.7.0_45 not the /bin nor the /bin/java. You
> should not point to you ..../bin/java file. But into the JDK home
> directory.
>
>
> JM
>
>
> 2013/12/27 Gerald Klein <jk...@zognet.com>
>
> > yes I will try with 96.1.1 let me ask you what is the difference between
> > files marked hadoop 1 and hadoop 2?
> >
> >
> > On Fri, Dec 27, 2013 at 1:01 PM, Jean-Marc Spaggiari <
> > jean-marc@spaggiari.org> wrote:
> >
> > > That's strange. It's the same issue I get with trunk, but I don't face
> > that
> > > with 0.96.1.1. Are you testing with 0.96.0? Or 0.96.1.1? Can you try
> with
> > > 0.96.1.1?
> > >
> > >
> > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > >
> > > > Ok sorry about the versions here is 96 I am not sure why the
> > "localhost:"
> > > > is there as you can see from the prompt, it is showing the logged in
> > > domain
> > > > as different.
> > > >
> > > > [root@zenlinux.localdomain.com ~/Software/hbase-gz/hbase-0.96.0]#
> (in
> > > > ranger) bin/start-hbase.sh
> > > > Error: Could not find or load main class
> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > Error: Could not find or load main class
> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > starting master, logging to
> > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > > > Error: Could not find or load main class
> > > > org.apache.hadoop.hbase.master.HMaster
> > > > Password:
> > > > localhost: starting regionserver, logging to
> > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > > > localhost: Error: Could not find or load main class
> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On Fri, Dec 27, 2013 at 12:39 PM, Jean-Marc Spaggiari <
> > > > jean-marc@spaggiari.org> wrote:
> > > >
> > > > > But it still log "localhost:" instead of the host name....
> > > > >
> > > > > Also, you are not trying each time with the same version.
> > > > >
> > > > > Initial log was:
> > > > > /root/Software/hbase-gz/hbase-0.96.0
> > > > > Now it's:
> > > > > /root/Software/hbase-gz/hbase-0.95.2/
> > > > >
> > > > > Can you please make sure you test with 0.96.1.1? 0.95 was a dev
> > > version.
> > > > > 0.96 has been built from that.
> > > > >
> > > > > Can you paste on pastebin the output of "set"?
> > > > >
> > > > >
> > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > >
> > > > > > Ok same problem still, it just seems like it just isn't locating
> > the
> > > > base
> > > > > > classes.
> > > > > >
> > > > > > Error: Could not find or load main class
> > > > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > > Error: Could not find or load main class
> > > > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > > starting master, logging to
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > > > > > Error: Could not find or load main class
> > > > > > org.apache.hadoop.hbase.master.HMaster
> > > > > > Password:
> > > > > > localhost: starting regionserver, logging to
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > > > > > localhost: Error: Could not find or load main class
> > > > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Fri, Dec 27, 2013 at 12:14 PM, Jean-Marc Spaggiari <
> > > > > > jean-marc@spaggiari.org> wrote:
> > > > > >
> > > > > > > Thanks for sharing the files.
> > > > > > >
> > > > > > > So 2 things.
> > > > > > >
> > > > > > > first, regarding the hosts file. You have twice the same name
> but
> > > > with
> > > > > 2
> > > > > > > different IPs:
> > > > > > > 127.0.0.1       zenlinux.localdomain zenlinux
> > > > > > > 127.0.0.1       localhost.localdomain locahost
> > > > > > > 192.168.1.81 zenlinux.localdomain zenlinux
> > > > > > >
> > > > > > > Please remove the 1st line.
> > > > > > >
> > > > > > > 2nd, in your hbase-site.xml can you please try without those 2
> > > > > properties
> > > > > > > set? Just keep it empty. It will use the /tmp directory.
> > > > > > >
> > > > > > > Thanks,
> > > > > > >
> > > > > > > JM
> > > > > > >
> > > > > > >
> > > > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > >
> > > > > > > > OK here they are first is hbase-env.sh
> > > > > > > >
> > > > > > > > http://pastebin.com/KPaw9aaE
> > > > > > > >
> > > > > > > > second hbase-site.xml
> > > > > > > >
> > > > > > > > http://pastebin.com/WZixuTas
> > > > > > > >
> > > > > > > > third hosts file
> > > > > > > >
> > > > > > > > http://pastebin.com/dLFi7gcN
> > > > > > > >
> > > > > > > >
> > > > > > > > thanks again
> > > > > > > >
> > > > > > > > I am not worried about the password locally I just type it
> in,
> > > this
> > > > > is
> > > > > > > fine
> > > > > > > > for learning it
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > On Fri, Dec 27, 2013 at 11:34 AM, Jean-Marc Spaggiari <
> > > > > > > > jean-marc@spaggiari.org> wrote:
> > > > > > > >
> > > > > > > > > Attachements doesn't work on the mailing list :( You can
> > paste
> > > > them
> > > > > > on
> > > > > > > > > pastebin or past the content of the scripts on your email
> > > > directly.
> > > > > > > > >
> > > > > > > > > Have you been able to configure the passwordless?
> > > > > > > > >
> > > > > > > > > Also, you are trying with 0.96.0, right? Can you try with
> > > > 0.96.1.1
> > > > > > > > instead?
> > > > > > > > > http://www.apache.org/dyn/closer.cgi/hbase/
> > > > > > > > >
> > > > > > > > > JM
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > > > >
> > > > > > > > > > OK here it is and thanks a lot for taking the time.
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > On Fri, Dec 27, 2013 at 11:15 AM, Jean-Marc Spaggiari <
> > > > > > > > > > jean-marc@spaggiari.org> wrote:
> > > > > > > > > >
> > > > > > > > > >> Can you share your config files?
> > > > > > > > > >> hbase-env.sh
> > > > > > > > > >> hosts
> > > > > > > > > >> hbase-site.xml
> > > > > > > > > >>
> > > > > > > > > >> Are you able to passwordless ssh in the same host? Like
> > ssh
> > > > > MYHOST
> > > > > > > > does
> > > > > > > > > it
> > > > > > > > > >> ask for a password?
> > > > > > > > > >>
> > > > > > > > > >> If so, can you configure it password less?
> > > > > > > > > >>
> > > > > > > > > >> to create the key: ssh-keygen -t rsa
> > > > > > > > > >> To install: ssh-copy-id -i ~/.ssh/id_rsa.pub
> > > > > > > > > your_user_name@your_host_name
> > > > > > > > > >>
> > > > > > > > > >> JM
> > > > > > > > > >>
> > > > > > > > > >>
> > > > > > > > > >> 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > > > > >>
> > > > > > > > > >> > Yes I have added it to the conf/hbase-env.sh file in
> the
> > > > last
> > > > > > > email
> > > > > > > > > >> when it
> > > > > > > > > >> > initially failed that test, I currently have it
> pointed
> > to
> > > > > > > > > >> > /opt/oracle-jdk-bin-1.7.0.45
> > > > > > > > > >> > which is where Gentoo has it installed.
> > > > > > > > > >> >
> > > > > > > > > >> >
> > > > > > > > > >> >
> > > > > > > > > >> >
> > > > > > > > > >> >
> > > > > > > > > >> > On Fri, Dec 27, 2013 at 10:48 AM, Jean-Marc Spaggiari
> <
> > > > > > > > > >> > jean-marc@spaggiari.org> wrote:
> > > > > > > > > >> >
> > > > > > > > > >> > > Have you modified any of the files into conf/ ?
> > > > > > > > > >> > >
> > > > > > > > > >> > > Please add your JAVA_HOME setting into
> > conf/hbase-env.sh
> > > > and
> > > > > > > > retry.
> > > > > > > > > >> > >
> > > > > > > > > >> > > The password issue is related to the passwordless
> > > setting,
> > > > > but
> > > > > > > it
> > > > > > > > > >> should
> > > > > > > > > >> > > not be required for the standalone version. We will
> > look
> > > > at
> > > > > > that
> > > > > > > > > after
> > > > > > > > > >> > you
> > > > > > > > > >> > > try again ;)
> > > > > > > > > >> > >
> > > > > > > > > >> > > JM
> > > > > > > > > >> > >
> > > > > > > > > >> > >
> > > > > > > > > >> > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > > > > >> > >
> > > > > > > > > >> > > > Thanks for the help, I unset all vars and made
> sure
> > > that
> > > > > the
> > > > > > > > > >> JAVA_HOME
> > > > > > > > > >> > > was
> > > > > > > > > >> > > > set in .bashrc, Same errors but now JAVA_HOME not
> > set
> > > as
> > > > > > > below:
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > > > > > >> > > > starting master, logging to
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > >
> > > > > > > > > >> >
> > > > > > > > > >>
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.out
> > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > > > > > > >> > > > Password:
> > > > > > > > > >> > > > localhost:
> > > > > > > > > >> > > >
> > > > > > > > > >> >
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> +======================================================================+
> > > > > > > > > >> > > > localhost: |      Error: JAVA_HOME is not set and
> > Java
> > > > > could
> > > > > > > not
> > > > > > > > > be
> > > > > > > > > >> > found
> > > > > > > > > >> > > >       |
> > > > > > > > > >> > > > localhost:
> > > > > > > > > >> > > >
> > > > > > > > > >> >
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> +----------------------------------------------------------------------+
> > > > > > > > > >> > > > localhost: | Please download the latest Sun JDK
> from
> > > the
> > > > > Sun
> > > > > > > > Java
> > > > > > > > > >> web
> > > > > > > > > >> > > site
> > > > > > > > > >> > > >        |
> > > > > > > > > >> > > > localhost: |       >
> > > > > http://java.sun.com/javase/downloads/<
> > > > > > > > > >> > > >        |
> > > > > > > > > >> > > > localhost: |
> > > > > > > > > >> > > >        |
> > > > > > > > > >> > > > localhost: | HBase requires Java 1.6 or later.
> > > > > > > > > >> > > >        |
> > > > > > > > > >> > > > localhost: | NOTE: This script will find Sun Java
> > > > whether
> > > > > > you
> > > > > > > > > >> install
> > > > > > > > > >> > > using
> > > > > > > > > >> > > > the   |
> > > > > > > > > >> > > > localhost: |       binary or the RPM based
> > installer.
> > > > > > > > > >> > > >       |
> > > > > > > > > >> > > > localhost:
> > > > > > > > > >> > > >
> > > > > > > > > >> >
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> +======================================================================+
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > So I set JAVA_HOME in hbase-env.sh, but I still
> get
> > > the
> > > > > > > > following
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > > > > > >> > > > starting master, logging to
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > >
> > > > > > > > > >> >
> > > > > > > > > >>
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.out
> > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > > > > > > >> > > > Password:
> > > > > > > > > >> > > > localhost: starting regionserver, logging to
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > >
> > > > > > > > > >> >
> > > > > > > > > >>
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.out
> > > > > > > > > >> > > > localhost: Error: Could not find or load main
> class
> > > > > > > > > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > then I forced a domain name via hostname and still
> > got
> > > > the
> > > > > > > > > following
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > > > > > >> > > > starting master, logging to
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > >
> > > > > > > > > >> >
> > > > > > > > > >>
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > > > > > > >> > > > Password:
> > > > > > > > > >> > > > localhost: starting regionserver, logging to
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > >
> > > > > > > > > >> >
> > > > > > > > > >>
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > > > > > > > > >> > > > localhost: Error: Could not find or load main
> class
> > > > > > > > > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > I appreciate any help with this, I don't usually
> > > > > experience
> > > > > > a
> > > > > > > > > setup
> > > > > > > > > >> > > problem
> > > > > > > > > >> > > > like this.
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > thanks
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > On Fri, Dec 27, 2013 at 8:48 AM, Jean-Marc
> > Spaggiari <
> > > > > > > > > >> > > > jean-marc@spaggiari.org> wrote:
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > > Hi Gerald,
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > > > The easiest way to test HBase locally is:
> > > > > > > > > >> > > > > 1) Download the tar.gz
> > > > > > > > > >> > > > > 2) Ungzip it.
> > > > > > > > > >> > > > > 3) Make sure host file contains FQDN assign to
> > local
> > > > IP
> > > > > > > > address
> > > > > > > > > >> (and
> > > > > > > > > >> > > not
> > > > > > > > > >> > > > > 127.0.0.1)
> > > > > > > > > >> > > > > 4) define JAVA_HOME to point to you Sun JDK
> > > > > > > > > >> > > > > 5) bin/start-hbase.sh
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > > > Don't change anything, don't set any other
> > variable,
> > > > > don't
> > > > > > > do
> > > > > > > > > >> > anything.
> > > > > > > > > >> > > > > Just those 5 simple steps. Then you should have
> a
> > > > > > standalone
> > > > > > > > > >> version
> > > > > > > > > >> > > > > running.
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > > > JM
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > > > > hi I have been attempting to learn hbase and
> > have
> > > > been
> > > > > > > > unable
> > > > > > > > > to
> > > > > > > > > >> > get
> > > > > > > > > >> > > a
> > > > > > > > > >> > > > > > local copy running, it comes back with"could
> not
> > > > find
> > > > > or
> > > > > > > > load
> > > > > > > > > >> main
> > > > > > > > > >> > > > class
> > > > > > > > > >> > > > > > org.apache.hadoop.hbase.util.HBaseConfTool"
> and
> > > > "could
> > > > > > not
> > > > > > > > > find
> > > > > > > > > >> or
> > > > > > > > > >> > > load
> > > > > > > > > >> > > > > > main class
> > > > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool"
> > > > > > > > and
> > > > > > > > > >> > "culd
> > > > > > > > > >> > > > not
> > > > > > > > > >> > > > > > find or load main class
> > > > > > > > > org.apache.hadoop.hbase.master.HMaster"
> > > > > > > > > >> I
> > > > > > > > > >> > > have
> > > > > > > > > >> > > > > > tried adding stuff to the config
> HBASE_CLASSPATH
> > > but
> > > > > > > nothing
> > > > > > > > > >> seems
> > > > > > > > > >> > to
> > > > > > > > > >> > > > get
> > > > > > > > > >> > > > > > rid of the error, I also grepped the
> directories
> > > > from
> > > > > > the
> > > > > > > > > >> install
> > > > > > > > > >> > > > package
> > > > > > > > > >> > > > > > and could not find the class that they are
> > looking
> > > > > for,
> > > > > > > > anyone
> > > > > > > > > >> have
> > > > > > > > > >> > > an
> > > > > > > > > >> > > > > idea
> > > > > > > > > >> > > > > > of what this is? thanks
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > --
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > Gerald Klein DBA
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > ContactMe@geraldklein.com
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > geraldklein.wordpress.com
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > jk@zognet.com
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > 708-599-0352
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > Arch Awesome, Ranger & Vim the coding triple
> > > threat.
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > Linux registered user #548580
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > Brought to you by the Amish Mafia
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > --
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > Gerald Klein DBA
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > ContactMe@geraldklein.com
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > geraldklein.wordpress.com
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > jk@zognet.com
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > 708-599-0352
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > Arch Awesome, Ranger & Vim the coding triple
> threat.
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > Linux registered user #548580
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > Brought to you by the Amish Mafia
> > > > > > > > > >> > > >
> > > > > > > > > >> > >
> > > > > > > > > >> >
> > > > > > > > > >> >
> > > > > > > > > >> >
> > > > > > > > > >> > --
> > > > > > > > > >> >
> > > > > > > > > >> > Gerald Klein DBA
> > > > > > > > > >> >
> > > > > > > > > >> > ContactMe@geraldklein.com
> > > > > > > > > >> >
> > > > > > > > > >> > www.geraldklein.com <http://geraldklein.com/>
> > > > > > > > > >> >
> > > > > > > > > >> > geraldklein.wordpress.com
> > > > > > > > > >> >
> > > > > > > > > >> > jk@zognet.com
> > > > > > > > > >> >
> > > > > > > > > >> > 708-599-0352
> > > > > > > > > >> >
> > > > > > > > > >> >
> > > > > > > > > >> > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > > > > > >> >
> > > > > > > > > >> > Linux registered user #548580
> > > > > > > > > >> >
> > > > > > > > > >> > Brought to you by the Amish Mafia
> > > > > > > > > >> >
> > > > > > > > > >>
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > >
> > > > > > > > > > Gerald Klein DBA
> > > > > > > > > >
> > > > > > > > > > ContactMe@geraldklein.com
> > > > > > > > > >
> > > > > > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > > > > > >
> > > > > > > > > > geraldklein.wordpress.com
> > > > > > > > > >
> > > > > > > > > > jk@zognet.com
> > > > > > > > > >
> > > > > > > > > > 708-599-0352
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > > > > > >
> > > > > > > > > > Linux registered user #548580
> > > > > > > > > >
> > > > > > > > > > Brought to you by the Amish Mafia
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > >
> > > > > > > > Gerald Klein DBA
> > > > > > > >
> > > > > > > > ContactMe@geraldklein.com
> > > > > > > >
> > > > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > > > >
> > > > > > > > geraldklein.wordpress.com
> > > > > > > >
> > > > > > > > jk@zognet.com
> > > > > > > >
> > > > > > > > 708-599-0352
> > > > > > > >
> > > > > > > >
> > > > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > > > >
> > > > > > > > Linux registered user #548580
> > > > > > > >
> > > > > > > > Brought to you by the Amish Mafia
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > >
> > > > > > Gerald Klein DBA
> > > > > >
> > > > > > ContactMe@geraldklein.com
> > > > > >
> > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > >
> > > > > > geraldklein.wordpress.com
> > > > > >
> > > > > > jk@zognet.com
> > > > > >
> > > > > > 708-599-0352
> > > > > >
> > > > > >
> > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > >
> > > > > > Linux registered user #548580
> > > > > >
> > > > > > Brought to you by the Amish Mafia
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Gerald Klein DBA
> > > >
> > > > ContactMe@geraldklein.com
> > > >
> > > > www.geraldklein.com <http://geraldklein.com/>
> > > >
> > > > geraldklein.wordpress.com
> > > >
> > > > jk@zognet.com
> > > >
> > > > 708-599-0352
> > > >
> > > >
> > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > >
> > > > Linux registered user #548580
> > > >
> > > > Brought to you by the Amish Mafia
> > > >
> > >
> >
> >
> >
> > --
> >
> > Gerald Klein DBA
> >
> > ContactMe@geraldklein.com
> >
> > www.geraldklein.com <http://geraldklein.com/>
> >
> > geraldklein.wordpress.com
> >
> > jk@zognet.com
> >
> > 708-599-0352
> >
> >
> > Arch Awesome, Ranger & Vim the coding triple threat.
> >
> > Linux registered user #548580
> >
> > Brought to you by the Amish Mafia
> >
>



-- 

Gerald Klein DBA

ContactMe@geraldklein.com

www.geraldklein.com <http://geraldklein.com/>

geraldklein.wordpress.com

jk@zognet.com

708-599-0352


Arch Awesome, Ranger & Vim the coding triple threat.

Linux registered user #548580

Brought to you by the Amish Mafia

Re: hbase config problem

Posted by Gerald Klein <jk...@zognet.com>.
OK that what I needed let me check the 1.1 the bin file is a link to what
you showed.


On Fri, Dec 27, 2013 at 1:21 PM, Jean-Marc Spaggiari <
jean-marc@spaggiari.org> wrote:

> Hadoop 2 is for Hadoop 2... Hadoop 1 is for.... guess.... Hadoop 1 ;)
>
> If you are running in distributed mode with Hadoop 2.x.x then use the tar
> marked Hadoop 2.
>
> For standalone, I used Hadoop 1 version.
>
> Regarding your java_home it should point where you JDK is. In my own
> environment it's /usr/local/jdk1.7.0_45 not the /bin nor the /bin/java. You
> should not point to you ..../bin/java file. But into the JDK home
> directory.
>
>
> JM
>
>
> 2013/12/27 Gerald Klein <jk...@zognet.com>
>
> > yes I will try with 96.1.1 let me ask you what is the difference between
> > files marked hadoop 1 and hadoop 2?
> >
> >
> > On Fri, Dec 27, 2013 at 1:01 PM, Jean-Marc Spaggiari <
> > jean-marc@spaggiari.org> wrote:
> >
> > > That's strange. It's the same issue I get with trunk, but I don't face
> > that
> > > with 0.96.1.1. Are you testing with 0.96.0? Or 0.96.1.1? Can you try
> with
> > > 0.96.1.1?
> > >
> > >
> > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > >
> > > > Ok sorry about the versions here is 96 I am not sure why the
> > "localhost:"
> > > > is there as you can see from the prompt, it is showing the logged in
> > > domain
> > > > as different.
> > > >
> > > > [root@zenlinux.localdomain.com ~/Software/hbase-gz/hbase-0.96.0]#
> (in
> > > > ranger) bin/start-hbase.sh
> > > > Error: Could not find or load main class
> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > Error: Could not find or load main class
> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > starting master, logging to
> > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > > > Error: Could not find or load main class
> > > > org.apache.hadoop.hbase.master.HMaster
> > > > Password:
> > > > localhost: starting regionserver, logging to
> > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > > > localhost: Error: Could not find or load main class
> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On Fri, Dec 27, 2013 at 12:39 PM, Jean-Marc Spaggiari <
> > > > jean-marc@spaggiari.org> wrote:
> > > >
> > > > > But it still log "localhost:" instead of the host name....
> > > > >
> > > > > Also, you are not trying each time with the same version.
> > > > >
> > > > > Initial log was:
> > > > > /root/Software/hbase-gz/hbase-0.96.0
> > > > > Now it's:
> > > > > /root/Software/hbase-gz/hbase-0.95.2/
> > > > >
> > > > > Can you please make sure you test with 0.96.1.1? 0.95 was a dev
> > > version.
> > > > > 0.96 has been built from that.
> > > > >
> > > > > Can you paste on pastebin the output of "set"?
> > > > >
> > > > >
> > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > >
> > > > > > Ok same problem still, it just seems like it just isn't locating
> > the
> > > > base
> > > > > > classes.
> > > > > >
> > > > > > Error: Could not find or load main class
> > > > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > > Error: Could not find or load main class
> > > > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > > starting master, logging to
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > > > > > Error: Could not find or load main class
> > > > > > org.apache.hadoop.hbase.master.HMaster
> > > > > > Password:
> > > > > > localhost: starting regionserver, logging to
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > > > > > localhost: Error: Could not find or load main class
> > > > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Fri, Dec 27, 2013 at 12:14 PM, Jean-Marc Spaggiari <
> > > > > > jean-marc@spaggiari.org> wrote:
> > > > > >
> > > > > > > Thanks for sharing the files.
> > > > > > >
> > > > > > > So 2 things.
> > > > > > >
> > > > > > > first, regarding the hosts file. You have twice the same name
> but
> > > > with
> > > > > 2
> > > > > > > different IPs:
> > > > > > > 127.0.0.1       zenlinux.localdomain zenlinux
> > > > > > > 127.0.0.1       localhost.localdomain locahost
> > > > > > > 192.168.1.81 zenlinux.localdomain zenlinux
> > > > > > >
> > > > > > > Please remove the 1st line.
> > > > > > >
> > > > > > > 2nd, in your hbase-site.xml can you please try without those 2
> > > > > properties
> > > > > > > set? Just keep it empty. It will use the /tmp directory.
> > > > > > >
> > > > > > > Thanks,
> > > > > > >
> > > > > > > JM
> > > > > > >
> > > > > > >
> > > > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > >
> > > > > > > > OK here they are first is hbase-env.sh
> > > > > > > >
> > > > > > > > http://pastebin.com/KPaw9aaE
> > > > > > > >
> > > > > > > > second hbase-site.xml
> > > > > > > >
> > > > > > > > http://pastebin.com/WZixuTas
> > > > > > > >
> > > > > > > > third hosts file
> > > > > > > >
> > > > > > > > http://pastebin.com/dLFi7gcN
> > > > > > > >
> > > > > > > >
> > > > > > > > thanks again
> > > > > > > >
> > > > > > > > I am not worried about the password locally I just type it
> in,
> > > this
> > > > > is
> > > > > > > fine
> > > > > > > > for learning it
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > On Fri, Dec 27, 2013 at 11:34 AM, Jean-Marc Spaggiari <
> > > > > > > > jean-marc@spaggiari.org> wrote:
> > > > > > > >
> > > > > > > > > Attachements doesn't work on the mailing list :( You can
> > paste
> > > > them
> > > > > > on
> > > > > > > > > pastebin or past the content of the scripts on your email
> > > > directly.
> > > > > > > > >
> > > > > > > > > Have you been able to configure the passwordless?
> > > > > > > > >
> > > > > > > > > Also, you are trying with 0.96.0, right? Can you try with
> > > > 0.96.1.1
> > > > > > > > instead?
> > > > > > > > > http://www.apache.org/dyn/closer.cgi/hbase/
> > > > > > > > >
> > > > > > > > > JM
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > > > >
> > > > > > > > > > OK here it is and thanks a lot for taking the time.
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > On Fri, Dec 27, 2013 at 11:15 AM, Jean-Marc Spaggiari <
> > > > > > > > > > jean-marc@spaggiari.org> wrote:
> > > > > > > > > >
> > > > > > > > > >> Can you share your config files?
> > > > > > > > > >> hbase-env.sh
> > > > > > > > > >> hosts
> > > > > > > > > >> hbase-site.xml
> > > > > > > > > >>
> > > > > > > > > >> Are you able to passwordless ssh in the same host? Like
> > ssh
> > > > > MYHOST
> > > > > > > > does
> > > > > > > > > it
> > > > > > > > > >> ask for a password?
> > > > > > > > > >>
> > > > > > > > > >> If so, can you configure it password less?
> > > > > > > > > >>
> > > > > > > > > >> to create the key: ssh-keygen -t rsa
> > > > > > > > > >> To install: ssh-copy-id -i ~/.ssh/id_rsa.pub
> > > > > > > > > your_user_name@your_host_name
> > > > > > > > > >>
> > > > > > > > > >> JM
> > > > > > > > > >>
> > > > > > > > > >>
> > > > > > > > > >> 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > > > > >>
> > > > > > > > > >> > Yes I have added it to the conf/hbase-env.sh file in
> the
> > > > last
> > > > > > > email
> > > > > > > > > >> when it
> > > > > > > > > >> > initially failed that test, I currently have it
> pointed
> > to
> > > > > > > > > >> > /opt/oracle-jdk-bin-1.7.0.45
> > > > > > > > > >> > which is where Gentoo has it installed.
> > > > > > > > > >> >
> > > > > > > > > >> >
> > > > > > > > > >> >
> > > > > > > > > >> >
> > > > > > > > > >> >
> > > > > > > > > >> > On Fri, Dec 27, 2013 at 10:48 AM, Jean-Marc Spaggiari
> <
> > > > > > > > > >> > jean-marc@spaggiari.org> wrote:
> > > > > > > > > >> >
> > > > > > > > > >> > > Have you modified any of the files into conf/ ?
> > > > > > > > > >> > >
> > > > > > > > > >> > > Please add your JAVA_HOME setting into
> > conf/hbase-env.sh
> > > > and
> > > > > > > > retry.
> > > > > > > > > >> > >
> > > > > > > > > >> > > The password issue is related to the passwordless
> > > setting,
> > > > > but
> > > > > > > it
> > > > > > > > > >> should
> > > > > > > > > >> > > not be required for the standalone version. We will
> > look
> > > > at
> > > > > > that
> > > > > > > > > after
> > > > > > > > > >> > you
> > > > > > > > > >> > > try again ;)
> > > > > > > > > >> > >
> > > > > > > > > >> > > JM
> > > > > > > > > >> > >
> > > > > > > > > >> > >
> > > > > > > > > >> > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > > > > >> > >
> > > > > > > > > >> > > > Thanks for the help, I unset all vars and made
> sure
> > > that
> > > > > the
> > > > > > > > > >> JAVA_HOME
> > > > > > > > > >> > > was
> > > > > > > > > >> > > > set in .bashrc, Same errors but now JAVA_HOME not
> > set
> > > as
> > > > > > > below:
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > > > > > >> > > > starting master, logging to
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > >
> > > > > > > > > >> >
> > > > > > > > > >>
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.out
> > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > > > > > > >> > > > Password:
> > > > > > > > > >> > > > localhost:
> > > > > > > > > >> > > >
> > > > > > > > > >> >
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> +======================================================================+
> > > > > > > > > >> > > > localhost: |      Error: JAVA_HOME is not set and
> > Java
> > > > > could
> > > > > > > not
> > > > > > > > > be
> > > > > > > > > >> > found
> > > > > > > > > >> > > >       |
> > > > > > > > > >> > > > localhost:
> > > > > > > > > >> > > >
> > > > > > > > > >> >
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> +----------------------------------------------------------------------+
> > > > > > > > > >> > > > localhost: | Please download the latest Sun JDK
> from
> > > the
> > > > > Sun
> > > > > > > > Java
> > > > > > > > > >> web
> > > > > > > > > >> > > site
> > > > > > > > > >> > > >        |
> > > > > > > > > >> > > > localhost: |       >
> > > > > http://java.sun.com/javase/downloads/<
> > > > > > > > > >> > > >        |
> > > > > > > > > >> > > > localhost: |
> > > > > > > > > >> > > >        |
> > > > > > > > > >> > > > localhost: | HBase requires Java 1.6 or later.
> > > > > > > > > >> > > >        |
> > > > > > > > > >> > > > localhost: | NOTE: This script will find Sun Java
> > > > whether
> > > > > > you
> > > > > > > > > >> install
> > > > > > > > > >> > > using
> > > > > > > > > >> > > > the   |
> > > > > > > > > >> > > > localhost: |       binary or the RPM based
> > installer.
> > > > > > > > > >> > > >       |
> > > > > > > > > >> > > > localhost:
> > > > > > > > > >> > > >
> > > > > > > > > >> >
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> +======================================================================+
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > So I set JAVA_HOME in hbase-env.sh, but I still
> get
> > > the
> > > > > > > > following
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > > > > > >> > > > starting master, logging to
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > >
> > > > > > > > > >> >
> > > > > > > > > >>
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.out
> > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > > > > > > >> > > > Password:
> > > > > > > > > >> > > > localhost: starting regionserver, logging to
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > >
> > > > > > > > > >> >
> > > > > > > > > >>
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.out
> > > > > > > > > >> > > > localhost: Error: Could not find or load main
> class
> > > > > > > > > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > then I forced a domain name via hostname and still
> > got
> > > > the
> > > > > > > > > following
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > > > > > >> > > > starting master, logging to
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > >
> > > > > > > > > >> >
> > > > > > > > > >>
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > > > > > > >> > > > Password:
> > > > > > > > > >> > > > localhost: starting regionserver, logging to
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > >
> > > > > > > > > >> >
> > > > > > > > > >>
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > > > > > > > > >> > > > localhost: Error: Could not find or load main
> class
> > > > > > > > > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > I appreciate any help with this, I don't usually
> > > > > experience
> > > > > > a
> > > > > > > > > setup
> > > > > > > > > >> > > problem
> > > > > > > > > >> > > > like this.
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > thanks
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > On Fri, Dec 27, 2013 at 8:48 AM, Jean-Marc
> > Spaggiari <
> > > > > > > > > >> > > > jean-marc@spaggiari.org> wrote:
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > > Hi Gerald,
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > > > The easiest way to test HBase locally is:
> > > > > > > > > >> > > > > 1) Download the tar.gz
> > > > > > > > > >> > > > > 2) Ungzip it.
> > > > > > > > > >> > > > > 3) Make sure host file contains FQDN assign to
> > local
> > > > IP
> > > > > > > > address
> > > > > > > > > >> (and
> > > > > > > > > >> > > not
> > > > > > > > > >> > > > > 127.0.0.1)
> > > > > > > > > >> > > > > 4) define JAVA_HOME to point to you Sun JDK
> > > > > > > > > >> > > > > 5) bin/start-hbase.sh
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > > > Don't change anything, don't set any other
> > variable,
> > > > > don't
> > > > > > > do
> > > > > > > > > >> > anything.
> > > > > > > > > >> > > > > Just those 5 simple steps. Then you should have
> a
> > > > > > standalone
> > > > > > > > > >> version
> > > > > > > > > >> > > > > running.
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > > > JM
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > > > > hi I have been attempting to learn hbase and
> > have
> > > > been
> > > > > > > > unable
> > > > > > > > > to
> > > > > > > > > >> > get
> > > > > > > > > >> > > a
> > > > > > > > > >> > > > > > local copy running, it comes back with"could
> not
> > > > find
> > > > > or
> > > > > > > > load
> > > > > > > > > >> main
> > > > > > > > > >> > > > class
> > > > > > > > > >> > > > > > org.apache.hadoop.hbase.util.HBaseConfTool"
> and
> > > > "could
> > > > > > not
> > > > > > > > > find
> > > > > > > > > >> or
> > > > > > > > > >> > > load
> > > > > > > > > >> > > > > > main class
> > > > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool"
> > > > > > > > and
> > > > > > > > > >> > "culd
> > > > > > > > > >> > > > not
> > > > > > > > > >> > > > > > find or load main class
> > > > > > > > > org.apache.hadoop.hbase.master.HMaster"
> > > > > > > > > >> I
> > > > > > > > > >> > > have
> > > > > > > > > >> > > > > > tried adding stuff to the config
> HBASE_CLASSPATH
> > > but
> > > > > > > nothing
> > > > > > > > > >> seems
> > > > > > > > > >> > to
> > > > > > > > > >> > > > get
> > > > > > > > > >> > > > > > rid of the error, I also grepped the
> directories
> > > > from
> > > > > > the
> > > > > > > > > >> install
> > > > > > > > > >> > > > package
> > > > > > > > > >> > > > > > and could not find the class that they are
> > looking
> > > > > for,
> > > > > > > > anyone
> > > > > > > > > >> have
> > > > > > > > > >> > > an
> > > > > > > > > >> > > > > idea
> > > > > > > > > >> > > > > > of what this is? thanks
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > --
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > Gerald Klein DBA
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > ContactMe@geraldklein.com
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > geraldklein.wordpress.com
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > jk@zognet.com
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > 708-599-0352
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > Arch Awesome, Ranger & Vim the coding triple
> > > threat.
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > Linux registered user #548580
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > Brought to you by the Amish Mafia
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > --
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > Gerald Klein DBA
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > ContactMe@geraldklein.com
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > geraldklein.wordpress.com
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > jk@zognet.com
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > 708-599-0352
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > Arch Awesome, Ranger & Vim the coding triple
> threat.
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > Linux registered user #548580
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > Brought to you by the Amish Mafia
> > > > > > > > > >> > > >
> > > > > > > > > >> > >
> > > > > > > > > >> >
> > > > > > > > > >> >
> > > > > > > > > >> >
> > > > > > > > > >> > --
> > > > > > > > > >> >
> > > > > > > > > >> > Gerald Klein DBA
> > > > > > > > > >> >
> > > > > > > > > >> > ContactMe@geraldklein.com
> > > > > > > > > >> >
> > > > > > > > > >> > www.geraldklein.com <http://geraldklein.com/>
> > > > > > > > > >> >
> > > > > > > > > >> > geraldklein.wordpress.com
> > > > > > > > > >> >
> > > > > > > > > >> > jk@zognet.com
> > > > > > > > > >> >
> > > > > > > > > >> > 708-599-0352
> > > > > > > > > >> >
> > > > > > > > > >> >
> > > > > > > > > >> > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > > > > > >> >
> > > > > > > > > >> > Linux registered user #548580
> > > > > > > > > >> >
> > > > > > > > > >> > Brought to you by the Amish Mafia
> > > > > > > > > >> >
> > > > > > > > > >>
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > >
> > > > > > > > > > Gerald Klein DBA
> > > > > > > > > >
> > > > > > > > > > ContactMe@geraldklein.com
> > > > > > > > > >
> > > > > > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > > > > > >
> > > > > > > > > > geraldklein.wordpress.com
> > > > > > > > > >
> > > > > > > > > > jk@zognet.com
> > > > > > > > > >
> > > > > > > > > > 708-599-0352
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > > > > > >
> > > > > > > > > > Linux registered user #548580
> > > > > > > > > >
> > > > > > > > > > Brought to you by the Amish Mafia
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > >
> > > > > > > > Gerald Klein DBA
> > > > > > > >
> > > > > > > > ContactMe@geraldklein.com
> > > > > > > >
> > > > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > > > >
> > > > > > > > geraldklein.wordpress.com
> > > > > > > >
> > > > > > > > jk@zognet.com
> > > > > > > >
> > > > > > > > 708-599-0352
> > > > > > > >
> > > > > > > >
> > > > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > > > >
> > > > > > > > Linux registered user #548580
> > > > > > > >
> > > > > > > > Brought to you by the Amish Mafia
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > >
> > > > > > Gerald Klein DBA
> > > > > >
> > > > > > ContactMe@geraldklein.com
> > > > > >
> > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > >
> > > > > > geraldklein.wordpress.com
> > > > > >
> > > > > > jk@zognet.com
> > > > > >
> > > > > > 708-599-0352
> > > > > >
> > > > > >
> > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > >
> > > > > > Linux registered user #548580
> > > > > >
> > > > > > Brought to you by the Amish Mafia
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Gerald Klein DBA
> > > >
> > > > ContactMe@geraldklein.com
> > > >
> > > > www.geraldklein.com <http://geraldklein.com/>
> > > >
> > > > geraldklein.wordpress.com
> > > >
> > > > jk@zognet.com
> > > >
> > > > 708-599-0352
> > > >
> > > >
> > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > >
> > > > Linux registered user #548580
> > > >
> > > > Brought to you by the Amish Mafia
> > > >
> > >
> >
> >
> >
> > --
> >
> > Gerald Klein DBA
> >
> > ContactMe@geraldklein.com
> >
> > www.geraldklein.com <http://geraldklein.com/>
> >
> > geraldklein.wordpress.com
> >
> > jk@zognet.com
> >
> > 708-599-0352
> >
> >
> > Arch Awesome, Ranger & Vim the coding triple threat.
> >
> > Linux registered user #548580
> >
> > Brought to you by the Amish Mafia
> >
>



-- 

Gerald Klein DBA

ContactMe@geraldklein.com

www.geraldklein.com <http://geraldklein.com/>

geraldklein.wordpress.com

jk@zognet.com

708-599-0352


Arch Awesome, Ranger & Vim the coding triple threat.

Linux registered user #548580

Brought to you by the Amish Mafia

Re: hbase config problem

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
Hadoop 2 is for Hadoop 2... Hadoop 1 is for.... guess.... Hadoop 1 ;)

If you are running in distributed mode with Hadoop 2.x.x then use the tar
marked Hadoop 2.

For standalone, I used Hadoop 1 version.

Regarding your java_home it should point where you JDK is. In my own
environment it's /usr/local/jdk1.7.0_45 not the /bin nor the /bin/java. You
should not point to you ..../bin/java file. But into the JDK home directory.


JM


2013/12/27 Gerald Klein <jk...@zognet.com>

> yes I will try with 96.1.1 let me ask you what is the difference between
> files marked hadoop 1 and hadoop 2?
>
>
> On Fri, Dec 27, 2013 at 1:01 PM, Jean-Marc Spaggiari <
> jean-marc@spaggiari.org> wrote:
>
> > That's strange. It's the same issue I get with trunk, but I don't face
> that
> > with 0.96.1.1. Are you testing with 0.96.0? Or 0.96.1.1? Can you try with
> > 0.96.1.1?
> >
> >
> > 2013/12/27 Gerald Klein <jk...@zognet.com>
> >
> > > Ok sorry about the versions here is 96 I am not sure why the
> "localhost:"
> > > is there as you can see from the prompt, it is showing the logged in
> > domain
> > > as different.
> > >
> > > [root@zenlinux.localdomain.com ~/Software/hbase-gz/hbase-0.96.0]# (in
> > > ranger) bin/start-hbase.sh
> > > Error: Could not find or load main class
> > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > Error: Could not find or load main class
> > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > starting master, logging to
> > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > > Error: Could not find or load main class
> > > org.apache.hadoop.hbase.master.HMaster
> > > Password:
> > > localhost: starting regionserver, logging to
> > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > > localhost: Error: Could not find or load main class
> > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > >
> > >
> > >
> > >
> > >
> > > On Fri, Dec 27, 2013 at 12:39 PM, Jean-Marc Spaggiari <
> > > jean-marc@spaggiari.org> wrote:
> > >
> > > > But it still log "localhost:" instead of the host name....
> > > >
> > > > Also, you are not trying each time with the same version.
> > > >
> > > > Initial log was:
> > > > /root/Software/hbase-gz/hbase-0.96.0
> > > > Now it's:
> > > > /root/Software/hbase-gz/hbase-0.95.2/
> > > >
> > > > Can you please make sure you test with 0.96.1.1? 0.95 was a dev
> > version.
> > > > 0.96 has been built from that.
> > > >
> > > > Can you paste on pastebin the output of "set"?
> > > >
> > > >
> > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > >
> > > > > Ok same problem still, it just seems like it just isn't locating
> the
> > > base
> > > > > classes.
> > > > >
> > > > > Error: Could not find or load main class
> > > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > Error: Could not find or load main class
> > > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > starting master, logging to
> > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > > > > Error: Could not find or load main class
> > > > > org.apache.hadoop.hbase.master.HMaster
> > > > > Password:
> > > > > localhost: starting regionserver, logging to
> > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > > > > localhost: Error: Could not find or load main class
> > > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Fri, Dec 27, 2013 at 12:14 PM, Jean-Marc Spaggiari <
> > > > > jean-marc@spaggiari.org> wrote:
> > > > >
> > > > > > Thanks for sharing the files.
> > > > > >
> > > > > > So 2 things.
> > > > > >
> > > > > > first, regarding the hosts file. You have twice the same name but
> > > with
> > > > 2
> > > > > > different IPs:
> > > > > > 127.0.0.1       zenlinux.localdomain zenlinux
> > > > > > 127.0.0.1       localhost.localdomain locahost
> > > > > > 192.168.1.81 zenlinux.localdomain zenlinux
> > > > > >
> > > > > > Please remove the 1st line.
> > > > > >
> > > > > > 2nd, in your hbase-site.xml can you please try without those 2
> > > > properties
> > > > > > set? Just keep it empty. It will use the /tmp directory.
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > JM
> > > > > >
> > > > > >
> > > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > >
> > > > > > > OK here they are first is hbase-env.sh
> > > > > > >
> > > > > > > http://pastebin.com/KPaw9aaE
> > > > > > >
> > > > > > > second hbase-site.xml
> > > > > > >
> > > > > > > http://pastebin.com/WZixuTas
> > > > > > >
> > > > > > > third hosts file
> > > > > > >
> > > > > > > http://pastebin.com/dLFi7gcN
> > > > > > >
> > > > > > >
> > > > > > > thanks again
> > > > > > >
> > > > > > > I am not worried about the password locally I just type it in,
> > this
> > > > is
> > > > > > fine
> > > > > > > for learning it
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > On Fri, Dec 27, 2013 at 11:34 AM, Jean-Marc Spaggiari <
> > > > > > > jean-marc@spaggiari.org> wrote:
> > > > > > >
> > > > > > > > Attachements doesn't work on the mailing list :( You can
> paste
> > > them
> > > > > on
> > > > > > > > pastebin or past the content of the scripts on your email
> > > directly.
> > > > > > > >
> > > > > > > > Have you been able to configure the passwordless?
> > > > > > > >
> > > > > > > > Also, you are trying with 0.96.0, right? Can you try with
> > > 0.96.1.1
> > > > > > > instead?
> > > > > > > > http://www.apache.org/dyn/closer.cgi/hbase/
> > > > > > > >
> > > > > > > > JM
> > > > > > > >
> > > > > > > >
> > > > > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > > >
> > > > > > > > > OK here it is and thanks a lot for taking the time.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > On Fri, Dec 27, 2013 at 11:15 AM, Jean-Marc Spaggiari <
> > > > > > > > > jean-marc@spaggiari.org> wrote:
> > > > > > > > >
> > > > > > > > >> Can you share your config files?
> > > > > > > > >> hbase-env.sh
> > > > > > > > >> hosts
> > > > > > > > >> hbase-site.xml
> > > > > > > > >>
> > > > > > > > >> Are you able to passwordless ssh in the same host? Like
> ssh
> > > > MYHOST
> > > > > > > does
> > > > > > > > it
> > > > > > > > >> ask for a password?
> > > > > > > > >>
> > > > > > > > >> If so, can you configure it password less?
> > > > > > > > >>
> > > > > > > > >> to create the key: ssh-keygen -t rsa
> > > > > > > > >> To install: ssh-copy-id -i ~/.ssh/id_rsa.pub
> > > > > > > > your_user_name@your_host_name
> > > > > > > > >>
> > > > > > > > >> JM
> > > > > > > > >>
> > > > > > > > >>
> > > > > > > > >> 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > > > >>
> > > > > > > > >> > Yes I have added it to the conf/hbase-env.sh file in the
> > > last
> > > > > > email
> > > > > > > > >> when it
> > > > > > > > >> > initially failed that test, I currently have it pointed
> to
> > > > > > > > >> > /opt/oracle-jdk-bin-1.7.0.45
> > > > > > > > >> > which is where Gentoo has it installed.
> > > > > > > > >> >
> > > > > > > > >> >
> > > > > > > > >> >
> > > > > > > > >> >
> > > > > > > > >> >
> > > > > > > > >> > On Fri, Dec 27, 2013 at 10:48 AM, Jean-Marc Spaggiari <
> > > > > > > > >> > jean-marc@spaggiari.org> wrote:
> > > > > > > > >> >
> > > > > > > > >> > > Have you modified any of the files into conf/ ?
> > > > > > > > >> > >
> > > > > > > > >> > > Please add your JAVA_HOME setting into
> conf/hbase-env.sh
> > > and
> > > > > > > retry.
> > > > > > > > >> > >
> > > > > > > > >> > > The password issue is related to the passwordless
> > setting,
> > > > but
> > > > > > it
> > > > > > > > >> should
> > > > > > > > >> > > not be required for the standalone version. We will
> look
> > > at
> > > > > that
> > > > > > > > after
> > > > > > > > >> > you
> > > > > > > > >> > > try again ;)
> > > > > > > > >> > >
> > > > > > > > >> > > JM
> > > > > > > > >> > >
> > > > > > > > >> > >
> > > > > > > > >> > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > > > >> > >
> > > > > > > > >> > > > Thanks for the help, I unset all vars and made sure
> > that
> > > > the
> > > > > > > > >> JAVA_HOME
> > > > > > > > >> > > was
> > > > > > > > >> > > > set in .bashrc, Same errors but now JAVA_HOME not
> set
> > as
> > > > > > below:
> > > > > > > > >> > > >
> > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > > > > >> > > > starting master, logging to
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > >
> > > > > > > > >> >
> > > > > > > > >>
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.out
> > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > > > > > >> > > > Password:
> > > > > > > > >> > > > localhost:
> > > > > > > > >> > > >
> > > > > > > > >> >
> > > > > > > >
> > > > > >
> > > >
> > +======================================================================+
> > > > > > > > >> > > > localhost: |      Error: JAVA_HOME is not set and
> Java
> > > > could
> > > > > > not
> > > > > > > > be
> > > > > > > > >> > found
> > > > > > > > >> > > >       |
> > > > > > > > >> > > > localhost:
> > > > > > > > >> > > >
> > > > > > > > >> >
> > > > > > > >
> > > > > >
> > > >
> > +----------------------------------------------------------------------+
> > > > > > > > >> > > > localhost: | Please download the latest Sun JDK from
> > the
> > > > Sun
> > > > > > > Java
> > > > > > > > >> web
> > > > > > > > >> > > site
> > > > > > > > >> > > >        |
> > > > > > > > >> > > > localhost: |       >
> > > > http://java.sun.com/javase/downloads/<
> > > > > > > > >> > > >        |
> > > > > > > > >> > > > localhost: |
> > > > > > > > >> > > >        |
> > > > > > > > >> > > > localhost: | HBase requires Java 1.6 or later.
> > > > > > > > >> > > >        |
> > > > > > > > >> > > > localhost: | NOTE: This script will find Sun Java
> > > whether
> > > > > you
> > > > > > > > >> install
> > > > > > > > >> > > using
> > > > > > > > >> > > > the   |
> > > > > > > > >> > > > localhost: |       binary or the RPM based
> installer.
> > > > > > > > >> > > >       |
> > > > > > > > >> > > > localhost:
> > > > > > > > >> > > >
> > > > > > > > >> >
> > > > > > > >
> > > > > >
> > > >
> > +======================================================================+
> > > > > > > > >> > > >
> > > > > > > > >> > > > So I set JAVA_HOME in hbase-env.sh, but I still get
> > the
> > > > > > > following
> > > > > > > > >> > > >
> > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > > > > >> > > > starting master, logging to
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > >
> > > > > > > > >> >
> > > > > > > > >>
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.out
> > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > > > > > >> > > > Password:
> > > > > > > > >> > > > localhost: starting regionserver, logging to
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > >
> > > > > > > > >> >
> > > > > > > > >>
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.out
> > > > > > > > >> > > > localhost: Error: Could not find or load main class
> > > > > > > > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > > > > > > >> > > >
> > > > > > > > >> > > > then I forced a domain name via hostname and still
> got
> > > the
> > > > > > > > following
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > > > > >> > > > starting master, logging to
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > >
> > > > > > > > >> >
> > > > > > > > >>
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > > > > > >> > > > Password:
> > > > > > > > >> > > > localhost: starting regionserver, logging to
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > >
> > > > > > > > >> >
> > > > > > > > >>
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > > > > > > > >> > > > localhost: Error: Could not find or load main class
> > > > > > > > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > > I appreciate any help with this, I don't usually
> > > > experience
> > > > > a
> > > > > > > > setup
> > > > > > > > >> > > problem
> > > > > > > > >> > > > like this.
> > > > > > > > >> > > >
> > > > > > > > >> > > > thanks
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > > On Fri, Dec 27, 2013 at 8:48 AM, Jean-Marc
> Spaggiari <
> > > > > > > > >> > > > jean-marc@spaggiari.org> wrote:
> > > > > > > > >> > > >
> > > > > > > > >> > > > > Hi Gerald,
> > > > > > > > >> > > > >
> > > > > > > > >> > > > > The easiest way to test HBase locally is:
> > > > > > > > >> > > > > 1) Download the tar.gz
> > > > > > > > >> > > > > 2) Ungzip it.
> > > > > > > > >> > > > > 3) Make sure host file contains FQDN assign to
> local
> > > IP
> > > > > > > address
> > > > > > > > >> (and
> > > > > > > > >> > > not
> > > > > > > > >> > > > > 127.0.0.1)
> > > > > > > > >> > > > > 4) define JAVA_HOME to point to you Sun JDK
> > > > > > > > >> > > > > 5) bin/start-hbase.sh
> > > > > > > > >> > > > >
> > > > > > > > >> > > > > Don't change anything, don't set any other
> variable,
> > > > don't
> > > > > > do
> > > > > > > > >> > anything.
> > > > > > > > >> > > > > Just those 5 simple steps. Then you should have a
> > > > > standalone
> > > > > > > > >> version
> > > > > > > > >> > > > > running.
> > > > > > > > >> > > > >
> > > > > > > > >> > > > > JM
> > > > > > > > >> > > > >
> > > > > > > > >> > > > >
> > > > > > > > >> > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > > > >> > > > >
> > > > > > > > >> > > > > > hi I have been attempting to learn hbase and
> have
> > > been
> > > > > > > unable
> > > > > > > > to
> > > > > > > > >> > get
> > > > > > > > >> > > a
> > > > > > > > >> > > > > > local copy running, it comes back with"could not
> > > find
> > > > or
> > > > > > > load
> > > > > > > > >> main
> > > > > > > > >> > > > class
> > > > > > > > >> > > > > > org.apache.hadoop.hbase.util.HBaseConfTool" and
> > > "could
> > > > > not
> > > > > > > > find
> > > > > > > > >> or
> > > > > > > > >> > > load
> > > > > > > > >> > > > > > main class
> > > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool"
> > > > > > > and
> > > > > > > > >> > "culd
> > > > > > > > >> > > > not
> > > > > > > > >> > > > > > find or load main class
> > > > > > > > org.apache.hadoop.hbase.master.HMaster"
> > > > > > > > >> I
> > > > > > > > >> > > have
> > > > > > > > >> > > > > > tried adding stuff to the config HBASE_CLASSPATH
> > but
> > > > > > nothing
> > > > > > > > >> seems
> > > > > > > > >> > to
> > > > > > > > >> > > > get
> > > > > > > > >> > > > > > rid of the error, I also grepped the directories
> > > from
> > > > > the
> > > > > > > > >> install
> > > > > > > > >> > > > package
> > > > > > > > >> > > > > > and could not find the class that they are
> looking
> > > > for,
> > > > > > > anyone
> > > > > > > > >> have
> > > > > > > > >> > > an
> > > > > > > > >> > > > > idea
> > > > > > > > >> > > > > > of what this is? thanks
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > --
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > Gerald Klein DBA
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > ContactMe@geraldklein.com
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > geraldklein.wordpress.com
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > jk@zognet.com
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > 708-599-0352
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > Arch Awesome, Ranger & Vim the coding triple
> > threat.
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > Linux registered user #548580
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > Brought to you by the Amish Mafia
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > > --
> > > > > > > > >> > > >
> > > > > > > > >> > > > Gerald Klein DBA
> > > > > > > > >> > > >
> > > > > > > > >> > > > ContactMe@geraldklein.com
> > > > > > > > >> > > >
> > > > > > > > >> > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > > > > >> > > >
> > > > > > > > >> > > > geraldklein.wordpress.com
> > > > > > > > >> > > >
> > > > > > > > >> > > > jk@zognet.com
> > > > > > > > >> > > >
> > > > > > > > >> > > > 708-599-0352
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > > > > >> > > >
> > > > > > > > >> > > > Linux registered user #548580
> > > > > > > > >> > > >
> > > > > > > > >> > > > Brought to you by the Amish Mafia
> > > > > > > > >> > > >
> > > > > > > > >> > >
> > > > > > > > >> >
> > > > > > > > >> >
> > > > > > > > >> >
> > > > > > > > >> > --
> > > > > > > > >> >
> > > > > > > > >> > Gerald Klein DBA
> > > > > > > > >> >
> > > > > > > > >> > ContactMe@geraldklein.com
> > > > > > > > >> >
> > > > > > > > >> > www.geraldklein.com <http://geraldklein.com/>
> > > > > > > > >> >
> > > > > > > > >> > geraldklein.wordpress.com
> > > > > > > > >> >
> > > > > > > > >> > jk@zognet.com
> > > > > > > > >> >
> > > > > > > > >> > 708-599-0352
> > > > > > > > >> >
> > > > > > > > >> >
> > > > > > > > >> > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > > > > >> >
> > > > > > > > >> > Linux registered user #548580
> > > > > > > > >> >
> > > > > > > > >> > Brought to you by the Amish Mafia
> > > > > > > > >> >
> > > > > > > > >>
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > >
> > > > > > > > > Gerald Klein DBA
> > > > > > > > >
> > > > > > > > > ContactMe@geraldklein.com
> > > > > > > > >
> > > > > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > > > > >
> > > > > > > > > geraldklein.wordpress.com
> > > > > > > > >
> > > > > > > > > jk@zognet.com
> > > > > > > > >
> > > > > > > > > 708-599-0352
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > > > > >
> > > > > > > > > Linux registered user #548580
> > > > > > > > >
> > > > > > > > > Brought to you by the Amish Mafia
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > >
> > > > > > > Gerald Klein DBA
> > > > > > >
> > > > > > > ContactMe@geraldklein.com
> > > > > > >
> > > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > > >
> > > > > > > geraldklein.wordpress.com
> > > > > > >
> > > > > > > jk@zognet.com
> > > > > > >
> > > > > > > 708-599-0352
> > > > > > >
> > > > > > >
> > > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > > >
> > > > > > > Linux registered user #548580
> > > > > > >
> > > > > > > Brought to you by the Amish Mafia
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > Gerald Klein DBA
> > > > >
> > > > > ContactMe@geraldklein.com
> > > > >
> > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > >
> > > > > geraldklein.wordpress.com
> > > > >
> > > > > jk@zognet.com
> > > > >
> > > > > 708-599-0352
> > > > >
> > > > >
> > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > >
> > > > > Linux registered user #548580
> > > > >
> > > > > Brought to you by the Amish Mafia
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > >
> > > Gerald Klein DBA
> > >
> > > ContactMe@geraldklein.com
> > >
> > > www.geraldklein.com <http://geraldklein.com/>
> > >
> > > geraldklein.wordpress.com
> > >
> > > jk@zognet.com
> > >
> > > 708-599-0352
> > >
> > >
> > > Arch Awesome, Ranger & Vim the coding triple threat.
> > >
> > > Linux registered user #548580
> > >
> > > Brought to you by the Amish Mafia
> > >
> >
>
>
>
> --
>
> Gerald Klein DBA
>
> ContactMe@geraldklein.com
>
> www.geraldklein.com <http://geraldklein.com/>
>
> geraldklein.wordpress.com
>
> jk@zognet.com
>
> 708-599-0352
>
>
> Arch Awesome, Ranger & Vim the coding triple threat.
>
> Linux registered user #548580
>
> Brought to you by the Amish Mafia
>

Re: hbase config problem

Posted by Gerald Klein <jk...@zognet.com>.
yes I will try with 96.1.1 let me ask you what is the difference between
files marked hadoop 1 and hadoop 2?


On Fri, Dec 27, 2013 at 1:01 PM, Jean-Marc Spaggiari <
jean-marc@spaggiari.org> wrote:

> That's strange. It's the same issue I get with trunk, but I don't face that
> with 0.96.1.1. Are you testing with 0.96.0? Or 0.96.1.1? Can you try with
> 0.96.1.1?
>
>
> 2013/12/27 Gerald Klein <jk...@zognet.com>
>
> > Ok sorry about the versions here is 96 I am not sure why the "localhost:"
> > is there as you can see from the prompt, it is showing the logged in
> domain
> > as different.
> >
> > [root@zenlinux.localdomain.com ~/Software/hbase-gz/hbase-0.96.0]# (in
> > ranger) bin/start-hbase.sh
> > Error: Could not find or load main class
> > org.apache.hadoop.hbase.util.HBaseConfTool
> > Error: Could not find or load main class
> > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > starting master, logging to
> >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > Error: Could not find or load main class
> > org.apache.hadoop.hbase.master.HMaster
> > Password:
> > localhost: starting regionserver, logging to
> >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > localhost: Error: Could not find or load main class
> > org.apache.hadoop.hbase.regionserver.HRegionServer
> >
> >
> >
> >
> >
> > On Fri, Dec 27, 2013 at 12:39 PM, Jean-Marc Spaggiari <
> > jean-marc@spaggiari.org> wrote:
> >
> > > But it still log "localhost:" instead of the host name....
> > >
> > > Also, you are not trying each time with the same version.
> > >
> > > Initial log was:
> > > /root/Software/hbase-gz/hbase-0.96.0
> > > Now it's:
> > > /root/Software/hbase-gz/hbase-0.95.2/
> > >
> > > Can you please make sure you test with 0.96.1.1? 0.95 was a dev
> version.
> > > 0.96 has been built from that.
> > >
> > > Can you paste on pastebin the output of "set"?
> > >
> > >
> > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > >
> > > > Ok same problem still, it just seems like it just isn't locating the
> > base
> > > > classes.
> > > >
> > > > Error: Could not find or load main class
> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > Error: Could not find or load main class
> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > starting master, logging to
> > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > > > Error: Could not find or load main class
> > > > org.apache.hadoop.hbase.master.HMaster
> > > > Password:
> > > > localhost: starting regionserver, logging to
> > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > > > localhost: Error: Could not find or load main class
> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On Fri, Dec 27, 2013 at 12:14 PM, Jean-Marc Spaggiari <
> > > > jean-marc@spaggiari.org> wrote:
> > > >
> > > > > Thanks for sharing the files.
> > > > >
> > > > > So 2 things.
> > > > >
> > > > > first, regarding the hosts file. You have twice the same name but
> > with
> > > 2
> > > > > different IPs:
> > > > > 127.0.0.1       zenlinux.localdomain zenlinux
> > > > > 127.0.0.1       localhost.localdomain locahost
> > > > > 192.168.1.81 zenlinux.localdomain zenlinux
> > > > >
> > > > > Please remove the 1st line.
> > > > >
> > > > > 2nd, in your hbase-site.xml can you please try without those 2
> > > properties
> > > > > set? Just keep it empty. It will use the /tmp directory.
> > > > >
> > > > > Thanks,
> > > > >
> > > > > JM
> > > > >
> > > > >
> > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > >
> > > > > > OK here they are first is hbase-env.sh
> > > > > >
> > > > > > http://pastebin.com/KPaw9aaE
> > > > > >
> > > > > > second hbase-site.xml
> > > > > >
> > > > > > http://pastebin.com/WZixuTas
> > > > > >
> > > > > > third hosts file
> > > > > >
> > > > > > http://pastebin.com/dLFi7gcN
> > > > > >
> > > > > >
> > > > > > thanks again
> > > > > >
> > > > > > I am not worried about the password locally I just type it in,
> this
> > > is
> > > > > fine
> > > > > > for learning it
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Fri, Dec 27, 2013 at 11:34 AM, Jean-Marc Spaggiari <
> > > > > > jean-marc@spaggiari.org> wrote:
> > > > > >
> > > > > > > Attachements doesn't work on the mailing list :( You can paste
> > them
> > > > on
> > > > > > > pastebin or past the content of the scripts on your email
> > directly.
> > > > > > >
> > > > > > > Have you been able to configure the passwordless?
> > > > > > >
> > > > > > > Also, you are trying with 0.96.0, right? Can you try with
> > 0.96.1.1
> > > > > > instead?
> > > > > > > http://www.apache.org/dyn/closer.cgi/hbase/
> > > > > > >
> > > > > > > JM
> > > > > > >
> > > > > > >
> > > > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > >
> > > > > > > > OK here it is and thanks a lot for taking the time.
> > > > > > > >
> > > > > > > >
> > > > > > > > On Fri, Dec 27, 2013 at 11:15 AM, Jean-Marc Spaggiari <
> > > > > > > > jean-marc@spaggiari.org> wrote:
> > > > > > > >
> > > > > > > >> Can you share your config files?
> > > > > > > >> hbase-env.sh
> > > > > > > >> hosts
> > > > > > > >> hbase-site.xml
> > > > > > > >>
> > > > > > > >> Are you able to passwordless ssh in the same host? Like ssh
> > > MYHOST
> > > > > > does
> > > > > > > it
> > > > > > > >> ask for a password?
> > > > > > > >>
> > > > > > > >> If so, can you configure it password less?
> > > > > > > >>
> > > > > > > >> to create the key: ssh-keygen -t rsa
> > > > > > > >> To install: ssh-copy-id -i ~/.ssh/id_rsa.pub
> > > > > > > your_user_name@your_host_name
> > > > > > > >>
> > > > > > > >> JM
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > > >>
> > > > > > > >> > Yes I have added it to the conf/hbase-env.sh file in the
> > last
> > > > > email
> > > > > > > >> when it
> > > > > > > >> > initially failed that test, I currently have it pointed to
> > > > > > > >> > /opt/oracle-jdk-bin-1.7.0.45
> > > > > > > >> > which is where Gentoo has it installed.
> > > > > > > >> >
> > > > > > > >> >
> > > > > > > >> >
> > > > > > > >> >
> > > > > > > >> >
> > > > > > > >> > On Fri, Dec 27, 2013 at 10:48 AM, Jean-Marc Spaggiari <
> > > > > > > >> > jean-marc@spaggiari.org> wrote:
> > > > > > > >> >
> > > > > > > >> > > Have you modified any of the files into conf/ ?
> > > > > > > >> > >
> > > > > > > >> > > Please add your JAVA_HOME setting into conf/hbase-env.sh
> > and
> > > > > > retry.
> > > > > > > >> > >
> > > > > > > >> > > The password issue is related to the passwordless
> setting,
> > > but
> > > > > it
> > > > > > > >> should
> > > > > > > >> > > not be required for the standalone version. We will look
> > at
> > > > that
> > > > > > > after
> > > > > > > >> > you
> > > > > > > >> > > try again ;)
> > > > > > > >> > >
> > > > > > > >> > > JM
> > > > > > > >> > >
> > > > > > > >> > >
> > > > > > > >> > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > > >> > >
> > > > > > > >> > > > Thanks for the help, I unset all vars and made sure
> that
> > > the
> > > > > > > >> JAVA_HOME
> > > > > > > >> > > was
> > > > > > > >> > > > set in .bashrc, Same errors but now JAVA_HOME not set
> as
> > > > > below:
> > > > > > > >> > > >
> > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > > > >> > > > starting master, logging to
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > >
> > > > > > > >> >
> > > > > > > >>
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.out
> > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > > > > >> > > > Password:
> > > > > > > >> > > > localhost:
> > > > > > > >> > > >
> > > > > > > >> >
> > > > > > >
> > > > >
> > >
> +======================================================================+
> > > > > > > >> > > > localhost: |      Error: JAVA_HOME is not set and Java
> > > could
> > > > > not
> > > > > > > be
> > > > > > > >> > found
> > > > > > > >> > > >       |
> > > > > > > >> > > > localhost:
> > > > > > > >> > > >
> > > > > > > >> >
> > > > > > >
> > > > >
> > >
> +----------------------------------------------------------------------+
> > > > > > > >> > > > localhost: | Please download the latest Sun JDK from
> the
> > > Sun
> > > > > > Java
> > > > > > > >> web
> > > > > > > >> > > site
> > > > > > > >> > > >        |
> > > > > > > >> > > > localhost: |       >
> > > http://java.sun.com/javase/downloads/<
> > > > > > > >> > > >        |
> > > > > > > >> > > > localhost: |
> > > > > > > >> > > >        |
> > > > > > > >> > > > localhost: | HBase requires Java 1.6 or later.
> > > > > > > >> > > >        |
> > > > > > > >> > > > localhost: | NOTE: This script will find Sun Java
> > whether
> > > > you
> > > > > > > >> install
> > > > > > > >> > > using
> > > > > > > >> > > > the   |
> > > > > > > >> > > > localhost: |       binary or the RPM based installer.
> > > > > > > >> > > >       |
> > > > > > > >> > > > localhost:
> > > > > > > >> > > >
> > > > > > > >> >
> > > > > > >
> > > > >
> > >
> +======================================================================+
> > > > > > > >> > > >
> > > > > > > >> > > > So I set JAVA_HOME in hbase-env.sh, but I still get
> the
> > > > > > following
> > > > > > > >> > > >
> > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > > > >> > > > starting master, logging to
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > >
> > > > > > > >> >
> > > > > > > >>
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.out
> > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > > > > >> > > > Password:
> > > > > > > >> > > > localhost: starting regionserver, logging to
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > >
> > > > > > > >> >
> > > > > > > >>
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.out
> > > > > > > >> > > > localhost: Error: Could not find or load main class
> > > > > > > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > > > > > >> > > >
> > > > > > > >> > > > then I forced a domain name via hostname and still got
> > the
> > > > > > > following
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > > > >> > > > starting master, logging to
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > >
> > > > > > > >> >
> > > > > > > >>
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > > > > > > >> > > > Error: Could not find or load main class
> > > > > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > > > > >> > > > Password:
> > > > > > > >> > > > localhost: starting regionserver, logging to
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > >
> > > > > > > >> >
> > > > > > > >>
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > > > > > > >> > > > localhost: Error: Could not find or load main class
> > > > > > > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > > I appreciate any help with this, I don't usually
> > > experience
> > > > a
> > > > > > > setup
> > > > > > > >> > > problem
> > > > > > > >> > > > like this.
> > > > > > > >> > > >
> > > > > > > >> > > > thanks
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > > On Fri, Dec 27, 2013 at 8:48 AM, Jean-Marc Spaggiari <
> > > > > > > >> > > > jean-marc@spaggiari.org> wrote:
> > > > > > > >> > > >
> > > > > > > >> > > > > Hi Gerald,
> > > > > > > >> > > > >
> > > > > > > >> > > > > The easiest way to test HBase locally is:
> > > > > > > >> > > > > 1) Download the tar.gz
> > > > > > > >> > > > > 2) Ungzip it.
> > > > > > > >> > > > > 3) Make sure host file contains FQDN assign to local
> > IP
> > > > > > address
> > > > > > > >> (and
> > > > > > > >> > > not
> > > > > > > >> > > > > 127.0.0.1)
> > > > > > > >> > > > > 4) define JAVA_HOME to point to you Sun JDK
> > > > > > > >> > > > > 5) bin/start-hbase.sh
> > > > > > > >> > > > >
> > > > > > > >> > > > > Don't change anything, don't set any other variable,
> > > don't
> > > > > do
> > > > > > > >> > anything.
> > > > > > > >> > > > > Just those 5 simple steps. Then you should have a
> > > > standalone
> > > > > > > >> version
> > > > > > > >> > > > > running.
> > > > > > > >> > > > >
> > > > > > > >> > > > > JM
> > > > > > > >> > > > >
> > > > > > > >> > > > >
> > > > > > > >> > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > > >> > > > >
> > > > > > > >> > > > > > hi I have been attempting to learn hbase and have
> > been
> > > > > > unable
> > > > > > > to
> > > > > > > >> > get
> > > > > > > >> > > a
> > > > > > > >> > > > > > local copy running, it comes back with"could not
> > find
> > > or
> > > > > > load
> > > > > > > >> main
> > > > > > > >> > > > class
> > > > > > > >> > > > > > org.apache.hadoop.hbase.util.HBaseConfTool" and
> > "could
> > > > not
> > > > > > > find
> > > > > > > >> or
> > > > > > > >> > > load
> > > > > > > >> > > > > > main class
> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool"
> > > > > > and
> > > > > > > >> > "culd
> > > > > > > >> > > > not
> > > > > > > >> > > > > > find or load main class
> > > > > > > org.apache.hadoop.hbase.master.HMaster"
> > > > > > > >> I
> > > > > > > >> > > have
> > > > > > > >> > > > > > tried adding stuff to the config HBASE_CLASSPATH
> but
> > > > > nothing
> > > > > > > >> seems
> > > > > > > >> > to
> > > > > > > >> > > > get
> > > > > > > >> > > > > > rid of the error, I also grepped the directories
> > from
> > > > the
> > > > > > > >> install
> > > > > > > >> > > > package
> > > > > > > >> > > > > > and could not find the class that they are looking
> > > for,
> > > > > > anyone
> > > > > > > >> have
> > > > > > > >> > > an
> > > > > > > >> > > > > idea
> > > > > > > >> > > > > > of what this is? thanks
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > --
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > Gerald Klein DBA
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > ContactMe@geraldklein.com
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > geraldklein.wordpress.com
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > jk@zognet.com
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > 708-599-0352
> > > > > > > >> > > > > >
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > Arch Awesome, Ranger & Vim the coding triple
> threat.
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > Linux registered user #548580
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > Brought to you by the Amish Mafia
> > > > > > > >> > > > > >
> > > > > > > >> > > > >
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > > --
> > > > > > > >> > > >
> > > > > > > >> > > > Gerald Klein DBA
> > > > > > > >> > > >
> > > > > > > >> > > > ContactMe@geraldklein.com
> > > > > > > >> > > >
> > > > > > > >> > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > > > >> > > >
> > > > > > > >> > > > geraldklein.wordpress.com
> > > > > > > >> > > >
> > > > > > > >> > > > jk@zognet.com
> > > > > > > >> > > >
> > > > > > > >> > > > 708-599-0352
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > > > >> > > >
> > > > > > > >> > > > Linux registered user #548580
> > > > > > > >> > > >
> > > > > > > >> > > > Brought to you by the Amish Mafia
> > > > > > > >> > > >
> > > > > > > >> > >
> > > > > > > >> >
> > > > > > > >> >
> > > > > > > >> >
> > > > > > > >> > --
> > > > > > > >> >
> > > > > > > >> > Gerald Klein DBA
> > > > > > > >> >
> > > > > > > >> > ContactMe@geraldklein.com
> > > > > > > >> >
> > > > > > > >> > www.geraldklein.com <http://geraldklein.com/>
> > > > > > > >> >
> > > > > > > >> > geraldklein.wordpress.com
> > > > > > > >> >
> > > > > > > >> > jk@zognet.com
> > > > > > > >> >
> > > > > > > >> > 708-599-0352
> > > > > > > >> >
> > > > > > > >> >
> > > > > > > >> > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > > > >> >
> > > > > > > >> > Linux registered user #548580
> > > > > > > >> >
> > > > > > > >> > Brought to you by the Amish Mafia
> > > > > > > >> >
> > > > > > > >>
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > >
> > > > > > > > Gerald Klein DBA
> > > > > > > >
> > > > > > > > ContactMe@geraldklein.com
> > > > > > > >
> > > > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > > > >
> > > > > > > > geraldklein.wordpress.com
> > > > > > > >
> > > > > > > > jk@zognet.com
> > > > > > > >
> > > > > > > > 708-599-0352
> > > > > > > >
> > > > > > > >
> > > > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > > > >
> > > > > > > > Linux registered user #548580
> > > > > > > >
> > > > > > > > Brought to you by the Amish Mafia
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > >
> > > > > > Gerald Klein DBA
> > > > > >
> > > > > > ContactMe@geraldklein.com
> > > > > >
> > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > >
> > > > > > geraldklein.wordpress.com
> > > > > >
> > > > > > jk@zognet.com
> > > > > >
> > > > > > 708-599-0352
> > > > > >
> > > > > >
> > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > >
> > > > > > Linux registered user #548580
> > > > > >
> > > > > > Brought to you by the Amish Mafia
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Gerald Klein DBA
> > > >
> > > > ContactMe@geraldklein.com
> > > >
> > > > www.geraldklein.com <http://geraldklein.com/>
> > > >
> > > > geraldklein.wordpress.com
> > > >
> > > > jk@zognet.com
> > > >
> > > > 708-599-0352
> > > >
> > > >
> > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > >
> > > > Linux registered user #548580
> > > >
> > > > Brought to you by the Amish Mafia
> > > >
> > >
> >
> >
> >
> > --
> >
> > Gerald Klein DBA
> >
> > ContactMe@geraldklein.com
> >
> > www.geraldklein.com <http://geraldklein.com/>
> >
> > geraldklein.wordpress.com
> >
> > jk@zognet.com
> >
> > 708-599-0352
> >
> >
> > Arch Awesome, Ranger & Vim the coding triple threat.
> >
> > Linux registered user #548580
> >
> > Brought to you by the Amish Mafia
> >
>



-- 

Gerald Klein DBA

ContactMe@geraldklein.com

www.geraldklein.com <http://geraldklein.com/>

geraldklein.wordpress.com

jk@zognet.com

708-599-0352


Arch Awesome, Ranger & Vim the coding triple threat.

Linux registered user #548580

Brought to you by the Amish Mafia

Re: hbase config problem

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
That's strange. It's the same issue I get with trunk, but I don't face that
with 0.96.1.1. Are you testing with 0.96.0? Or 0.96.1.1? Can you try with
0.96.1.1?


2013/12/27 Gerald Klein <jk...@zognet.com>

> Ok sorry about the versions here is 96 I am not sure why the "localhost:"
> is there as you can see from the prompt, it is showing the logged in domain
> as different.
>
> [root@zenlinux.localdomain.com ~/Software/hbase-gz/hbase-0.96.0]# (in
> ranger) bin/start-hbase.sh
> Error: Could not find or load main class
> org.apache.hadoop.hbase.util.HBaseConfTool
> Error: Could not find or load main class
> org.apache.hadoop.hbase.zookeeper.ZKServerTool
> starting master, logging to
>
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> Error: Could not find or load main class
> org.apache.hadoop.hbase.master.HMaster
> Password:
> localhost: starting regionserver, logging to
>
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> localhost: Error: Could not find or load main class
> org.apache.hadoop.hbase.regionserver.HRegionServer
>
>
>
>
>
> On Fri, Dec 27, 2013 at 12:39 PM, Jean-Marc Spaggiari <
> jean-marc@spaggiari.org> wrote:
>
> > But it still log "localhost:" instead of the host name....
> >
> > Also, you are not trying each time with the same version.
> >
> > Initial log was:
> > /root/Software/hbase-gz/hbase-0.96.0
> > Now it's:
> > /root/Software/hbase-gz/hbase-0.95.2/
> >
> > Can you please make sure you test with 0.96.1.1? 0.95 was a dev version.
> > 0.96 has been built from that.
> >
> > Can you paste on pastebin the output of "set"?
> >
> >
> > 2013/12/27 Gerald Klein <jk...@zognet.com>
> >
> > > Ok same problem still, it just seems like it just isn't locating the
> base
> > > classes.
> > >
> > > Error: Could not find or load main class
> > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > Error: Could not find or load main class
> > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > starting master, logging to
> > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > > Error: Could not find or load main class
> > > org.apache.hadoop.hbase.master.HMaster
> > > Password:
> > > localhost: starting regionserver, logging to
> > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > > localhost: Error: Could not find or load main class
> > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > >
> > >
> > >
> > >
> > >
> > > On Fri, Dec 27, 2013 at 12:14 PM, Jean-Marc Spaggiari <
> > > jean-marc@spaggiari.org> wrote:
> > >
> > > > Thanks for sharing the files.
> > > >
> > > > So 2 things.
> > > >
> > > > first, regarding the hosts file. You have twice the same name but
> with
> > 2
> > > > different IPs:
> > > > 127.0.0.1       zenlinux.localdomain zenlinux
> > > > 127.0.0.1       localhost.localdomain locahost
> > > > 192.168.1.81 zenlinux.localdomain zenlinux
> > > >
> > > > Please remove the 1st line.
> > > >
> > > > 2nd, in your hbase-site.xml can you please try without those 2
> > properties
> > > > set? Just keep it empty. It will use the /tmp directory.
> > > >
> > > > Thanks,
> > > >
> > > > JM
> > > >
> > > >
> > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > >
> > > > > OK here they are first is hbase-env.sh
> > > > >
> > > > > http://pastebin.com/KPaw9aaE
> > > > >
> > > > > second hbase-site.xml
> > > > >
> > > > > http://pastebin.com/WZixuTas
> > > > >
> > > > > third hosts file
> > > > >
> > > > > http://pastebin.com/dLFi7gcN
> > > > >
> > > > >
> > > > > thanks again
> > > > >
> > > > > I am not worried about the password locally I just type it in, this
> > is
> > > > fine
> > > > > for learning it
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Fri, Dec 27, 2013 at 11:34 AM, Jean-Marc Spaggiari <
> > > > > jean-marc@spaggiari.org> wrote:
> > > > >
> > > > > > Attachements doesn't work on the mailing list :( You can paste
> them
> > > on
> > > > > > pastebin or past the content of the scripts on your email
> directly.
> > > > > >
> > > > > > Have you been able to configure the passwordless?
> > > > > >
> > > > > > Also, you are trying with 0.96.0, right? Can you try with
> 0.96.1.1
> > > > > instead?
> > > > > > http://www.apache.org/dyn/closer.cgi/hbase/
> > > > > >
> > > > > > JM
> > > > > >
> > > > > >
> > > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > >
> > > > > > > OK here it is and thanks a lot for taking the time.
> > > > > > >
> > > > > > >
> > > > > > > On Fri, Dec 27, 2013 at 11:15 AM, Jean-Marc Spaggiari <
> > > > > > > jean-marc@spaggiari.org> wrote:
> > > > > > >
> > > > > > >> Can you share your config files?
> > > > > > >> hbase-env.sh
> > > > > > >> hosts
> > > > > > >> hbase-site.xml
> > > > > > >>
> > > > > > >> Are you able to passwordless ssh in the same host? Like ssh
> > MYHOST
> > > > > does
> > > > > > it
> > > > > > >> ask for a password?
> > > > > > >>
> > > > > > >> If so, can you configure it password less?
> > > > > > >>
> > > > > > >> to create the key: ssh-keygen -t rsa
> > > > > > >> To install: ssh-copy-id -i ~/.ssh/id_rsa.pub
> > > > > > your_user_name@your_host_name
> > > > > > >>
> > > > > > >> JM
> > > > > > >>
> > > > > > >>
> > > > > > >> 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > >>
> > > > > > >> > Yes I have added it to the conf/hbase-env.sh file in the
> last
> > > > email
> > > > > > >> when it
> > > > > > >> > initially failed that test, I currently have it pointed to
> > > > > > >> > /opt/oracle-jdk-bin-1.7.0.45
> > > > > > >> > which is where Gentoo has it installed.
> > > > > > >> >
> > > > > > >> >
> > > > > > >> >
> > > > > > >> >
> > > > > > >> >
> > > > > > >> > On Fri, Dec 27, 2013 at 10:48 AM, Jean-Marc Spaggiari <
> > > > > > >> > jean-marc@spaggiari.org> wrote:
> > > > > > >> >
> > > > > > >> > > Have you modified any of the files into conf/ ?
> > > > > > >> > >
> > > > > > >> > > Please add your JAVA_HOME setting into conf/hbase-env.sh
> and
> > > > > retry.
> > > > > > >> > >
> > > > > > >> > > The password issue is related to the passwordless setting,
> > but
> > > > it
> > > > > > >> should
> > > > > > >> > > not be required for the standalone version. We will look
> at
> > > that
> > > > > > after
> > > > > > >> > you
> > > > > > >> > > try again ;)
> > > > > > >> > >
> > > > > > >> > > JM
> > > > > > >> > >
> > > > > > >> > >
> > > > > > >> > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > >> > >
> > > > > > >> > > > Thanks for the help, I unset all vars and made sure that
> > the
> > > > > > >> JAVA_HOME
> > > > > > >> > > was
> > > > > > >> > > > set in .bashrc, Same errors but now JAVA_HOME not set as
> > > > below:
> > > > > > >> > > >
> > > > > > >> > > > Error: Could not find or load main class
> > > > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > > >> > > > Error: Could not find or load main class
> > > > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > > >> > > > starting master, logging to
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > >
> > > > > > >> >
> > > > > > >>
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.out
> > > > > > >> > > > Error: Could not find or load main class
> > > > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > > > >> > > > Password:
> > > > > > >> > > > localhost:
> > > > > > >> > > >
> > > > > > >> >
> > > > > >
> > > >
> > +======================================================================+
> > > > > > >> > > > localhost: |      Error: JAVA_HOME is not set and Java
> > could
> > > > not
> > > > > > be
> > > > > > >> > found
> > > > > > >> > > >       |
> > > > > > >> > > > localhost:
> > > > > > >> > > >
> > > > > > >> >
> > > > > >
> > > >
> > +----------------------------------------------------------------------+
> > > > > > >> > > > localhost: | Please download the latest Sun JDK from the
> > Sun
> > > > > Java
> > > > > > >> web
> > > > > > >> > > site
> > > > > > >> > > >        |
> > > > > > >> > > > localhost: |       >
> > http://java.sun.com/javase/downloads/<
> > > > > > >> > > >        |
> > > > > > >> > > > localhost: |
> > > > > > >> > > >        |
> > > > > > >> > > > localhost: | HBase requires Java 1.6 or later.
> > > > > > >> > > >        |
> > > > > > >> > > > localhost: | NOTE: This script will find Sun Java
> whether
> > > you
> > > > > > >> install
> > > > > > >> > > using
> > > > > > >> > > > the   |
> > > > > > >> > > > localhost: |       binary or the RPM based installer.
> > > > > > >> > > >       |
> > > > > > >> > > > localhost:
> > > > > > >> > > >
> > > > > > >> >
> > > > > >
> > > >
> > +======================================================================+
> > > > > > >> > > >
> > > > > > >> > > > So I set JAVA_HOME in hbase-env.sh, but I still get the
> > > > > following
> > > > > > >> > > >
> > > > > > >> > > > Error: Could not find or load main class
> > > > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > > >> > > > Error: Could not find or load main class
> > > > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > > >> > > > starting master, logging to
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > >
> > > > > > >> >
> > > > > > >>
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.out
> > > > > > >> > > > Error: Could not find or load main class
> > > > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > > > >> > > > Password:
> > > > > > >> > > > localhost: starting regionserver, logging to
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > >
> > > > > > >> >
> > > > > > >>
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.out
> > > > > > >> > > > localhost: Error: Could not find or load main class
> > > > > > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > > > > >> > > >
> > > > > > >> > > > then I forced a domain name via hostname and still got
> the
> > > > > > following
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > > Error: Could not find or load main class
> > > > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > > >> > > > Error: Could not find or load main class
> > > > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > > >> > > > starting master, logging to
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > >
> > > > > > >> >
> > > > > > >>
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > > > > > >> > > > Error: Could not find or load main class
> > > > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > > > >> > > > Password:
> > > > > > >> > > > localhost: starting regionserver, logging to
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > >
> > > > > > >> >
> > > > > > >>
> > > > > >
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > > > > > >> > > > localhost: Error: Could not find or load main class
> > > > > > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > > I appreciate any help with this, I don't usually
> > experience
> > > a
> > > > > > setup
> > > > > > >> > > problem
> > > > > > >> > > > like this.
> > > > > > >> > > >
> > > > > > >> > > > thanks
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > > On Fri, Dec 27, 2013 at 8:48 AM, Jean-Marc Spaggiari <
> > > > > > >> > > > jean-marc@spaggiari.org> wrote:
> > > > > > >> > > >
> > > > > > >> > > > > Hi Gerald,
> > > > > > >> > > > >
> > > > > > >> > > > > The easiest way to test HBase locally is:
> > > > > > >> > > > > 1) Download the tar.gz
> > > > > > >> > > > > 2) Ungzip it.
> > > > > > >> > > > > 3) Make sure host file contains FQDN assign to local
> IP
> > > > > address
> > > > > > >> (and
> > > > > > >> > > not
> > > > > > >> > > > > 127.0.0.1)
> > > > > > >> > > > > 4) define JAVA_HOME to point to you Sun JDK
> > > > > > >> > > > > 5) bin/start-hbase.sh
> > > > > > >> > > > >
> > > > > > >> > > > > Don't change anything, don't set any other variable,
> > don't
> > > > do
> > > > > > >> > anything.
> > > > > > >> > > > > Just those 5 simple steps. Then you should have a
> > > standalone
> > > > > > >> version
> > > > > > >> > > > > running.
> > > > > > >> > > > >
> > > > > > >> > > > > JM
> > > > > > >> > > > >
> > > > > > >> > > > >
> > > > > > >> > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > > >> > > > >
> > > > > > >> > > > > > hi I have been attempting to learn hbase and have
> been
> > > > > unable
> > > > > > to
> > > > > > >> > get
> > > > > > >> > > a
> > > > > > >> > > > > > local copy running, it comes back with"could not
> find
> > or
> > > > > load
> > > > > > >> main
> > > > > > >> > > > class
> > > > > > >> > > > > > org.apache.hadoop.hbase.util.HBaseConfTool" and
> "could
> > > not
> > > > > > find
> > > > > > >> or
> > > > > > >> > > load
> > > > > > >> > > > > > main class
> > > org.apache.hadoop.hbase.zookeeper.ZKServerTool"
> > > > > and
> > > > > > >> > "culd
> > > > > > >> > > > not
> > > > > > >> > > > > > find or load main class
> > > > > > org.apache.hadoop.hbase.master.HMaster"
> > > > > > >> I
> > > > > > >> > > have
> > > > > > >> > > > > > tried adding stuff to the config HBASE_CLASSPATH but
> > > > nothing
> > > > > > >> seems
> > > > > > >> > to
> > > > > > >> > > > get
> > > > > > >> > > > > > rid of the error, I also grepped the directories
> from
> > > the
> > > > > > >> install
> > > > > > >> > > > package
> > > > > > >> > > > > > and could not find the class that they are looking
> > for,
> > > > > anyone
> > > > > > >> have
> > > > > > >> > > an
> > > > > > >> > > > > idea
> > > > > > >> > > > > > of what this is? thanks
> > > > > > >> > > > > >
> > > > > > >> > > > > > --
> > > > > > >> > > > > >
> > > > > > >> > > > > > Gerald Klein DBA
> > > > > > >> > > > > >
> > > > > > >> > > > > > ContactMe@geraldklein.com
> > > > > > >> > > > > >
> > > > > > >> > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > > >> > > > > >
> > > > > > >> > > > > > geraldklein.wordpress.com
> > > > > > >> > > > > >
> > > > > > >> > > > > > jk@zognet.com
> > > > > > >> > > > > >
> > > > > > >> > > > > > 708-599-0352
> > > > > > >> > > > > >
> > > > > > >> > > > > >
> > > > > > >> > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > > >> > > > > >
> > > > > > >> > > > > > Linux registered user #548580
> > > > > > >> > > > > >
> > > > > > >> > > > > > Brought to you by the Amish Mafia
> > > > > > >> > > > > >
> > > > > > >> > > > >
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > > --
> > > > > > >> > > >
> > > > > > >> > > > Gerald Klein DBA
> > > > > > >> > > >
> > > > > > >> > > > ContactMe@geraldklein.com
> > > > > > >> > > >
> > > > > > >> > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > > >> > > >
> > > > > > >> > > > geraldklein.wordpress.com
> > > > > > >> > > >
> > > > > > >> > > > jk@zognet.com
> > > > > > >> > > >
> > > > > > >> > > > 708-599-0352
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > > >> > > >
> > > > > > >> > > > Linux registered user #548580
> > > > > > >> > > >
> > > > > > >> > > > Brought to you by the Amish Mafia
> > > > > > >> > > >
> > > > > > >> > >
> > > > > > >> >
> > > > > > >> >
> > > > > > >> >
> > > > > > >> > --
> > > > > > >> >
> > > > > > >> > Gerald Klein DBA
> > > > > > >> >
> > > > > > >> > ContactMe@geraldklein.com
> > > > > > >> >
> > > > > > >> > www.geraldklein.com <http://geraldklein.com/>
> > > > > > >> >
> > > > > > >> > geraldklein.wordpress.com
> > > > > > >> >
> > > > > > >> > jk@zognet.com
> > > > > > >> >
> > > > > > >> > 708-599-0352
> > > > > > >> >
> > > > > > >> >
> > > > > > >> > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > > >> >
> > > > > > >> > Linux registered user #548580
> > > > > > >> >
> > > > > > >> > Brought to you by the Amish Mafia
> > > > > > >> >
> > > > > > >>
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > >
> > > > > > > Gerald Klein DBA
> > > > > > >
> > > > > > > ContactMe@geraldklein.com
> > > > > > >
> > > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > > >
> > > > > > > geraldklein.wordpress.com
> > > > > > >
> > > > > > > jk@zognet.com
> > > > > > >
> > > > > > > 708-599-0352
> > > > > > >
> > > > > > >
> > > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > > >
> > > > > > > Linux registered user #548580
> > > > > > >
> > > > > > > Brought to you by the Amish Mafia
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > Gerald Klein DBA
> > > > >
> > > > > ContactMe@geraldklein.com
> > > > >
> > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > >
> > > > > geraldklein.wordpress.com
> > > > >
> > > > > jk@zognet.com
> > > > >
> > > > > 708-599-0352
> > > > >
> > > > >
> > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > >
> > > > > Linux registered user #548580
> > > > >
> > > > > Brought to you by the Amish Mafia
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > >
> > > Gerald Klein DBA
> > >
> > > ContactMe@geraldklein.com
> > >
> > > www.geraldklein.com <http://geraldklein.com/>
> > >
> > > geraldklein.wordpress.com
> > >
> > > jk@zognet.com
> > >
> > > 708-599-0352
> > >
> > >
> > > Arch Awesome, Ranger & Vim the coding triple threat.
> > >
> > > Linux registered user #548580
> > >
> > > Brought to you by the Amish Mafia
> > >
> >
>
>
>
> --
>
> Gerald Klein DBA
>
> ContactMe@geraldklein.com
>
> www.geraldklein.com <http://geraldklein.com/>
>
> geraldklein.wordpress.com
>
> jk@zognet.com
>
> 708-599-0352
>
>
> Arch Awesome, Ranger & Vim the coding triple threat.
>
> Linux registered user #548580
>
> Brought to you by the Amish Mafia
>

Re: hbase config problem

Posted by Gerald Klein <jk...@zognet.com>.
Ok sorry about the versions here is 96 I am not sure why the "localhost:"
is there as you can see from the prompt, it is showing the logged in domain
as different.

[root@zenlinux.localdomain.com ~/Software/hbase-gz/hbase-0.96.0]# (in
ranger) bin/start-hbase.sh
Error: Could not find or load main class
org.apache.hadoop.hbase.util.HBaseConfTool
Error: Could not find or load main class
org.apache.hadoop.hbase.zookeeper.ZKServerTool
starting master, logging to
/root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
Error: Could not find or load main class
org.apache.hadoop.hbase.master.HMaster
Password:
localhost: starting regionserver, logging to
/root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
localhost: Error: Could not find or load main class
org.apache.hadoop.hbase.regionserver.HRegionServer





On Fri, Dec 27, 2013 at 12:39 PM, Jean-Marc Spaggiari <
jean-marc@spaggiari.org> wrote:

> But it still log "localhost:" instead of the host name....
>
> Also, you are not trying each time with the same version.
>
> Initial log was:
> /root/Software/hbase-gz/hbase-0.96.0
> Now it's:
> /root/Software/hbase-gz/hbase-0.95.2/
>
> Can you please make sure you test with 0.96.1.1? 0.95 was a dev version.
> 0.96 has been built from that.
>
> Can you paste on pastebin the output of "set"?
>
>
> 2013/12/27 Gerald Klein <jk...@zognet.com>
>
> > Ok same problem still, it just seems like it just isn't locating the base
> > classes.
> >
> > Error: Could not find or load main class
> > org.apache.hadoop.hbase.util.HBaseConfTool
> > Error: Could not find or load main class
> > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > starting master, logging to
> >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > Error: Could not find or load main class
> > org.apache.hadoop.hbase.master.HMaster
> > Password:
> > localhost: starting regionserver, logging to
> >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > localhost: Error: Could not find or load main class
> > org.apache.hadoop.hbase.regionserver.HRegionServer
> >
> >
> >
> >
> >
> > On Fri, Dec 27, 2013 at 12:14 PM, Jean-Marc Spaggiari <
> > jean-marc@spaggiari.org> wrote:
> >
> > > Thanks for sharing the files.
> > >
> > > So 2 things.
> > >
> > > first, regarding the hosts file. You have twice the same name but with
> 2
> > > different IPs:
> > > 127.0.0.1       zenlinux.localdomain zenlinux
> > > 127.0.0.1       localhost.localdomain locahost
> > > 192.168.1.81 zenlinux.localdomain zenlinux
> > >
> > > Please remove the 1st line.
> > >
> > > 2nd, in your hbase-site.xml can you please try without those 2
> properties
> > > set? Just keep it empty. It will use the /tmp directory.
> > >
> > > Thanks,
> > >
> > > JM
> > >
> > >
> > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > >
> > > > OK here they are first is hbase-env.sh
> > > >
> > > > http://pastebin.com/KPaw9aaE
> > > >
> > > > second hbase-site.xml
> > > >
> > > > http://pastebin.com/WZixuTas
> > > >
> > > > third hosts file
> > > >
> > > > http://pastebin.com/dLFi7gcN
> > > >
> > > >
> > > > thanks again
> > > >
> > > > I am not worried about the password locally I just type it in, this
> is
> > > fine
> > > > for learning it
> > > >
> > > >
> > > >
> > > >
> > > > On Fri, Dec 27, 2013 at 11:34 AM, Jean-Marc Spaggiari <
> > > > jean-marc@spaggiari.org> wrote:
> > > >
> > > > > Attachements doesn't work on the mailing list :( You can paste them
> > on
> > > > > pastebin or past the content of the scripts on your email directly.
> > > > >
> > > > > Have you been able to configure the passwordless?
> > > > >
> > > > > Also, you are trying with 0.96.0, right? Can you try with 0.96.1.1
> > > > instead?
> > > > > http://www.apache.org/dyn/closer.cgi/hbase/
> > > > >
> > > > > JM
> > > > >
> > > > >
> > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > >
> > > > > > OK here it is and thanks a lot for taking the time.
> > > > > >
> > > > > >
> > > > > > On Fri, Dec 27, 2013 at 11:15 AM, Jean-Marc Spaggiari <
> > > > > > jean-marc@spaggiari.org> wrote:
> > > > > >
> > > > > >> Can you share your config files?
> > > > > >> hbase-env.sh
> > > > > >> hosts
> > > > > >> hbase-site.xml
> > > > > >>
> > > > > >> Are you able to passwordless ssh in the same host? Like ssh
> MYHOST
> > > > does
> > > > > it
> > > > > >> ask for a password?
> > > > > >>
> > > > > >> If so, can you configure it password less?
> > > > > >>
> > > > > >> to create the key: ssh-keygen -t rsa
> > > > > >> To install: ssh-copy-id -i ~/.ssh/id_rsa.pub
> > > > > your_user_name@your_host_name
> > > > > >>
> > > > > >> JM
> > > > > >>
> > > > > >>
> > > > > >> 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > >>
> > > > > >> > Yes I have added it to the conf/hbase-env.sh file in the last
> > > email
> > > > > >> when it
> > > > > >> > initially failed that test, I currently have it pointed to
> > > > > >> > /opt/oracle-jdk-bin-1.7.0.45
> > > > > >> > which is where Gentoo has it installed.
> > > > > >> >
> > > > > >> >
> > > > > >> >
> > > > > >> >
> > > > > >> >
> > > > > >> > On Fri, Dec 27, 2013 at 10:48 AM, Jean-Marc Spaggiari <
> > > > > >> > jean-marc@spaggiari.org> wrote:
> > > > > >> >
> > > > > >> > > Have you modified any of the files into conf/ ?
> > > > > >> > >
> > > > > >> > > Please add your JAVA_HOME setting into conf/hbase-env.sh and
> > > > retry.
> > > > > >> > >
> > > > > >> > > The password issue is related to the passwordless setting,
> but
> > > it
> > > > > >> should
> > > > > >> > > not be required for the standalone version. We will look at
> > that
> > > > > after
> > > > > >> > you
> > > > > >> > > try again ;)
> > > > > >> > >
> > > > > >> > > JM
> > > > > >> > >
> > > > > >> > >
> > > > > >> > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > >> > >
> > > > > >> > > > Thanks for the help, I unset all vars and made sure that
> the
> > > > > >> JAVA_HOME
> > > > > >> > > was
> > > > > >> > > > set in .bashrc, Same errors but now JAVA_HOME not set as
> > > below:
> > > > > >> > > >
> > > > > >> > > > Error: Could not find or load main class
> > > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > >> > > > Error: Could not find or load main class
> > > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > >> > > > starting master, logging to
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > >
> > > > > >> >
> > > > > >>
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.out
> > > > > >> > > > Error: Could not find or load main class
> > > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > > >> > > > Password:
> > > > > >> > > > localhost:
> > > > > >> > > >
> > > > > >> >
> > > > >
> > >
> +======================================================================+
> > > > > >> > > > localhost: |      Error: JAVA_HOME is not set and Java
> could
> > > not
> > > > > be
> > > > > >> > found
> > > > > >> > > >       |
> > > > > >> > > > localhost:
> > > > > >> > > >
> > > > > >> >
> > > > >
> > >
> +----------------------------------------------------------------------+
> > > > > >> > > > localhost: | Please download the latest Sun JDK from the
> Sun
> > > > Java
> > > > > >> web
> > > > > >> > > site
> > > > > >> > > >        |
> > > > > >> > > > localhost: |       >
> http://java.sun.com/javase/downloads/<
> > > > > >> > > >        |
> > > > > >> > > > localhost: |
> > > > > >> > > >        |
> > > > > >> > > > localhost: | HBase requires Java 1.6 or later.
> > > > > >> > > >        |
> > > > > >> > > > localhost: | NOTE: This script will find Sun Java whether
> > you
> > > > > >> install
> > > > > >> > > using
> > > > > >> > > > the   |
> > > > > >> > > > localhost: |       binary or the RPM based installer.
> > > > > >> > > >       |
> > > > > >> > > > localhost:
> > > > > >> > > >
> > > > > >> >
> > > > >
> > >
> +======================================================================+
> > > > > >> > > >
> > > > > >> > > > So I set JAVA_HOME in hbase-env.sh, but I still get the
> > > > following
> > > > > >> > > >
> > > > > >> > > > Error: Could not find or load main class
> > > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > >> > > > Error: Could not find or load main class
> > > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > >> > > > starting master, logging to
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > >
> > > > > >> >
> > > > > >>
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.out
> > > > > >> > > > Error: Could not find or load main class
> > > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > > >> > > > Password:
> > > > > >> > > > localhost: starting regionserver, logging to
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > >
> > > > > >> >
> > > > > >>
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.out
> > > > > >> > > > localhost: Error: Could not find or load main class
> > > > > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > > > >> > > >
> > > > > >> > > > then I forced a domain name via hostname and still got the
> > > > > following
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > Error: Could not find or load main class
> > > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > > >> > > > Error: Could not find or load main class
> > > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > > >> > > > starting master, logging to
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > >
> > > > > >> >
> > > > > >>
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > > > > >> > > > Error: Could not find or load main class
> > > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > > >> > > > Password:
> > > > > >> > > > localhost: starting regionserver, logging to
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > >
> > > > > >> >
> > > > > >>
> > > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > > > > >> > > > localhost: Error: Could not find or load main class
> > > > > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > I appreciate any help with this, I don't usually
> experience
> > a
> > > > > setup
> > > > > >> > > problem
> > > > > >> > > > like this.
> > > > > >> > > >
> > > > > >> > > > thanks
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > On Fri, Dec 27, 2013 at 8:48 AM, Jean-Marc Spaggiari <
> > > > > >> > > > jean-marc@spaggiari.org> wrote:
> > > > > >> > > >
> > > > > >> > > > > Hi Gerald,
> > > > > >> > > > >
> > > > > >> > > > > The easiest way to test HBase locally is:
> > > > > >> > > > > 1) Download the tar.gz
> > > > > >> > > > > 2) Ungzip it.
> > > > > >> > > > > 3) Make sure host file contains FQDN assign to local IP
> > > > address
> > > > > >> (and
> > > > > >> > > not
> > > > > >> > > > > 127.0.0.1)
> > > > > >> > > > > 4) define JAVA_HOME to point to you Sun JDK
> > > > > >> > > > > 5) bin/start-hbase.sh
> > > > > >> > > > >
> > > > > >> > > > > Don't change anything, don't set any other variable,
> don't
> > > do
> > > > > >> > anything.
> > > > > >> > > > > Just those 5 simple steps. Then you should have a
> > standalone
> > > > > >> version
> > > > > >> > > > > running.
> > > > > >> > > > >
> > > > > >> > > > > JM
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > > >> > > > >
> > > > > >> > > > > > hi I have been attempting to learn hbase and have been
> > > > unable
> > > > > to
> > > > > >> > get
> > > > > >> > > a
> > > > > >> > > > > > local copy running, it comes back with"could not find
> or
> > > > load
> > > > > >> main
> > > > > >> > > > class
> > > > > >> > > > > > org.apache.hadoop.hbase.util.HBaseConfTool" and "could
> > not
> > > > > find
> > > > > >> or
> > > > > >> > > load
> > > > > >> > > > > > main class
> > org.apache.hadoop.hbase.zookeeper.ZKServerTool"
> > > > and
> > > > > >> > "culd
> > > > > >> > > > not
> > > > > >> > > > > > find or load main class
> > > > > org.apache.hadoop.hbase.master.HMaster"
> > > > > >> I
> > > > > >> > > have
> > > > > >> > > > > > tried adding stuff to the config HBASE_CLASSPATH but
> > > nothing
> > > > > >> seems
> > > > > >> > to
> > > > > >> > > > get
> > > > > >> > > > > > rid of the error, I also grepped the directories from
> > the
> > > > > >> install
> > > > > >> > > > package
> > > > > >> > > > > > and could not find the class that they are looking
> for,
> > > > anyone
> > > > > >> have
> > > > > >> > > an
> > > > > >> > > > > idea
> > > > > >> > > > > > of what this is? thanks
> > > > > >> > > > > >
> > > > > >> > > > > > --
> > > > > >> > > > > >
> > > > > >> > > > > > Gerald Klein DBA
> > > > > >> > > > > >
> > > > > >> > > > > > ContactMe@geraldklein.com
> > > > > >> > > > > >
> > > > > >> > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > >> > > > > >
> > > > > >> > > > > > geraldklein.wordpress.com
> > > > > >> > > > > >
> > > > > >> > > > > > jk@zognet.com
> > > > > >> > > > > >
> > > > > >> > > > > > 708-599-0352
> > > > > >> > > > > >
> > > > > >> > > > > >
> > > > > >> > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > >> > > > > >
> > > > > >> > > > > > Linux registered user #548580
> > > > > >> > > > > >
> > > > > >> > > > > > Brought to you by the Amish Mafia
> > > > > >> > > > > >
> > > > > >> > > > >
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > --
> > > > > >> > > >
> > > > > >> > > > Gerald Klein DBA
> > > > > >> > > >
> > > > > >> > > > ContactMe@geraldklein.com
> > > > > >> > > >
> > > > > >> > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > >> > > >
> > > > > >> > > > geraldklein.wordpress.com
> > > > > >> > > >
> > > > > >> > > > jk@zognet.com
> > > > > >> > > >
> > > > > >> > > > 708-599-0352
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > >> > > >
> > > > > >> > > > Linux registered user #548580
> > > > > >> > > >
> > > > > >> > > > Brought to you by the Amish Mafia
> > > > > >> > > >
> > > > > >> > >
> > > > > >> >
> > > > > >> >
> > > > > >> >
> > > > > >> > --
> > > > > >> >
> > > > > >> > Gerald Klein DBA
> > > > > >> >
> > > > > >> > ContactMe@geraldklein.com
> > > > > >> >
> > > > > >> > www.geraldklein.com <http://geraldklein.com/>
> > > > > >> >
> > > > > >> > geraldklein.wordpress.com
> > > > > >> >
> > > > > >> > jk@zognet.com
> > > > > >> >
> > > > > >> > 708-599-0352
> > > > > >> >
> > > > > >> >
> > > > > >> > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > >> >
> > > > > >> > Linux registered user #548580
> > > > > >> >
> > > > > >> > Brought to you by the Amish Mafia
> > > > > >> >
> > > > > >>
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > >
> > > > > > Gerald Klein DBA
> > > > > >
> > > > > > ContactMe@geraldklein.com
> > > > > >
> > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > >
> > > > > > geraldklein.wordpress.com
> > > > > >
> > > > > > jk@zognet.com
> > > > > >
> > > > > > 708-599-0352
> > > > > >
> > > > > >
> > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > >
> > > > > > Linux registered user #548580
> > > > > >
> > > > > > Brought to you by the Amish Mafia
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Gerald Klein DBA
> > > >
> > > > ContactMe@geraldklein.com
> > > >
> > > > www.geraldklein.com <http://geraldklein.com/>
> > > >
> > > > geraldklein.wordpress.com
> > > >
> > > > jk@zognet.com
> > > >
> > > > 708-599-0352
> > > >
> > > >
> > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > >
> > > > Linux registered user #548580
> > > >
> > > > Brought to you by the Amish Mafia
> > > >
> > >
> >
> >
> >
> > --
> >
> > Gerald Klein DBA
> >
> > ContactMe@geraldklein.com
> >
> > www.geraldklein.com <http://geraldklein.com/>
> >
> > geraldklein.wordpress.com
> >
> > jk@zognet.com
> >
> > 708-599-0352
> >
> >
> > Arch Awesome, Ranger & Vim the coding triple threat.
> >
> > Linux registered user #548580
> >
> > Brought to you by the Amish Mafia
> >
>



-- 

Gerald Klein DBA

ContactMe@geraldklein.com

www.geraldklein.com <http://geraldklein.com/>

geraldklein.wordpress.com

jk@zognet.com

708-599-0352


Arch Awesome, Ranger & Vim the coding triple threat.

Linux registered user #548580

Brought to you by the Amish Mafia

Re: hbase config problem

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
But it still log "localhost:" instead of the host name....

Also, you are not trying each time with the same version.

Initial log was:
/root/Software/hbase-gz/hbase-0.96.0
Now it's:
/root/Software/hbase-gz/hbase-0.95.2/

Can you please make sure you test with 0.96.1.1? 0.95 was a dev version.
0.96 has been built from that.

Can you paste on pastebin the output of "set"?


2013/12/27 Gerald Klein <jk...@zognet.com>

> Ok same problem still, it just seems like it just isn't locating the base
> classes.
>
> Error: Could not find or load main class
> org.apache.hadoop.hbase.util.HBaseConfTool
> Error: Could not find or load main class
> org.apache.hadoop.hbase.zookeeper.ZKServerTool
> starting master, logging to
>
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> Error: Could not find or load main class
> org.apache.hadoop.hbase.master.HMaster
> Password:
> localhost: starting regionserver, logging to
>
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> localhost: Error: Could not find or load main class
> org.apache.hadoop.hbase.regionserver.HRegionServer
>
>
>
>
>
> On Fri, Dec 27, 2013 at 12:14 PM, Jean-Marc Spaggiari <
> jean-marc@spaggiari.org> wrote:
>
> > Thanks for sharing the files.
> >
> > So 2 things.
> >
> > first, regarding the hosts file. You have twice the same name but with 2
> > different IPs:
> > 127.0.0.1       zenlinux.localdomain zenlinux
> > 127.0.0.1       localhost.localdomain locahost
> > 192.168.1.81 zenlinux.localdomain zenlinux
> >
> > Please remove the 1st line.
> >
> > 2nd, in your hbase-site.xml can you please try without those 2 properties
> > set? Just keep it empty. It will use the /tmp directory.
> >
> > Thanks,
> >
> > JM
> >
> >
> > 2013/12/27 Gerald Klein <jk...@zognet.com>
> >
> > > OK here they are first is hbase-env.sh
> > >
> > > http://pastebin.com/KPaw9aaE
> > >
> > > second hbase-site.xml
> > >
> > > http://pastebin.com/WZixuTas
> > >
> > > third hosts file
> > >
> > > http://pastebin.com/dLFi7gcN
> > >
> > >
> > > thanks again
> > >
> > > I am not worried about the password locally I just type it in, this is
> > fine
> > > for learning it
> > >
> > >
> > >
> > >
> > > On Fri, Dec 27, 2013 at 11:34 AM, Jean-Marc Spaggiari <
> > > jean-marc@spaggiari.org> wrote:
> > >
> > > > Attachements doesn't work on the mailing list :( You can paste them
> on
> > > > pastebin or past the content of the scripts on your email directly.
> > > >
> > > > Have you been able to configure the passwordless?
> > > >
> > > > Also, you are trying with 0.96.0, right? Can you try with 0.96.1.1
> > > instead?
> > > > http://www.apache.org/dyn/closer.cgi/hbase/
> > > >
> > > > JM
> > > >
> > > >
> > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > >
> > > > > OK here it is and thanks a lot for taking the time.
> > > > >
> > > > >
> > > > > On Fri, Dec 27, 2013 at 11:15 AM, Jean-Marc Spaggiari <
> > > > > jean-marc@spaggiari.org> wrote:
> > > > >
> > > > >> Can you share your config files?
> > > > >> hbase-env.sh
> > > > >> hosts
> > > > >> hbase-site.xml
> > > > >>
> > > > >> Are you able to passwordless ssh in the same host? Like ssh MYHOST
> > > does
> > > > it
> > > > >> ask for a password?
> > > > >>
> > > > >> If so, can you configure it password less?
> > > > >>
> > > > >> to create the key: ssh-keygen -t rsa
> > > > >> To install: ssh-copy-id -i ~/.ssh/id_rsa.pub
> > > > your_user_name@your_host_name
> > > > >>
> > > > >> JM
> > > > >>
> > > > >>
> > > > >> 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > >>
> > > > >> > Yes I have added it to the conf/hbase-env.sh file in the last
> > email
> > > > >> when it
> > > > >> > initially failed that test, I currently have it pointed to
> > > > >> > /opt/oracle-jdk-bin-1.7.0.45
> > > > >> > which is where Gentoo has it installed.
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> > On Fri, Dec 27, 2013 at 10:48 AM, Jean-Marc Spaggiari <
> > > > >> > jean-marc@spaggiari.org> wrote:
> > > > >> >
> > > > >> > > Have you modified any of the files into conf/ ?
> > > > >> > >
> > > > >> > > Please add your JAVA_HOME setting into conf/hbase-env.sh and
> > > retry.
> > > > >> > >
> > > > >> > > The password issue is related to the passwordless setting, but
> > it
> > > > >> should
> > > > >> > > not be required for the standalone version. We will look at
> that
> > > > after
> > > > >> > you
> > > > >> > > try again ;)
> > > > >> > >
> > > > >> > > JM
> > > > >> > >
> > > > >> > >
> > > > >> > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > >> > >
> > > > >> > > > Thanks for the help, I unset all vars and made sure that the
> > > > >> JAVA_HOME
> > > > >> > > was
> > > > >> > > > set in .bashrc, Same errors but now JAVA_HOME not set as
> > below:
> > > > >> > > >
> > > > >> > > > Error: Could not find or load main class
> > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > >> > > > Error: Could not find or load main class
> > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > >> > > > starting master, logging to
> > > > >> > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.out
> > > > >> > > > Error: Could not find or load main class
> > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > >> > > > Password:
> > > > >> > > > localhost:
> > > > >> > > >
> > > > >> >
> > > >
> > +======================================================================+
> > > > >> > > > localhost: |      Error: JAVA_HOME is not set and Java could
> > not
> > > > be
> > > > >> > found
> > > > >> > > >       |
> > > > >> > > > localhost:
> > > > >> > > >
> > > > >> >
> > > >
> > +----------------------------------------------------------------------+
> > > > >> > > > localhost: | Please download the latest Sun JDK from the Sun
> > > Java
> > > > >> web
> > > > >> > > site
> > > > >> > > >        |
> > > > >> > > > localhost: |       > http://java.sun.com/javase/downloads/<
> > > > >> > > >        |
> > > > >> > > > localhost: |
> > > > >> > > >        |
> > > > >> > > > localhost: | HBase requires Java 1.6 or later.
> > > > >> > > >        |
> > > > >> > > > localhost: | NOTE: This script will find Sun Java whether
> you
> > > > >> install
> > > > >> > > using
> > > > >> > > > the   |
> > > > >> > > > localhost: |       binary or the RPM based installer.
> > > > >> > > >       |
> > > > >> > > > localhost:
> > > > >> > > >
> > > > >> >
> > > >
> > +======================================================================+
> > > > >> > > >
> > > > >> > > > So I set JAVA_HOME in hbase-env.sh, but I still get the
> > > following
> > > > >> > > >
> > > > >> > > > Error: Could not find or load main class
> > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > >> > > > Error: Could not find or load main class
> > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > >> > > > starting master, logging to
> > > > >> > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.out
> > > > >> > > > Error: Could not find or load main class
> > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > >> > > > Password:
> > > > >> > > > localhost: starting regionserver, logging to
> > > > >> > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.out
> > > > >> > > > localhost: Error: Could not find or load main class
> > > > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > > >> > > >
> > > > >> > > > then I forced a domain name via hostname and still got the
> > > > following
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > Error: Could not find or load main class
> > > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > >> > > > Error: Could not find or load main class
> > > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > >> > > > starting master, logging to
> > > > >> > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > > > >> > > > Error: Could not find or load main class
> > > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > > >> > > > Password:
> > > > >> > > > localhost: starting regionserver, logging to
> > > > >> > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > > > >> > > > localhost: Error: Could not find or load main class
> > > > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > I appreciate any help with this, I don't usually experience
> a
> > > > setup
> > > > >> > > problem
> > > > >> > > > like this.
> > > > >> > > >
> > > > >> > > > thanks
> > > > >> > > >
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > On Fri, Dec 27, 2013 at 8:48 AM, Jean-Marc Spaggiari <
> > > > >> > > > jean-marc@spaggiari.org> wrote:
> > > > >> > > >
> > > > >> > > > > Hi Gerald,
> > > > >> > > > >
> > > > >> > > > > The easiest way to test HBase locally is:
> > > > >> > > > > 1) Download the tar.gz
> > > > >> > > > > 2) Ungzip it.
> > > > >> > > > > 3) Make sure host file contains FQDN assign to local IP
> > > address
> > > > >> (and
> > > > >> > > not
> > > > >> > > > > 127.0.0.1)
> > > > >> > > > > 4) define JAVA_HOME to point to you Sun JDK
> > > > >> > > > > 5) bin/start-hbase.sh
> > > > >> > > > >
> > > > >> > > > > Don't change anything, don't set any other variable, don't
> > do
> > > > >> > anything.
> > > > >> > > > > Just those 5 simple steps. Then you should have a
> standalone
> > > > >> version
> > > > >> > > > > running.
> > > > >> > > > >
> > > > >> > > > > JM
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > >> > > > >
> > > > >> > > > > > hi I have been attempting to learn hbase and have been
> > > unable
> > > > to
> > > > >> > get
> > > > >> > > a
> > > > >> > > > > > local copy running, it comes back with"could not find or
> > > load
> > > > >> main
> > > > >> > > > class
> > > > >> > > > > > org.apache.hadoop.hbase.util.HBaseConfTool" and "could
> not
> > > > find
> > > > >> or
> > > > >> > > load
> > > > >> > > > > > main class
> org.apache.hadoop.hbase.zookeeper.ZKServerTool"
> > > and
> > > > >> > "culd
> > > > >> > > > not
> > > > >> > > > > > find or load main class
> > > > org.apache.hadoop.hbase.master.HMaster"
> > > > >> I
> > > > >> > > have
> > > > >> > > > > > tried adding stuff to the config HBASE_CLASSPATH but
> > nothing
> > > > >> seems
> > > > >> > to
> > > > >> > > > get
> > > > >> > > > > > rid of the error, I also grepped the directories from
> the
> > > > >> install
> > > > >> > > > package
> > > > >> > > > > > and could not find the class that they are looking for,
> > > anyone
> > > > >> have
> > > > >> > > an
> > > > >> > > > > idea
> > > > >> > > > > > of what this is? thanks
> > > > >> > > > > >
> > > > >> > > > > > --
> > > > >> > > > > >
> > > > >> > > > > > Gerald Klein DBA
> > > > >> > > > > >
> > > > >> > > > > > ContactMe@geraldklein.com
> > > > >> > > > > >
> > > > >> > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > >> > > > > >
> > > > >> > > > > > geraldklein.wordpress.com
> > > > >> > > > > >
> > > > >> > > > > > jk@zognet.com
> > > > >> > > > > >
> > > > >> > > > > > 708-599-0352
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > >> > > > > >
> > > > >> > > > > > Linux registered user #548580
> > > > >> > > > > >
> > > > >> > > > > > Brought to you by the Amish Mafia
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > --
> > > > >> > > >
> > > > >> > > > Gerald Klein DBA
> > > > >> > > >
> > > > >> > > > ContactMe@geraldklein.com
> > > > >> > > >
> > > > >> > > > www.geraldklein.com <http://geraldklein.com/>
> > > > >> > > >
> > > > >> > > > geraldklein.wordpress.com
> > > > >> > > >
> > > > >> > > > jk@zognet.com
> > > > >> > > >
> > > > >> > > > 708-599-0352
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > >> > > >
> > > > >> > > > Linux registered user #548580
> > > > >> > > >
> > > > >> > > > Brought to you by the Amish Mafia
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> > --
> > > > >> >
> > > > >> > Gerald Klein DBA
> > > > >> >
> > > > >> > ContactMe@geraldklein.com
> > > > >> >
> > > > >> > www.geraldklein.com <http://geraldklein.com/>
> > > > >> >
> > > > >> > geraldklein.wordpress.com
> > > > >> >
> > > > >> > jk@zognet.com
> > > > >> >
> > > > >> > 708-599-0352
> > > > >> >
> > > > >> >
> > > > >> > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > >> >
> > > > >> > Linux registered user #548580
> > > > >> >
> > > > >> > Brought to you by the Amish Mafia
> > > > >> >
> > > > >>
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > Gerald Klein DBA
> > > > >
> > > > > ContactMe@geraldklein.com
> > > > >
> > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > >
> > > > > geraldklein.wordpress.com
> > > > >
> > > > > jk@zognet.com
> > > > >
> > > > > 708-599-0352
> > > > >
> > > > >
> > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > >
> > > > > Linux registered user #548580
> > > > >
> > > > > Brought to you by the Amish Mafia
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > >
> > > Gerald Klein DBA
> > >
> > > ContactMe@geraldklein.com
> > >
> > > www.geraldklein.com <http://geraldklein.com/>
> > >
> > > geraldklein.wordpress.com
> > >
> > > jk@zognet.com
> > >
> > > 708-599-0352
> > >
> > >
> > > Arch Awesome, Ranger & Vim the coding triple threat.
> > >
> > > Linux registered user #548580
> > >
> > > Brought to you by the Amish Mafia
> > >
> >
>
>
>
> --
>
> Gerald Klein DBA
>
> ContactMe@geraldklein.com
>
> www.geraldklein.com <http://geraldklein.com/>
>
> geraldklein.wordpress.com
>
> jk@zognet.com
>
> 708-599-0352
>
>
> Arch Awesome, Ranger & Vim the coding triple threat.
>
> Linux registered user #548580
>
> Brought to you by the Amish Mafia
>

Re: hbase config problem

Posted by Gerald Klein <jk...@zognet.com>.
Ok same problem still, it just seems like it just isn't locating the base
classes.

Error: Could not find or load main class
org.apache.hadoop.hbase.util.HBaseConfTool
Error: Could not find or load main class
org.apache.hadoop.hbase.zookeeper.ZKServerTool
starting master, logging to
/root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
Error: Could not find or load main class
org.apache.hadoop.hbase.master.HMaster
Password:
localhost: starting regionserver, logging to
/root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
localhost: Error: Could not find or load main class
org.apache.hadoop.hbase.regionserver.HRegionServer





On Fri, Dec 27, 2013 at 12:14 PM, Jean-Marc Spaggiari <
jean-marc@spaggiari.org> wrote:

> Thanks for sharing the files.
>
> So 2 things.
>
> first, regarding the hosts file. You have twice the same name but with 2
> different IPs:
> 127.0.0.1       zenlinux.localdomain zenlinux
> 127.0.0.1       localhost.localdomain locahost
> 192.168.1.81 zenlinux.localdomain zenlinux
>
> Please remove the 1st line.
>
> 2nd, in your hbase-site.xml can you please try without those 2 properties
> set? Just keep it empty. It will use the /tmp directory.
>
> Thanks,
>
> JM
>
>
> 2013/12/27 Gerald Klein <jk...@zognet.com>
>
> > OK here they are first is hbase-env.sh
> >
> > http://pastebin.com/KPaw9aaE
> >
> > second hbase-site.xml
> >
> > http://pastebin.com/WZixuTas
> >
> > third hosts file
> >
> > http://pastebin.com/dLFi7gcN
> >
> >
> > thanks again
> >
> > I am not worried about the password locally I just type it in, this is
> fine
> > for learning it
> >
> >
> >
> >
> > On Fri, Dec 27, 2013 at 11:34 AM, Jean-Marc Spaggiari <
> > jean-marc@spaggiari.org> wrote:
> >
> > > Attachements doesn't work on the mailing list :( You can paste them on
> > > pastebin or past the content of the scripts on your email directly.
> > >
> > > Have you been able to configure the passwordless?
> > >
> > > Also, you are trying with 0.96.0, right? Can you try with 0.96.1.1
> > instead?
> > > http://www.apache.org/dyn/closer.cgi/hbase/
> > >
> > > JM
> > >
> > >
> > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > >
> > > > OK here it is and thanks a lot for taking the time.
> > > >
> > > >
> > > > On Fri, Dec 27, 2013 at 11:15 AM, Jean-Marc Spaggiari <
> > > > jean-marc@spaggiari.org> wrote:
> > > >
> > > >> Can you share your config files?
> > > >> hbase-env.sh
> > > >> hosts
> > > >> hbase-site.xml
> > > >>
> > > >> Are you able to passwordless ssh in the same host? Like ssh MYHOST
> > does
> > > it
> > > >> ask for a password?
> > > >>
> > > >> If so, can you configure it password less?
> > > >>
> > > >> to create the key: ssh-keygen -t rsa
> > > >> To install: ssh-copy-id -i ~/.ssh/id_rsa.pub
> > > your_user_name@your_host_name
> > > >>
> > > >> JM
> > > >>
> > > >>
> > > >> 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > >>
> > > >> > Yes I have added it to the conf/hbase-env.sh file in the last
> email
> > > >> when it
> > > >> > initially failed that test, I currently have it pointed to
> > > >> > /opt/oracle-jdk-bin-1.7.0.45
> > > >> > which is where Gentoo has it installed.
> > > >> >
> > > >> >
> > > >> >
> > > >> >
> > > >> >
> > > >> > On Fri, Dec 27, 2013 at 10:48 AM, Jean-Marc Spaggiari <
> > > >> > jean-marc@spaggiari.org> wrote:
> > > >> >
> > > >> > > Have you modified any of the files into conf/ ?
> > > >> > >
> > > >> > > Please add your JAVA_HOME setting into conf/hbase-env.sh and
> > retry.
> > > >> > >
> > > >> > > The password issue is related to the passwordless setting, but
> it
> > > >> should
> > > >> > > not be required for the standalone version. We will look at that
> > > after
> > > >> > you
> > > >> > > try again ;)
> > > >> > >
> > > >> > > JM
> > > >> > >
> > > >> > >
> > > >> > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > >> > >
> > > >> > > > Thanks for the help, I unset all vars and made sure that the
> > > >> JAVA_HOME
> > > >> > > was
> > > >> > > > set in .bashrc, Same errors but now JAVA_HOME not set as
> below:
> > > >> > > >
> > > >> > > > Error: Could not find or load main class
> > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > >> > > > Error: Could not find or load main class
> > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > >> > > > starting master, logging to
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.out
> > > >> > > > Error: Could not find or load main class
> > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > >> > > > Password:
> > > >> > > > localhost:
> > > >> > > >
> > > >> >
> > >
> +======================================================================+
> > > >> > > > localhost: |      Error: JAVA_HOME is not set and Java could
> not
> > > be
> > > >> > found
> > > >> > > >       |
> > > >> > > > localhost:
> > > >> > > >
> > > >> >
> > >
> +----------------------------------------------------------------------+
> > > >> > > > localhost: | Please download the latest Sun JDK from the Sun
> > Java
> > > >> web
> > > >> > > site
> > > >> > > >        |
> > > >> > > > localhost: |       > http://java.sun.com/javase/downloads/ <
> > > >> > > >        |
> > > >> > > > localhost: |
> > > >> > > >        |
> > > >> > > > localhost: | HBase requires Java 1.6 or later.
> > > >> > > >        |
> > > >> > > > localhost: | NOTE: This script will find Sun Java whether you
> > > >> install
> > > >> > > using
> > > >> > > > the   |
> > > >> > > > localhost: |       binary or the RPM based installer.
> > > >> > > >       |
> > > >> > > > localhost:
> > > >> > > >
> > > >> >
> > >
> +======================================================================+
> > > >> > > >
> > > >> > > > So I set JAVA_HOME in hbase-env.sh, but I still get the
> > following
> > > >> > > >
> > > >> > > > Error: Could not find or load main class
> > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > >> > > > Error: Could not find or load main class
> > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > >> > > > starting master, logging to
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.out
> > > >> > > > Error: Could not find or load main class
> > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > >> > > > Password:
> > > >> > > > localhost: starting regionserver, logging to
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.out
> > > >> > > > localhost: Error: Could not find or load main class
> > > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > >> > > >
> > > >> > > > then I forced a domain name via hostname and still got the
> > > following
> > > >> > > >
> > > >> > > >
> > > >> > > > Error: Could not find or load main class
> > > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > >> > > > Error: Could not find or load main class
> > > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > >> > > > starting master, logging to
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > > >> > > > Error: Could not find or load main class
> > > >> > > > org.apache.hadoop.hbase.master.HMaster
> > > >> > > > Password:
> > > >> > > > localhost: starting regionserver, logging to
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > > >> > > > localhost: Error: Could not find or load main class
> > > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > >> > > >
> > > >> > > >
> > > >> > > > I appreciate any help with this, I don't usually experience a
> > > setup
> > > >> > > problem
> > > >> > > > like this.
> > > >> > > >
> > > >> > > > thanks
> > > >> > > >
> > > >> > > >
> > > >> > > >
> > > >> > > > On Fri, Dec 27, 2013 at 8:48 AM, Jean-Marc Spaggiari <
> > > >> > > > jean-marc@spaggiari.org> wrote:
> > > >> > > >
> > > >> > > > > Hi Gerald,
> > > >> > > > >
> > > >> > > > > The easiest way to test HBase locally is:
> > > >> > > > > 1) Download the tar.gz
> > > >> > > > > 2) Ungzip it.
> > > >> > > > > 3) Make sure host file contains FQDN assign to local IP
> > address
> > > >> (and
> > > >> > > not
> > > >> > > > > 127.0.0.1)
> > > >> > > > > 4) define JAVA_HOME to point to you Sun JDK
> > > >> > > > > 5) bin/start-hbase.sh
> > > >> > > > >
> > > >> > > > > Don't change anything, don't set any other variable, don't
> do
> > > >> > anything.
> > > >> > > > > Just those 5 simple steps. Then you should have a standalone
> > > >> version
> > > >> > > > > running.
> > > >> > > > >
> > > >> > > > > JM
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > >> > > > >
> > > >> > > > > > hi I have been attempting to learn hbase and have been
> > unable
> > > to
> > > >> > get
> > > >> > > a
> > > >> > > > > > local copy running, it comes back with"could not find or
> > load
> > > >> main
> > > >> > > > class
> > > >> > > > > > org.apache.hadoop.hbase.util.HBaseConfTool" and "could not
> > > find
> > > >> or
> > > >> > > load
> > > >> > > > > > main class org.apache.hadoop.hbase.zookeeper.ZKServerTool"
> > and
> > > >> > "culd
> > > >> > > > not
> > > >> > > > > > find or load main class
> > > org.apache.hadoop.hbase.master.HMaster"
> > > >> I
> > > >> > > have
> > > >> > > > > > tried adding stuff to the config HBASE_CLASSPATH but
> nothing
> > > >> seems
> > > >> > to
> > > >> > > > get
> > > >> > > > > > rid of the error, I also grepped the directories from the
> > > >> install
> > > >> > > > package
> > > >> > > > > > and could not find the class that they are looking for,
> > anyone
> > > >> have
> > > >> > > an
> > > >> > > > > idea
> > > >> > > > > > of what this is? thanks
> > > >> > > > > >
> > > >> > > > > > --
> > > >> > > > > >
> > > >> > > > > > Gerald Klein DBA
> > > >> > > > > >
> > > >> > > > > > ContactMe@geraldklein.com
> > > >> > > > > >
> > > >> > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > >> > > > > >
> > > >> > > > > > geraldklein.wordpress.com
> > > >> > > > > >
> > > >> > > > > > jk@zognet.com
> > > >> > > > > >
> > > >> > > > > > 708-599-0352
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > >> > > > > >
> > > >> > > > > > Linux registered user #548580
> > > >> > > > > >
> > > >> > > > > > Brought to you by the Amish Mafia
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > > >
> > > >> > > >
> > > >> > > > --
> > > >> > > >
> > > >> > > > Gerald Klein DBA
> > > >> > > >
> > > >> > > > ContactMe@geraldklein.com
> > > >> > > >
> > > >> > > > www.geraldklein.com <http://geraldklein.com/>
> > > >> > > >
> > > >> > > > geraldklein.wordpress.com
> > > >> > > >
> > > >> > > > jk@zognet.com
> > > >> > > >
> > > >> > > > 708-599-0352
> > > >> > > >
> > > >> > > >
> > > >> > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > >> > > >
> > > >> > > > Linux registered user #548580
> > > >> > > >
> > > >> > > > Brought to you by the Amish Mafia
> > > >> > > >
> > > >> > >
> > > >> >
> > > >> >
> > > >> >
> > > >> > --
> > > >> >
> > > >> > Gerald Klein DBA
> > > >> >
> > > >> > ContactMe@geraldklein.com
> > > >> >
> > > >> > www.geraldklein.com <http://geraldklein.com/>
> > > >> >
> > > >> > geraldklein.wordpress.com
> > > >> >
> > > >> > jk@zognet.com
> > > >> >
> > > >> > 708-599-0352
> > > >> >
> > > >> >
> > > >> > Arch Awesome, Ranger & Vim the coding triple threat.
> > > >> >
> > > >> > Linux registered user #548580
> > > >> >
> > > >> > Brought to you by the Amish Mafia
> > > >> >
> > > >>
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Gerald Klein DBA
> > > >
> > > > ContactMe@geraldklein.com
> > > >
> > > > www.geraldklein.com <http://geraldklein.com/>
> > > >
> > > > geraldklein.wordpress.com
> > > >
> > > > jk@zognet.com
> > > >
> > > > 708-599-0352
> > > >
> > > >
> > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > >
> > > > Linux registered user #548580
> > > >
> > > > Brought to you by the Amish Mafia
> > > >
> > > >
> > >
> >
> >
> >
> > --
> >
> > Gerald Klein DBA
> >
> > ContactMe@geraldklein.com
> >
> > www.geraldklein.com <http://geraldklein.com/>
> >
> > geraldklein.wordpress.com
> >
> > jk@zognet.com
> >
> > 708-599-0352
> >
> >
> > Arch Awesome, Ranger & Vim the coding triple threat.
> >
> > Linux registered user #548580
> >
> > Brought to you by the Amish Mafia
> >
>



-- 

Gerald Klein DBA

ContactMe@geraldklein.com

www.geraldklein.com <http://geraldklein.com/>

geraldklein.wordpress.com

jk@zognet.com

708-599-0352


Arch Awesome, Ranger & Vim the coding triple threat.

Linux registered user #548580

Brought to you by the Amish Mafia

Re: hbase config problem

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
Thanks for sharing the files.

So 2 things.

first, regarding the hosts file. You have twice the same name but with 2
different IPs:
127.0.0.1       zenlinux.localdomain zenlinux
127.0.0.1       localhost.localdomain locahost
192.168.1.81 zenlinux.localdomain zenlinux

Please remove the 1st line.

2nd, in your hbase-site.xml can you please try without those 2 properties
set? Just keep it empty. It will use the /tmp directory.

Thanks,

JM


2013/12/27 Gerald Klein <jk...@zognet.com>

> OK here they are first is hbase-env.sh
>
> http://pastebin.com/KPaw9aaE
>
> second hbase-site.xml
>
> http://pastebin.com/WZixuTas
>
> third hosts file
>
> http://pastebin.com/dLFi7gcN
>
>
> thanks again
>
> I am not worried about the password locally I just type it in, this is fine
> for learning it
>
>
>
>
> On Fri, Dec 27, 2013 at 11:34 AM, Jean-Marc Spaggiari <
> jean-marc@spaggiari.org> wrote:
>
> > Attachements doesn't work on the mailing list :( You can paste them on
> > pastebin or past the content of the scripts on your email directly.
> >
> > Have you been able to configure the passwordless?
> >
> > Also, you are trying with 0.96.0, right? Can you try with 0.96.1.1
> instead?
> > http://www.apache.org/dyn/closer.cgi/hbase/
> >
> > JM
> >
> >
> > 2013/12/27 Gerald Klein <jk...@zognet.com>
> >
> > > OK here it is and thanks a lot for taking the time.
> > >
> > >
> > > On Fri, Dec 27, 2013 at 11:15 AM, Jean-Marc Spaggiari <
> > > jean-marc@spaggiari.org> wrote:
> > >
> > >> Can you share your config files?
> > >> hbase-env.sh
> > >> hosts
> > >> hbase-site.xml
> > >>
> > >> Are you able to passwordless ssh in the same host? Like ssh MYHOST
> does
> > it
> > >> ask for a password?
> > >>
> > >> If so, can you configure it password less?
> > >>
> > >> to create the key: ssh-keygen -t rsa
> > >> To install: ssh-copy-id -i ~/.ssh/id_rsa.pub
> > your_user_name@your_host_name
> > >>
> > >> JM
> > >>
> > >>
> > >> 2013/12/27 Gerald Klein <jk...@zognet.com>
> > >>
> > >> > Yes I have added it to the conf/hbase-env.sh file in the last email
> > >> when it
> > >> > initially failed that test, I currently have it pointed to
> > >> > /opt/oracle-jdk-bin-1.7.0.45
> > >> > which is where Gentoo has it installed.
> > >> >
> > >> >
> > >> >
> > >> >
> > >> >
> > >> > On Fri, Dec 27, 2013 at 10:48 AM, Jean-Marc Spaggiari <
> > >> > jean-marc@spaggiari.org> wrote:
> > >> >
> > >> > > Have you modified any of the files into conf/ ?
> > >> > >
> > >> > > Please add your JAVA_HOME setting into conf/hbase-env.sh and
> retry.
> > >> > >
> > >> > > The password issue is related to the passwordless setting, but it
> > >> should
> > >> > > not be required for the standalone version. We will look at that
> > after
> > >> > you
> > >> > > try again ;)
> > >> > >
> > >> > > JM
> > >> > >
> > >> > >
> > >> > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > >> > >
> > >> > > > Thanks for the help, I unset all vars and made sure that the
> > >> JAVA_HOME
> > >> > > was
> > >> > > > set in .bashrc, Same errors but now JAVA_HOME not set as below:
> > >> > > >
> > >> > > > Error: Could not find or load main class
> > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > >> > > > Error: Could not find or load main class
> > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > >> > > > starting master, logging to
> > >> > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.out
> > >> > > > Error: Could not find or load main class
> > >> > > > org.apache.hadoop.hbase.master.HMaster
> > >> > > > Password:
> > >> > > > localhost:
> > >> > > >
> > >> >
> > +======================================================================+
> > >> > > > localhost: |      Error: JAVA_HOME is not set and Java could not
> > be
> > >> > found
> > >> > > >       |
> > >> > > > localhost:
> > >> > > >
> > >> >
> > +----------------------------------------------------------------------+
> > >> > > > localhost: | Please download the latest Sun JDK from the Sun
> Java
> > >> web
> > >> > > site
> > >> > > >        |
> > >> > > > localhost: |       > http://java.sun.com/javase/downloads/ <
> > >> > > >        |
> > >> > > > localhost: |
> > >> > > >        |
> > >> > > > localhost: | HBase requires Java 1.6 or later.
> > >> > > >        |
> > >> > > > localhost: | NOTE: This script will find Sun Java whether you
> > >> install
> > >> > > using
> > >> > > > the   |
> > >> > > > localhost: |       binary or the RPM based installer.
> > >> > > >       |
> > >> > > > localhost:
> > >> > > >
> > >> >
> > +======================================================================+
> > >> > > >
> > >> > > > So I set JAVA_HOME in hbase-env.sh, but I still get the
> following
> > >> > > >
> > >> > > > Error: Could not find or load main class
> > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > >> > > > Error: Could not find or load main class
> > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > >> > > > starting master, logging to
> > >> > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.out
> > >> > > > Error: Could not find or load main class
> > >> > > > org.apache.hadoop.hbase.master.HMaster
> > >> > > > Password:
> > >> > > > localhost: starting regionserver, logging to
> > >> > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.out
> > >> > > > localhost: Error: Could not find or load main class
> > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > >> > > >
> > >> > > > then I forced a domain name via hostname and still got the
> > following
> > >> > > >
> > >> > > >
> > >> > > > Error: Could not find or load main class
> > >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > >> > > > Error: Could not find or load main class
> > >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > >> > > > starting master, logging to
> > >> > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > >> > > > Error: Could not find or load main class
> > >> > > > org.apache.hadoop.hbase.master.HMaster
> > >> > > > Password:
> > >> > > > localhost: starting regionserver, logging to
> > >> > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > >> > > > localhost: Error: Could not find or load main class
> > >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > >> > > >
> > >> > > >
> > >> > > > I appreciate any help with this, I don't usually experience a
> > setup
> > >> > > problem
> > >> > > > like this.
> > >> > > >
> > >> > > > thanks
> > >> > > >
> > >> > > >
> > >> > > >
> > >> > > > On Fri, Dec 27, 2013 at 8:48 AM, Jean-Marc Spaggiari <
> > >> > > > jean-marc@spaggiari.org> wrote:
> > >> > > >
> > >> > > > > Hi Gerald,
> > >> > > > >
> > >> > > > > The easiest way to test HBase locally is:
> > >> > > > > 1) Download the tar.gz
> > >> > > > > 2) Ungzip it.
> > >> > > > > 3) Make sure host file contains FQDN assign to local IP
> address
> > >> (and
> > >> > > not
> > >> > > > > 127.0.0.1)
> > >> > > > > 4) define JAVA_HOME to point to you Sun JDK
> > >> > > > > 5) bin/start-hbase.sh
> > >> > > > >
> > >> > > > > Don't change anything, don't set any other variable, don't do
> > >> > anything.
> > >> > > > > Just those 5 simple steps. Then you should have a standalone
> > >> version
> > >> > > > > running.
> > >> > > > >
> > >> > > > > JM
> > >> > > > >
> > >> > > > >
> > >> > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > >> > > > >
> > >> > > > > > hi I have been attempting to learn hbase and have been
> unable
> > to
> > >> > get
> > >> > > a
> > >> > > > > > local copy running, it comes back with"could not find or
> load
> > >> main
> > >> > > > class
> > >> > > > > > org.apache.hadoop.hbase.util.HBaseConfTool" and "could not
> > find
> > >> or
> > >> > > load
> > >> > > > > > main class org.apache.hadoop.hbase.zookeeper.ZKServerTool"
> and
> > >> > "culd
> > >> > > > not
> > >> > > > > > find or load main class
> > org.apache.hadoop.hbase.master.HMaster"
> > >> I
> > >> > > have
> > >> > > > > > tried adding stuff to the config HBASE_CLASSPATH but nothing
> > >> seems
> > >> > to
> > >> > > > get
> > >> > > > > > rid of the error, I also grepped the directories from the
> > >> install
> > >> > > > package
> > >> > > > > > and could not find the class that they are looking for,
> anyone
> > >> have
> > >> > > an
> > >> > > > > idea
> > >> > > > > > of what this is? thanks
> > >> > > > > >
> > >> > > > > > --
> > >> > > > > >
> > >> > > > > > Gerald Klein DBA
> > >> > > > > >
> > >> > > > > > ContactMe@geraldklein.com
> > >> > > > > >
> > >> > > > > > www.geraldklein.com <http://geraldklein.com/>
> > >> > > > > >
> > >> > > > > > geraldklein.wordpress.com
> > >> > > > > >
> > >> > > > > > jk@zognet.com
> > >> > > > > >
> > >> > > > > > 708-599-0352
> > >> > > > > >
> > >> > > > > >
> > >> > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > >> > > > > >
> > >> > > > > > Linux registered user #548580
> > >> > > > > >
> > >> > > > > > Brought to you by the Amish Mafia
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > > >
> > >> > > >
> > >> > > > --
> > >> > > >
> > >> > > > Gerald Klein DBA
> > >> > > >
> > >> > > > ContactMe@geraldklein.com
> > >> > > >
> > >> > > > www.geraldklein.com <http://geraldklein.com/>
> > >> > > >
> > >> > > > geraldklein.wordpress.com
> > >> > > >
> > >> > > > jk@zognet.com
> > >> > > >
> > >> > > > 708-599-0352
> > >> > > >
> > >> > > >
> > >> > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > >> > > >
> > >> > > > Linux registered user #548580
> > >> > > >
> > >> > > > Brought to you by the Amish Mafia
> > >> > > >
> > >> > >
> > >> >
> > >> >
> > >> >
> > >> > --
> > >> >
> > >> > Gerald Klein DBA
> > >> >
> > >> > ContactMe@geraldklein.com
> > >> >
> > >> > www.geraldklein.com <http://geraldklein.com/>
> > >> >
> > >> > geraldklein.wordpress.com
> > >> >
> > >> > jk@zognet.com
> > >> >
> > >> > 708-599-0352
> > >> >
> > >> >
> > >> > Arch Awesome, Ranger & Vim the coding triple threat.
> > >> >
> > >> > Linux registered user #548580
> > >> >
> > >> > Brought to you by the Amish Mafia
> > >> >
> > >>
> > >
> > >
> > >
> > > --
> > >
> > > Gerald Klein DBA
> > >
> > > ContactMe@geraldklein.com
> > >
> > > www.geraldklein.com <http://geraldklein.com/>
> > >
> > > geraldklein.wordpress.com
> > >
> > > jk@zognet.com
> > >
> > > 708-599-0352
> > >
> > >
> > > Arch Awesome, Ranger & Vim the coding triple threat.
> > >
> > > Linux registered user #548580
> > >
> > > Brought to you by the Amish Mafia
> > >
> > >
> >
>
>
>
> --
>
> Gerald Klein DBA
>
> ContactMe@geraldklein.com
>
> www.geraldklein.com <http://geraldklein.com/>
>
> geraldklein.wordpress.com
>
> jk@zognet.com
>
> 708-599-0352
>
>
> Arch Awesome, Ranger & Vim the coding triple threat.
>
> Linux registered user #548580
>
> Brought to you by the Amish Mafia
>

Re: hbase config problem

Posted by Gerald Klein <jk...@zognet.com>.
OK here they are first is hbase-env.sh

http://pastebin.com/KPaw9aaE

second hbase-site.xml

http://pastebin.com/WZixuTas

third hosts file

http://pastebin.com/dLFi7gcN


thanks again

I am not worried about the password locally I just type it in, this is fine
for learning it




On Fri, Dec 27, 2013 at 11:34 AM, Jean-Marc Spaggiari <
jean-marc@spaggiari.org> wrote:

> Attachements doesn't work on the mailing list :( You can paste them on
> pastebin or past the content of the scripts on your email directly.
>
> Have you been able to configure the passwordless?
>
> Also, you are trying with 0.96.0, right? Can you try with 0.96.1.1 instead?
> http://www.apache.org/dyn/closer.cgi/hbase/
>
> JM
>
>
> 2013/12/27 Gerald Klein <jk...@zognet.com>
>
> > OK here it is and thanks a lot for taking the time.
> >
> >
> > On Fri, Dec 27, 2013 at 11:15 AM, Jean-Marc Spaggiari <
> > jean-marc@spaggiari.org> wrote:
> >
> >> Can you share your config files?
> >> hbase-env.sh
> >> hosts
> >> hbase-site.xml
> >>
> >> Are you able to passwordless ssh in the same host? Like ssh MYHOST does
> it
> >> ask for a password?
> >>
> >> If so, can you configure it password less?
> >>
> >> to create the key: ssh-keygen -t rsa
> >> To install: ssh-copy-id -i ~/.ssh/id_rsa.pub
> your_user_name@your_host_name
> >>
> >> JM
> >>
> >>
> >> 2013/12/27 Gerald Klein <jk...@zognet.com>
> >>
> >> > Yes I have added it to the conf/hbase-env.sh file in the last email
> >> when it
> >> > initially failed that test, I currently have it pointed to
> >> > /opt/oracle-jdk-bin-1.7.0.45
> >> > which is where Gentoo has it installed.
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > On Fri, Dec 27, 2013 at 10:48 AM, Jean-Marc Spaggiari <
> >> > jean-marc@spaggiari.org> wrote:
> >> >
> >> > > Have you modified any of the files into conf/ ?
> >> > >
> >> > > Please add your JAVA_HOME setting into conf/hbase-env.sh and retry.
> >> > >
> >> > > The password issue is related to the passwordless setting, but it
> >> should
> >> > > not be required for the standalone version. We will look at that
> after
> >> > you
> >> > > try again ;)
> >> > >
> >> > > JM
> >> > >
> >> > >
> >> > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> >> > >
> >> > > > Thanks for the help, I unset all vars and made sure that the
> >> JAVA_HOME
> >> > > was
> >> > > > set in .bashrc, Same errors but now JAVA_HOME not set as below:
> >> > > >
> >> > > > Error: Could not find or load main class
> >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> >> > > > Error: Could not find or load main class
> >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> >> > > > starting master, logging to
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.out
> >> > > > Error: Could not find or load main class
> >> > > > org.apache.hadoop.hbase.master.HMaster
> >> > > > Password:
> >> > > > localhost:
> >> > > >
> >> >
> +======================================================================+
> >> > > > localhost: |      Error: JAVA_HOME is not set and Java could not
> be
> >> > found
> >> > > >       |
> >> > > > localhost:
> >> > > >
> >> >
> +----------------------------------------------------------------------+
> >> > > > localhost: | Please download the latest Sun JDK from the Sun Java
> >> web
> >> > > site
> >> > > >        |
> >> > > > localhost: |       > http://java.sun.com/javase/downloads/ <
> >> > > >        |
> >> > > > localhost: |
> >> > > >        |
> >> > > > localhost: | HBase requires Java 1.6 or later.
> >> > > >        |
> >> > > > localhost: | NOTE: This script will find Sun Java whether you
> >> install
> >> > > using
> >> > > > the   |
> >> > > > localhost: |       binary or the RPM based installer.
> >> > > >       |
> >> > > > localhost:
> >> > > >
> >> >
> +======================================================================+
> >> > > >
> >> > > > So I set JAVA_HOME in hbase-env.sh, but I still get the following
> >> > > >
> >> > > > Error: Could not find or load main class
> >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> >> > > > Error: Could not find or load main class
> >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> >> > > > starting master, logging to
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.out
> >> > > > Error: Could not find or load main class
> >> > > > org.apache.hadoop.hbase.master.HMaster
> >> > > > Password:
> >> > > > localhost: starting regionserver, logging to
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.out
> >> > > > localhost: Error: Could not find or load main class
> >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> >> > > >
> >> > > > then I forced a domain name via hostname and still got the
> following
> >> > > >
> >> > > >
> >> > > > Error: Could not find or load main class
> >> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> >> > > > Error: Could not find or load main class
> >> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> >> > > > starting master, logging to
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> >> > > > Error: Could not find or load main class
> >> > > > org.apache.hadoop.hbase.master.HMaster
> >> > > > Password:
> >> > > > localhost: starting regionserver, logging to
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> >> > > > localhost: Error: Could not find or load main class
> >> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> >> > > >
> >> > > >
> >> > > > I appreciate any help with this, I don't usually experience a
> setup
> >> > > problem
> >> > > > like this.
> >> > > >
> >> > > > thanks
> >> > > >
> >> > > >
> >> > > >
> >> > > > On Fri, Dec 27, 2013 at 8:48 AM, Jean-Marc Spaggiari <
> >> > > > jean-marc@spaggiari.org> wrote:
> >> > > >
> >> > > > > Hi Gerald,
> >> > > > >
> >> > > > > The easiest way to test HBase locally is:
> >> > > > > 1) Download the tar.gz
> >> > > > > 2) Ungzip it.
> >> > > > > 3) Make sure host file contains FQDN assign to local IP address
> >> (and
> >> > > not
> >> > > > > 127.0.0.1)
> >> > > > > 4) define JAVA_HOME to point to you Sun JDK
> >> > > > > 5) bin/start-hbase.sh
> >> > > > >
> >> > > > > Don't change anything, don't set any other variable, don't do
> >> > anything.
> >> > > > > Just those 5 simple steps. Then you should have a standalone
> >> version
> >> > > > > running.
> >> > > > >
> >> > > > > JM
> >> > > > >
> >> > > > >
> >> > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> >> > > > >
> >> > > > > > hi I have been attempting to learn hbase and have been unable
> to
> >> > get
> >> > > a
> >> > > > > > local copy running, it comes back with"could not find or load
> >> main
> >> > > > class
> >> > > > > > org.apache.hadoop.hbase.util.HBaseConfTool" and "could not
> find
> >> or
> >> > > load
> >> > > > > > main class org.apache.hadoop.hbase.zookeeper.ZKServerTool" and
> >> > "culd
> >> > > > not
> >> > > > > > find or load main class
> org.apache.hadoop.hbase.master.HMaster"
> >> I
> >> > > have
> >> > > > > > tried adding stuff to the config HBASE_CLASSPATH but nothing
> >> seems
> >> > to
> >> > > > get
> >> > > > > > rid of the error, I also grepped the directories from the
> >> install
> >> > > > package
> >> > > > > > and could not find the class that they are looking for, anyone
> >> have
> >> > > an
> >> > > > > idea
> >> > > > > > of what this is? thanks
> >> > > > > >
> >> > > > > > --
> >> > > > > >
> >> > > > > > Gerald Klein DBA
> >> > > > > >
> >> > > > > > ContactMe@geraldklein.com
> >> > > > > >
> >> > > > > > www.geraldklein.com <http://geraldklein.com/>
> >> > > > > >
> >> > > > > > geraldklein.wordpress.com
> >> > > > > >
> >> > > > > > jk@zognet.com
> >> > > > > >
> >> > > > > > 708-599-0352
> >> > > > > >
> >> > > > > >
> >> > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> >> > > > > >
> >> > > > > > Linux registered user #548580
> >> > > > > >
> >> > > > > > Brought to you by the Amish Mafia
> >> > > > > >
> >> > > > >
> >> > > >
> >> > > >
> >> > > >
> >> > > > --
> >> > > >
> >> > > > Gerald Klein DBA
> >> > > >
> >> > > > ContactMe@geraldklein.com
> >> > > >
> >> > > > www.geraldklein.com <http://geraldklein.com/>
> >> > > >
> >> > > > geraldklein.wordpress.com
> >> > > >
> >> > > > jk@zognet.com
> >> > > >
> >> > > > 708-599-0352
> >> > > >
> >> > > >
> >> > > > Arch Awesome, Ranger & Vim the coding triple threat.
> >> > > >
> >> > > > Linux registered user #548580
> >> > > >
> >> > > > Brought to you by the Amish Mafia
> >> > > >
> >> > >
> >> >
> >> >
> >> >
> >> > --
> >> >
> >> > Gerald Klein DBA
> >> >
> >> > ContactMe@geraldklein.com
> >> >
> >> > www.geraldklein.com <http://geraldklein.com/>
> >> >
> >> > geraldklein.wordpress.com
> >> >
> >> > jk@zognet.com
> >> >
> >> > 708-599-0352
> >> >
> >> >
> >> > Arch Awesome, Ranger & Vim the coding triple threat.
> >> >
> >> > Linux registered user #548580
> >> >
> >> > Brought to you by the Amish Mafia
> >> >
> >>
> >
> >
> >
> > --
> >
> > Gerald Klein DBA
> >
> > ContactMe@geraldklein.com
> >
> > www.geraldklein.com <http://geraldklein.com/>
> >
> > geraldklein.wordpress.com
> >
> > jk@zognet.com
> >
> > 708-599-0352
> >
> >
> > Arch Awesome, Ranger & Vim the coding triple threat.
> >
> > Linux registered user #548580
> >
> > Brought to you by the Amish Mafia
> >
> >
>



-- 

Gerald Klein DBA

ContactMe@geraldklein.com

www.geraldklein.com <http://geraldklein.com/>

geraldklein.wordpress.com

jk@zognet.com

708-599-0352


Arch Awesome, Ranger & Vim the coding triple threat.

Linux registered user #548580

Brought to you by the Amish Mafia

Re: hbase config problem

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
Attachements doesn't work on the mailing list :( You can paste them on
pastebin or past the content of the scripts on your email directly.

Have you been able to configure the passwordless?

Also, you are trying with 0.96.0, right? Can you try with 0.96.1.1 instead?
http://www.apache.org/dyn/closer.cgi/hbase/

JM


2013/12/27 Gerald Klein <jk...@zognet.com>

> OK here it is and thanks a lot for taking the time.
>
>
> On Fri, Dec 27, 2013 at 11:15 AM, Jean-Marc Spaggiari <
> jean-marc@spaggiari.org> wrote:
>
>> Can you share your config files?
>> hbase-env.sh
>> hosts
>> hbase-site.xml
>>
>> Are you able to passwordless ssh in the same host? Like ssh MYHOST does it
>> ask for a password?
>>
>> If so, can you configure it password less?
>>
>> to create the key: ssh-keygen -t rsa
>> To install: ssh-copy-id -i ~/.ssh/id_rsa.pub your_user_name@your_host_name
>>
>> JM
>>
>>
>> 2013/12/27 Gerald Klein <jk...@zognet.com>
>>
>> > Yes I have added it to the conf/hbase-env.sh file in the last email
>> when it
>> > initially failed that test, I currently have it pointed to
>> > /opt/oracle-jdk-bin-1.7.0.45
>> > which is where Gentoo has it installed.
>> >
>> >
>> >
>> >
>> >
>> > On Fri, Dec 27, 2013 at 10:48 AM, Jean-Marc Spaggiari <
>> > jean-marc@spaggiari.org> wrote:
>> >
>> > > Have you modified any of the files into conf/ ?
>> > >
>> > > Please add your JAVA_HOME setting into conf/hbase-env.sh and retry.
>> > >
>> > > The password issue is related to the passwordless setting, but it
>> should
>> > > not be required for the standalone version. We will look at that after
>> > you
>> > > try again ;)
>> > >
>> > > JM
>> > >
>> > >
>> > > 2013/12/27 Gerald Klein <jk...@zognet.com>
>> > >
>> > > > Thanks for the help, I unset all vars and made sure that the
>> JAVA_HOME
>> > > was
>> > > > set in .bashrc, Same errors but now JAVA_HOME not set as below:
>> > > >
>> > > > Error: Could not find or load main class
>> > > > org.apache.hadoop.hbase.util.HBaseConfTool
>> > > > Error: Could not find or load main class
>> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
>> > > > starting master, logging to
>> > > >
>> > > >
>> > >
>> >
>> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.out
>> > > > Error: Could not find or load main class
>> > > > org.apache.hadoop.hbase.master.HMaster
>> > > > Password:
>> > > > localhost:
>> > > >
>> > +======================================================================+
>> > > > localhost: |      Error: JAVA_HOME is not set and Java could not be
>> > found
>> > > >       |
>> > > > localhost:
>> > > >
>> > +----------------------------------------------------------------------+
>> > > > localhost: | Please download the latest Sun JDK from the Sun Java
>> web
>> > > site
>> > > >        |
>> > > > localhost: |       > http://java.sun.com/javase/downloads/ <
>> > > >        |
>> > > > localhost: |
>> > > >        |
>> > > > localhost: | HBase requires Java 1.6 or later.
>> > > >        |
>> > > > localhost: | NOTE: This script will find Sun Java whether you
>> install
>> > > using
>> > > > the   |
>> > > > localhost: |       binary or the RPM based installer.
>> > > >       |
>> > > > localhost:
>> > > >
>> > +======================================================================+
>> > > >
>> > > > So I set JAVA_HOME in hbase-env.sh, but I still get the following
>> > > >
>> > > > Error: Could not find or load main class
>> > > > org.apache.hadoop.hbase.util.HBaseConfTool
>> > > > Error: Could not find or load main class
>> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
>> > > > starting master, logging to
>> > > >
>> > > >
>> > >
>> >
>> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.out
>> > > > Error: Could not find or load main class
>> > > > org.apache.hadoop.hbase.master.HMaster
>> > > > Password:
>> > > > localhost: starting regionserver, logging to
>> > > >
>> > > >
>> > >
>> >
>> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.out
>> > > > localhost: Error: Could not find or load main class
>> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
>> > > >
>> > > > then I forced a domain name via hostname and still got the following
>> > > >
>> > > >
>> > > > Error: Could not find or load main class
>> > > > org.apache.hadoop.hbase.util.HBaseConfTool
>> > > > Error: Could not find or load main class
>> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
>> > > > starting master, logging to
>> > > >
>> > > >
>> > >
>> >
>> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
>> > > > Error: Could not find or load main class
>> > > > org.apache.hadoop.hbase.master.HMaster
>> > > > Password:
>> > > > localhost: starting regionserver, logging to
>> > > >
>> > > >
>> > >
>> >
>> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
>> > > > localhost: Error: Could not find or load main class
>> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
>> > > >
>> > > >
>> > > > I appreciate any help with this, I don't usually experience a setup
>> > > problem
>> > > > like this.
>> > > >
>> > > > thanks
>> > > >
>> > > >
>> > > >
>> > > > On Fri, Dec 27, 2013 at 8:48 AM, Jean-Marc Spaggiari <
>> > > > jean-marc@spaggiari.org> wrote:
>> > > >
>> > > > > Hi Gerald,
>> > > > >
>> > > > > The easiest way to test HBase locally is:
>> > > > > 1) Download the tar.gz
>> > > > > 2) Ungzip it.
>> > > > > 3) Make sure host file contains FQDN assign to local IP address
>> (and
>> > > not
>> > > > > 127.0.0.1)
>> > > > > 4) define JAVA_HOME to point to you Sun JDK
>> > > > > 5) bin/start-hbase.sh
>> > > > >
>> > > > > Don't change anything, don't set any other variable, don't do
>> > anything.
>> > > > > Just those 5 simple steps. Then you should have a standalone
>> version
>> > > > > running.
>> > > > >
>> > > > > JM
>> > > > >
>> > > > >
>> > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
>> > > > >
>> > > > > > hi I have been attempting to learn hbase and have been unable to
>> > get
>> > > a
>> > > > > > local copy running, it comes back with"could not find or load
>> main
>> > > > class
>> > > > > > org.apache.hadoop.hbase.util.HBaseConfTool" and "could not find
>> or
>> > > load
>> > > > > > main class org.apache.hadoop.hbase.zookeeper.ZKServerTool" and
>> > "culd
>> > > > not
>> > > > > > find or load main class org.apache.hadoop.hbase.master.HMaster"
>> I
>> > > have
>> > > > > > tried adding stuff to the config HBASE_CLASSPATH but nothing
>> seems
>> > to
>> > > > get
>> > > > > > rid of the error, I also grepped the directories from the
>> install
>> > > > package
>> > > > > > and could not find the class that they are looking for, anyone
>> have
>> > > an
>> > > > > idea
>> > > > > > of what this is? thanks
>> > > > > >
>> > > > > > --
>> > > > > >
>> > > > > > Gerald Klein DBA
>> > > > > >
>> > > > > > ContactMe@geraldklein.com
>> > > > > >
>> > > > > > www.geraldklein.com <http://geraldklein.com/>
>> > > > > >
>> > > > > > geraldklein.wordpress.com
>> > > > > >
>> > > > > > jk@zognet.com
>> > > > > >
>> > > > > > 708-599-0352
>> > > > > >
>> > > > > >
>> > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
>> > > > > >
>> > > > > > Linux registered user #548580
>> > > > > >
>> > > > > > Brought to you by the Amish Mafia
>> > > > > >
>> > > > >
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > >
>> > > > Gerald Klein DBA
>> > > >
>> > > > ContactMe@geraldklein.com
>> > > >
>> > > > www.geraldklein.com <http://geraldklein.com/>
>> > > >
>> > > > geraldklein.wordpress.com
>> > > >
>> > > > jk@zognet.com
>> > > >
>> > > > 708-599-0352
>> > > >
>> > > >
>> > > > Arch Awesome, Ranger & Vim the coding triple threat.
>> > > >
>> > > > Linux registered user #548580
>> > > >
>> > > > Brought to you by the Amish Mafia
>> > > >
>> > >
>> >
>> >
>> >
>> > --
>> >
>> > Gerald Klein DBA
>> >
>> > ContactMe@geraldklein.com
>> >
>> > www.geraldklein.com <http://geraldklein.com/>
>> >
>> > geraldklein.wordpress.com
>> >
>> > jk@zognet.com
>> >
>> > 708-599-0352
>> >
>> >
>> > Arch Awesome, Ranger & Vim the coding triple threat.
>> >
>> > Linux registered user #548580
>> >
>> > Brought to you by the Amish Mafia
>> >
>>
>
>
>
> --
>
> Gerald Klein DBA
>
> ContactMe@geraldklein.com
>
> www.geraldklein.com <http://geraldklein.com/>
>
> geraldklein.wordpress.com
>
> jk@zognet.com
>
> 708-599-0352
>
>
> Arch Awesome, Ranger & Vim the coding triple threat.
>
> Linux registered user #548580
>
> Brought to you by the Amish Mafia
>
>

Re: hbase config problem

Posted by Gerald Klein <jk...@zognet.com>.
OK here it is and thanks a lot for taking the time.


On Fri, Dec 27, 2013 at 11:15 AM, Jean-Marc Spaggiari <
jean-marc@spaggiari.org> wrote:

> Can you share your config files?
> hbase-env.sh
> hosts
> hbase-site.xml
>
> Are you able to passwordless ssh in the same host? Like ssh MYHOST does it
> ask for a password?
>
> If so, can you configure it password less?
>
> to create the key: ssh-keygen -t rsa
> To install: ssh-copy-id -i ~/.ssh/id_rsa.pub your_user_name@your_host_name
>
> JM
>
>
> 2013/12/27 Gerald Klein <jk...@zognet.com>
>
> > Yes I have added it to the conf/hbase-env.sh file in the last email when
> it
> > initially failed that test, I currently have it pointed to
> > /opt/oracle-jdk-bin-1.7.0.45
> > which is where Gentoo has it installed.
> >
> >
> >
> >
> >
> > On Fri, Dec 27, 2013 at 10:48 AM, Jean-Marc Spaggiari <
> > jean-marc@spaggiari.org> wrote:
> >
> > > Have you modified any of the files into conf/ ?
> > >
> > > Please add your JAVA_HOME setting into conf/hbase-env.sh and retry.
> > >
> > > The password issue is related to the passwordless setting, but it
> should
> > > not be required for the standalone version. We will look at that after
> > you
> > > try again ;)
> > >
> > > JM
> > >
> > >
> > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > >
> > > > Thanks for the help, I unset all vars and made sure that the
> JAVA_HOME
> > > was
> > > > set in .bashrc, Same errors but now JAVA_HOME not set as below:
> > > >
> > > > Error: Could not find or load main class
> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > Error: Could not find or load main class
> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > starting master, logging to
> > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.out
> > > > Error: Could not find or load main class
> > > > org.apache.hadoop.hbase.master.HMaster
> > > > Password:
> > > > localhost:
> > > >
> > +======================================================================+
> > > > localhost: |      Error: JAVA_HOME is not set and Java could not be
> > found
> > > >       |
> > > > localhost:
> > > >
> > +----------------------------------------------------------------------+
> > > > localhost: | Please download the latest Sun JDK from the Sun Java web
> > > site
> > > >        |
> > > > localhost: |       > http://java.sun.com/javase/downloads/ <
> > > >        |
> > > > localhost: |
> > > >        |
> > > > localhost: | HBase requires Java 1.6 or later.
> > > >        |
> > > > localhost: | NOTE: This script will find Sun Java whether you install
> > > using
> > > > the   |
> > > > localhost: |       binary or the RPM based installer.
> > > >       |
> > > > localhost:
> > > >
> > +======================================================================+
> > > >
> > > > So I set JAVA_HOME in hbase-env.sh, but I still get the following
> > > >
> > > > Error: Could not find or load main class
> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > Error: Could not find or load main class
> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > starting master, logging to
> > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.out
> > > > Error: Could not find or load main class
> > > > org.apache.hadoop.hbase.master.HMaster
> > > > Password:
> > > > localhost: starting regionserver, logging to
> > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.out
> > > > localhost: Error: Could not find or load main class
> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > >
> > > > then I forced a domain name via hostname and still got the following
> > > >
> > > >
> > > > Error: Could not find or load main class
> > > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > > Error: Could not find or load main class
> > > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > > starting master, logging to
> > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > > > Error: Could not find or load main class
> > > > org.apache.hadoop.hbase.master.HMaster
> > > > Password:
> > > > localhost: starting regionserver, logging to
> > > >
> > > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > > > localhost: Error: Could not find or load main class
> > > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > > >
> > > >
> > > > I appreciate any help with this, I don't usually experience a setup
> > > problem
> > > > like this.
> > > >
> > > > thanks
> > > >
> > > >
> > > >
> > > > On Fri, Dec 27, 2013 at 8:48 AM, Jean-Marc Spaggiari <
> > > > jean-marc@spaggiari.org> wrote:
> > > >
> > > > > Hi Gerald,
> > > > >
> > > > > The easiest way to test HBase locally is:
> > > > > 1) Download the tar.gz
> > > > > 2) Ungzip it.
> > > > > 3) Make sure host file contains FQDN assign to local IP address
> (and
> > > not
> > > > > 127.0.0.1)
> > > > > 4) define JAVA_HOME to point to you Sun JDK
> > > > > 5) bin/start-hbase.sh
> > > > >
> > > > > Don't change anything, don't set any other variable, don't do
> > anything.
> > > > > Just those 5 simple steps. Then you should have a standalone
> version
> > > > > running.
> > > > >
> > > > > JM
> > > > >
> > > > >
> > > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > > >
> > > > > > hi I have been attempting to learn hbase and have been unable to
> > get
> > > a
> > > > > > local copy running, it comes back with"could not find or load
> main
> > > > class
> > > > > > org.apache.hadoop.hbase.util.HBaseConfTool" and "could not find
> or
> > > load
> > > > > > main class org.apache.hadoop.hbase.zookeeper.ZKServerTool" and
> > "culd
> > > > not
> > > > > > find or load main class org.apache.hadoop.hbase.master.HMaster" I
> > > have
> > > > > > tried adding stuff to the config HBASE_CLASSPATH but nothing
> seems
> > to
> > > > get
> > > > > > rid of the error, I also grepped the directories from the install
> > > > package
> > > > > > and could not find the class that they are looking for, anyone
> have
> > > an
> > > > > idea
> > > > > > of what this is? thanks
> > > > > >
> > > > > > --
> > > > > >
> > > > > > Gerald Klein DBA
> > > > > >
> > > > > > ContactMe@geraldklein.com
> > > > > >
> > > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > > >
> > > > > > geraldklein.wordpress.com
> > > > > >
> > > > > > jk@zognet.com
> > > > > >
> > > > > > 708-599-0352
> > > > > >
> > > > > >
> > > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > > >
> > > > > > Linux registered user #548580
> > > > > >
> > > > > > Brought to you by the Amish Mafia
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Gerald Klein DBA
> > > >
> > > > ContactMe@geraldklein.com
> > > >
> > > > www.geraldklein.com <http://geraldklein.com/>
> > > >
> > > > geraldklein.wordpress.com
> > > >
> > > > jk@zognet.com
> > > >
> > > > 708-599-0352
> > > >
> > > >
> > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > >
> > > > Linux registered user #548580
> > > >
> > > > Brought to you by the Amish Mafia
> > > >
> > >
> >
> >
> >
> > --
> >
> > Gerald Klein DBA
> >
> > ContactMe@geraldklein.com
> >
> > www.geraldklein.com <http://geraldklein.com/>
> >
> > geraldklein.wordpress.com
> >
> > jk@zognet.com
> >
> > 708-599-0352
> >
> >
> > Arch Awesome, Ranger & Vim the coding triple threat.
> >
> > Linux registered user #548580
> >
> > Brought to you by the Amish Mafia
> >
>



-- 

Gerald Klein DBA

ContactMe@geraldklein.com

www.geraldklein.com <http://geraldklein.com/>

geraldklein.wordpress.com

jk@zognet.com

708-599-0352


Arch Awesome, Ranger & Vim the coding triple threat.

Linux registered user #548580

Brought to you by the Amish Mafia

Re: hbase config problem

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
Can you share your config files?
hbase-env.sh
hosts
hbase-site.xml

Are you able to passwordless ssh in the same host? Like ssh MYHOST does it
ask for a password?

If so, can you configure it password less?

to create the key: ssh-keygen -t rsa
To install: ssh-copy-id -i ~/.ssh/id_rsa.pub your_user_name@your_host_name

JM


2013/12/27 Gerald Klein <jk...@zognet.com>

> Yes I have added it to the conf/hbase-env.sh file in the last email when it
> initially failed that test, I currently have it pointed to
> /opt/oracle-jdk-bin-1.7.0.45
> which is where Gentoo has it installed.
>
>
>
>
>
> On Fri, Dec 27, 2013 at 10:48 AM, Jean-Marc Spaggiari <
> jean-marc@spaggiari.org> wrote:
>
> > Have you modified any of the files into conf/ ?
> >
> > Please add your JAVA_HOME setting into conf/hbase-env.sh and retry.
> >
> > The password issue is related to the passwordless setting, but it should
> > not be required for the standalone version. We will look at that after
> you
> > try again ;)
> >
> > JM
> >
> >
> > 2013/12/27 Gerald Klein <jk...@zognet.com>
> >
> > > Thanks for the help, I unset all vars and made sure that the JAVA_HOME
> > was
> > > set in .bashrc, Same errors but now JAVA_HOME not set as below:
> > >
> > > Error: Could not find or load main class
> > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > Error: Could not find or load main class
> > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > starting master, logging to
> > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.out
> > > Error: Could not find or load main class
> > > org.apache.hadoop.hbase.master.HMaster
> > > Password:
> > > localhost:
> > >
> +======================================================================+
> > > localhost: |      Error: JAVA_HOME is not set and Java could not be
> found
> > >       |
> > > localhost:
> > >
> +----------------------------------------------------------------------+
> > > localhost: | Please download the latest Sun JDK from the Sun Java web
> > site
> > >        |
> > > localhost: |       > http://java.sun.com/javase/downloads/ <
> > >        |
> > > localhost: |
> > >        |
> > > localhost: | HBase requires Java 1.6 or later.
> > >        |
> > > localhost: | NOTE: This script will find Sun Java whether you install
> > using
> > > the   |
> > > localhost: |       binary or the RPM based installer.
> > >       |
> > > localhost:
> > >
> +======================================================================+
> > >
> > > So I set JAVA_HOME in hbase-env.sh, but I still get the following
> > >
> > > Error: Could not find or load main class
> > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > Error: Could not find or load main class
> > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > starting master, logging to
> > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.out
> > > Error: Could not find or load main class
> > > org.apache.hadoop.hbase.master.HMaster
> > > Password:
> > > localhost: starting regionserver, logging to
> > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.out
> > > localhost: Error: Could not find or load main class
> > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > >
> > > then I forced a domain name via hostname and still got the following
> > >
> > >
> > > Error: Could not find or load main class
> > > org.apache.hadoop.hbase.util.HBaseConfTool
> > > Error: Could not find or load main class
> > > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > > starting master, logging to
> > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > > Error: Could not find or load main class
> > > org.apache.hadoop.hbase.master.HMaster
> > > Password:
> > > localhost: starting regionserver, logging to
> > >
> > >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > > localhost: Error: Could not find or load main class
> > > org.apache.hadoop.hbase.regionserver.HRegionServer
> > >
> > >
> > > I appreciate any help with this, I don't usually experience a setup
> > problem
> > > like this.
> > >
> > > thanks
> > >
> > >
> > >
> > > On Fri, Dec 27, 2013 at 8:48 AM, Jean-Marc Spaggiari <
> > > jean-marc@spaggiari.org> wrote:
> > >
> > > > Hi Gerald,
> > > >
> > > > The easiest way to test HBase locally is:
> > > > 1) Download the tar.gz
> > > > 2) Ungzip it.
> > > > 3) Make sure host file contains FQDN assign to local IP address (and
> > not
> > > > 127.0.0.1)
> > > > 4) define JAVA_HOME to point to you Sun JDK
> > > > 5) bin/start-hbase.sh
> > > >
> > > > Don't change anything, don't set any other variable, don't do
> anything.
> > > > Just those 5 simple steps. Then you should have a standalone version
> > > > running.
> > > >
> > > > JM
> > > >
> > > >
> > > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > > >
> > > > > hi I have been attempting to learn hbase and have been unable to
> get
> > a
> > > > > local copy running, it comes back with"could not find or load main
> > > class
> > > > > org.apache.hadoop.hbase.util.HBaseConfTool" and "could not find or
> > load
> > > > > main class org.apache.hadoop.hbase.zookeeper.ZKServerTool" and
> "culd
> > > not
> > > > > find or load main class org.apache.hadoop.hbase.master.HMaster" I
> > have
> > > > > tried adding stuff to the config HBASE_CLASSPATH but nothing seems
> to
> > > get
> > > > > rid of the error, I also grepped the directories from the install
> > > package
> > > > > and could not find the class that they are looking for, anyone have
> > an
> > > > idea
> > > > > of what this is? thanks
> > > > >
> > > > > --
> > > > >
> > > > > Gerald Klein DBA
> > > > >
> > > > > ContactMe@geraldklein.com
> > > > >
> > > > > www.geraldklein.com <http://geraldklein.com/>
> > > > >
> > > > > geraldklein.wordpress.com
> > > > >
> > > > > jk@zognet.com
> > > > >
> > > > > 708-599-0352
> > > > >
> > > > >
> > > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > > >
> > > > > Linux registered user #548580
> > > > >
> > > > > Brought to you by the Amish Mafia
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > >
> > > Gerald Klein DBA
> > >
> > > ContactMe@geraldklein.com
> > >
> > > www.geraldklein.com <http://geraldklein.com/>
> > >
> > > geraldklein.wordpress.com
> > >
> > > jk@zognet.com
> > >
> > > 708-599-0352
> > >
> > >
> > > Arch Awesome, Ranger & Vim the coding triple threat.
> > >
> > > Linux registered user #548580
> > >
> > > Brought to you by the Amish Mafia
> > >
> >
>
>
>
> --
>
> Gerald Klein DBA
>
> ContactMe@geraldklein.com
>
> www.geraldklein.com <http://geraldklein.com/>
>
> geraldklein.wordpress.com
>
> jk@zognet.com
>
> 708-599-0352
>
>
> Arch Awesome, Ranger & Vim the coding triple threat.
>
> Linux registered user #548580
>
> Brought to you by the Amish Mafia
>

Re: hbase config problem

Posted by Gerald Klein <jk...@zognet.com>.
Yes I have added it to the conf/hbase-env.sh file in the last email when it
initially failed that test, I currently have it pointed to
/opt/oracle-jdk-bin-1.7.0.45
which is where Gentoo has it installed.





On Fri, Dec 27, 2013 at 10:48 AM, Jean-Marc Spaggiari <
jean-marc@spaggiari.org> wrote:

> Have you modified any of the files into conf/ ?
>
> Please add your JAVA_HOME setting into conf/hbase-env.sh and retry.
>
> The password issue is related to the passwordless setting, but it should
> not be required for the standalone version. We will look at that after you
> try again ;)
>
> JM
>
>
> 2013/12/27 Gerald Klein <jk...@zognet.com>
>
> > Thanks for the help, I unset all vars and made sure that the JAVA_HOME
> was
> > set in .bashrc, Same errors but now JAVA_HOME not set as below:
> >
> > Error: Could not find or load main class
> > org.apache.hadoop.hbase.util.HBaseConfTool
> > Error: Could not find or load main class
> > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > starting master, logging to
> >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.out
> > Error: Could not find or load main class
> > org.apache.hadoop.hbase.master.HMaster
> > Password:
> > localhost:
> > +======================================================================+
> > localhost: |      Error: JAVA_HOME is not set and Java could not be found
> >       |
> > localhost:
> > +----------------------------------------------------------------------+
> > localhost: | Please download the latest Sun JDK from the Sun Java web
> site
> >        |
> > localhost: |       > http://java.sun.com/javase/downloads/ <
> >        |
> > localhost: |
> >        |
> > localhost: | HBase requires Java 1.6 or later.
> >        |
> > localhost: | NOTE: This script will find Sun Java whether you install
> using
> > the   |
> > localhost: |       binary or the RPM based installer.
> >       |
> > localhost:
> > +======================================================================+
> >
> > So I set JAVA_HOME in hbase-env.sh, but I still get the following
> >
> > Error: Could not find or load main class
> > org.apache.hadoop.hbase.util.HBaseConfTool
> > Error: Could not find or load main class
> > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > starting master, logging to
> >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.out
> > Error: Could not find or load main class
> > org.apache.hadoop.hbase.master.HMaster
> > Password:
> > localhost: starting regionserver, logging to
> >
> >
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.out
> > localhost: Error: Could not find or load main class
> > org.apache.hadoop.hbase.regionserver.HRegionServer
> >
> > then I forced a domain name via hostname and still got the following
> >
> >
> > Error: Could not find or load main class
> > org.apache.hadoop.hbase.util.HBaseConfTool
> > Error: Could not find or load main class
> > org.apache.hadoop.hbase.zookeeper.ZKServerTool
> > starting master, logging to
> >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> > Error: Could not find or load main class
> > org.apache.hadoop.hbase.master.HMaster
> > Password:
> > localhost: starting regionserver, logging to
> >
> >
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> > localhost: Error: Could not find or load main class
> > org.apache.hadoop.hbase.regionserver.HRegionServer
> >
> >
> > I appreciate any help with this, I don't usually experience a setup
> problem
> > like this.
> >
> > thanks
> >
> >
> >
> > On Fri, Dec 27, 2013 at 8:48 AM, Jean-Marc Spaggiari <
> > jean-marc@spaggiari.org> wrote:
> >
> > > Hi Gerald,
> > >
> > > The easiest way to test HBase locally is:
> > > 1) Download the tar.gz
> > > 2) Ungzip it.
> > > 3) Make sure host file contains FQDN assign to local IP address (and
> not
> > > 127.0.0.1)
> > > 4) define JAVA_HOME to point to you Sun JDK
> > > 5) bin/start-hbase.sh
> > >
> > > Don't change anything, don't set any other variable, don't do anything.
> > > Just those 5 simple steps. Then you should have a standalone version
> > > running.
> > >
> > > JM
> > >
> > >
> > > 2013/12/27 Gerald Klein <jk...@zognet.com>
> > >
> > > > hi I have been attempting to learn hbase and have been unable to get
> a
> > > > local copy running, it comes back with"could not find or load main
> > class
> > > > org.apache.hadoop.hbase.util.HBaseConfTool" and "could not find or
> load
> > > > main class org.apache.hadoop.hbase.zookeeper.ZKServerTool" and "culd
> > not
> > > > find or load main class org.apache.hadoop.hbase.master.HMaster" I
> have
> > > > tried adding stuff to the config HBASE_CLASSPATH but nothing seems to
> > get
> > > > rid of the error, I also grepped the directories from the install
> > package
> > > > and could not find the class that they are looking for, anyone have
> an
> > > idea
> > > > of what this is? thanks
> > > >
> > > > --
> > > >
> > > > Gerald Klein DBA
> > > >
> > > > ContactMe@geraldklein.com
> > > >
> > > > www.geraldklein.com <http://geraldklein.com/>
> > > >
> > > > geraldklein.wordpress.com
> > > >
> > > > jk@zognet.com
> > > >
> > > > 708-599-0352
> > > >
> > > >
> > > > Arch Awesome, Ranger & Vim the coding triple threat.
> > > >
> > > > Linux registered user #548580
> > > >
> > > > Brought to you by the Amish Mafia
> > > >
> > >
> >
> >
> >
> > --
> >
> > Gerald Klein DBA
> >
> > ContactMe@geraldklein.com
> >
> > www.geraldklein.com <http://geraldklein.com/>
> >
> > geraldklein.wordpress.com
> >
> > jk@zognet.com
> >
> > 708-599-0352
> >
> >
> > Arch Awesome, Ranger & Vim the coding triple threat.
> >
> > Linux registered user #548580
> >
> > Brought to you by the Amish Mafia
> >
>



-- 

Gerald Klein DBA

ContactMe@geraldklein.com

www.geraldklein.com <http://geraldklein.com/>

geraldklein.wordpress.com

jk@zognet.com

708-599-0352


Arch Awesome, Ranger & Vim the coding triple threat.

Linux registered user #548580

Brought to you by the Amish Mafia

Re: hbase config problem

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
Have you modified any of the files into conf/ ?

Please add your JAVA_HOME setting into conf/hbase-env.sh and retry.

The password issue is related to the passwordless setting, but it should
not be required for the standalone version. We will look at that after you
try again ;)

JM


2013/12/27 Gerald Klein <jk...@zognet.com>

> Thanks for the help, I unset all vars and made sure that the JAVA_HOME was
> set in .bashrc, Same errors but now JAVA_HOME not set as below:
>
> Error: Could not find or load main class
> org.apache.hadoop.hbase.util.HBaseConfTool
> Error: Could not find or load main class
> org.apache.hadoop.hbase.zookeeper.ZKServerTool
> starting master, logging to
>
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.out
> Error: Could not find or load main class
> org.apache.hadoop.hbase.master.HMaster
> Password:
> localhost:
> +======================================================================+
> localhost: |      Error: JAVA_HOME is not set and Java could not be found
>       |
> localhost:
> +----------------------------------------------------------------------+
> localhost: | Please download the latest Sun JDK from the Sun Java web site
>        |
> localhost: |       > http://java.sun.com/javase/downloads/ <
>        |
> localhost: |
>        |
> localhost: | HBase requires Java 1.6 or later.
>        |
> localhost: | NOTE: This script will find Sun Java whether you install using
> the   |
> localhost: |       binary or the RPM based installer.
>       |
> localhost:
> +======================================================================+
>
> So I set JAVA_HOME in hbase-env.sh, but I still get the following
>
> Error: Could not find or load main class
> org.apache.hadoop.hbase.util.HBaseConfTool
> Error: Could not find or load main class
> org.apache.hadoop.hbase.zookeeper.ZKServerTool
> starting master, logging to
>
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.out
> Error: Could not find or load main class
> org.apache.hadoop.hbase.master.HMaster
> Password:
> localhost: starting regionserver, logging to
>
> /root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.out
> localhost: Error: Could not find or load main class
> org.apache.hadoop.hbase.regionserver.HRegionServer
>
> then I forced a domain name via hostname and still got the following
>
>
> Error: Could not find or load main class
> org.apache.hadoop.hbase.util.HBaseConfTool
> Error: Could not find or load main class
> org.apache.hadoop.hbase.zookeeper.ZKServerTool
> starting master, logging to
>
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
> Error: Could not find or load main class
> org.apache.hadoop.hbase.master.HMaster
> Password:
> localhost: starting regionserver, logging to
>
> /root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
> localhost: Error: Could not find or load main class
> org.apache.hadoop.hbase.regionserver.HRegionServer
>
>
> I appreciate any help with this, I don't usually experience a setup problem
> like this.
>
> thanks
>
>
>
> On Fri, Dec 27, 2013 at 8:48 AM, Jean-Marc Spaggiari <
> jean-marc@spaggiari.org> wrote:
>
> > Hi Gerald,
> >
> > The easiest way to test HBase locally is:
> > 1) Download the tar.gz
> > 2) Ungzip it.
> > 3) Make sure host file contains FQDN assign to local IP address (and not
> > 127.0.0.1)
> > 4) define JAVA_HOME to point to you Sun JDK
> > 5) bin/start-hbase.sh
> >
> > Don't change anything, don't set any other variable, don't do anything.
> > Just those 5 simple steps. Then you should have a standalone version
> > running.
> >
> > JM
> >
> >
> > 2013/12/27 Gerald Klein <jk...@zognet.com>
> >
> > > hi I have been attempting to learn hbase and have been unable to get a
> > > local copy running, it comes back with"could not find or load main
> class
> > > org.apache.hadoop.hbase.util.HBaseConfTool" and "could not find or load
> > > main class org.apache.hadoop.hbase.zookeeper.ZKServerTool" and "culd
> not
> > > find or load main class org.apache.hadoop.hbase.master.HMaster" I have
> > > tried adding stuff to the config HBASE_CLASSPATH but nothing seems to
> get
> > > rid of the error, I also grepped the directories from the install
> package
> > > and could not find the class that they are looking for, anyone have an
> > idea
> > > of what this is? thanks
> > >
> > > --
> > >
> > > Gerald Klein DBA
> > >
> > > ContactMe@geraldklein.com
> > >
> > > www.geraldklein.com <http://geraldklein.com/>
> > >
> > > geraldklein.wordpress.com
> > >
> > > jk@zognet.com
> > >
> > > 708-599-0352
> > >
> > >
> > > Arch Awesome, Ranger & Vim the coding triple threat.
> > >
> > > Linux registered user #548580
> > >
> > > Brought to you by the Amish Mafia
> > >
> >
>
>
>
> --
>
> Gerald Klein DBA
>
> ContactMe@geraldklein.com
>
> www.geraldklein.com <http://geraldklein.com/>
>
> geraldklein.wordpress.com
>
> jk@zognet.com
>
> 708-599-0352
>
>
> Arch Awesome, Ranger & Vim the coding triple threat.
>
> Linux registered user #548580
>
> Brought to you by the Amish Mafia
>

Re: hbase config problem

Posted by Gerald Klein <jk...@zognet.com>.
Thanks for the help, I unset all vars and made sure that the JAVA_HOME was
set in .bashrc, Same errors but now JAVA_HOME not set as below:

Error: Could not find or load main class
org.apache.hadoop.hbase.util.HBaseConfTool
Error: Could not find or load main class
org.apache.hadoop.hbase.zookeeper.ZKServerTool
starting master, logging to
/root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.out
Error: Could not find or load main class
org.apache.hadoop.hbase.master.HMaster
Password:
localhost:
+======================================================================+
localhost: |      Error: JAVA_HOME is not set and Java could not be found
      |
localhost:
+----------------------------------------------------------------------+
localhost: | Please download the latest Sun JDK from the Sun Java web site
       |
localhost: |       > http://java.sun.com/javase/downloads/ <
       |
localhost: |
       |
localhost: | HBase requires Java 1.6 or later.
       |
localhost: | NOTE: This script will find Sun Java whether you install using
the   |
localhost: |       binary or the RPM based installer.
      |
localhost:
+======================================================================+

So I set JAVA_HOME in hbase-env.sh, but I still get the following

Error: Could not find or load main class
org.apache.hadoop.hbase.util.HBaseConfTool
Error: Could not find or load main class
org.apache.hadoop.hbase.zookeeper.ZKServerTool
starting master, logging to
/root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-master-zenlinux.out
Error: Could not find or load main class
org.apache.hadoop.hbase.master.HMaster
Password:
localhost: starting regionserver, logging to
/root/Software/hbase-gz/hbase-0.95.2/bin/../logs/hbase-root-regionserver-zenlinux.out
localhost: Error: Could not find or load main class
org.apache.hadoop.hbase.regionserver.HRegionServer

then I forced a domain name via hostname and still got the following


Error: Could not find or load main class
org.apache.hadoop.hbase.util.HBaseConfTool
Error: Could not find or load main class
org.apache.hadoop.hbase.zookeeper.ZKServerTool
starting master, logging to
/root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-master-zenlinux.localdomain.com.out
Error: Could not find or load main class
org.apache.hadoop.hbase.master.HMaster
Password:
localhost: starting regionserver, logging to
/root/Software/hbase-gz/hbase-0.96.0/bin/../logs/hbase-root-regionserver-zenlinux.localdomain.com.out
localhost: Error: Could not find or load main class
org.apache.hadoop.hbase.regionserver.HRegionServer


I appreciate any help with this, I don't usually experience a setup problem
like this.

thanks



On Fri, Dec 27, 2013 at 8:48 AM, Jean-Marc Spaggiari <
jean-marc@spaggiari.org> wrote:

> Hi Gerald,
>
> The easiest way to test HBase locally is:
> 1) Download the tar.gz
> 2) Ungzip it.
> 3) Make sure host file contains FQDN assign to local IP address (and not
> 127.0.0.1)
> 4) define JAVA_HOME to point to you Sun JDK
> 5) bin/start-hbase.sh
>
> Don't change anything, don't set any other variable, don't do anything.
> Just those 5 simple steps. Then you should have a standalone version
> running.
>
> JM
>
>
> 2013/12/27 Gerald Klein <jk...@zognet.com>
>
> > hi I have been attempting to learn hbase and have been unable to get a
> > local copy running, it comes back with"could not find or load main class
> > org.apache.hadoop.hbase.util.HBaseConfTool" and "could not find or load
> > main class org.apache.hadoop.hbase.zookeeper.ZKServerTool" and "culd not
> > find or load main class org.apache.hadoop.hbase.master.HMaster" I have
> > tried adding stuff to the config HBASE_CLASSPATH but nothing seems to get
> > rid of the error, I also grepped the directories from the install package
> > and could not find the class that they are looking for, anyone have an
> idea
> > of what this is? thanks
> >
> > --
> >
> > Gerald Klein DBA
> >
> > ContactMe@geraldklein.com
> >
> > www.geraldklein.com <http://geraldklein.com/>
> >
> > geraldklein.wordpress.com
> >
> > jk@zognet.com
> >
> > 708-599-0352
> >
> >
> > Arch Awesome, Ranger & Vim the coding triple threat.
> >
> > Linux registered user #548580
> >
> > Brought to you by the Amish Mafia
> >
>



-- 

Gerald Klein DBA

ContactMe@geraldklein.com

www.geraldklein.com <http://geraldklein.com/>

geraldklein.wordpress.com

jk@zognet.com

708-599-0352


Arch Awesome, Ranger & Vim the coding triple threat.

Linux registered user #548580

Brought to you by the Amish Mafia

Re: hbase config problem

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
Hi Gerald,

The easiest way to test HBase locally is:
1) Download the tar.gz
2) Ungzip it.
3) Make sure host file contains FQDN assign to local IP address (and not
127.0.0.1)
4) define JAVA_HOME to point to you Sun JDK
5) bin/start-hbase.sh

Don't change anything, don't set any other variable, don't do anything.
Just those 5 simple steps. Then you should have a standalone version
running.

JM


2013/12/27 Gerald Klein <jk...@zognet.com>

> hi I have been attempting to learn hbase and have been unable to get a
> local copy running, it comes back with"could not find or load main class
> org.apache.hadoop.hbase.util.HBaseConfTool" and "could not find or load
> main class org.apache.hadoop.hbase.zookeeper.ZKServerTool" and "culd not
> find or load main class org.apache.hadoop.hbase.master.HMaster" I have
> tried adding stuff to the config HBASE_CLASSPATH but nothing seems to get
> rid of the error, I also grepped the directories from the install package
> and could not find the class that they are looking for, anyone have an idea
> of what this is? thanks
>
> --
>
> Gerald Klein DBA
>
> ContactMe@geraldklein.com
>
> www.geraldklein.com <http://geraldklein.com/>
>
> geraldklein.wordpress.com
>
> jk@zognet.com
>
> 708-599-0352
>
>
> Arch Awesome, Ranger & Vim the coding triple threat.
>
> Linux registered user #548580
>
> Brought to you by the Amish Mafia
>