Installation doesn't seem to work

103 views
Skip to first unread message

James

unread,
Jun 22, 2010, 9:48:25 AM6/22/10
to CloudBase
Installed cloudbase per the installation instructions by unpacking the
tar into /cloudbase-1.3.1/. I then updated the cloudbase-env file in
bin to have my hadoop home directory. When I try to run the test files
though such as run tests or setup i get
java.lang.NoClassDefFoundError: org/jdom/JDOMException at (in
runTests.sh)
com.business.cloudbase.statement.query.resolver.NameResolver.resolve(NameResolver.java:
168). Anybody know what is going on? what else do I need to configure?

James

Tarandeep Singh

unread,
Jun 22, 2010, 2:52:32 PM6/22/10
to cloudba...@googlegroups.com
James,

I just tried installation by downloading cloudbase-1.3.1 from sourceforge.
It ran fine for me.

To configure cloudbase, these are the only steps you need to do-

1) set HDOOP_HOME in $CLOUDBASE_HOME/bin/cloudbase-env file
2) run - $CLOUDBASE_HOME/bin/start-cloudbase

To set up test tables and run tests, you need to do -

1) run- $CLOUDBASE_HOME/test/bin/setup
2) run- $CLOUDBASE_HOME/test/bin/runTests.sh

Can you please try again and in case of error provide more details.

Thanks,
Tarandeep



--
You received this message because you are subscribed to the Google Groups "CloudBase" group.
To post to this group, send email to cloudba...@googlegroups.com.
To unsubscribe from this group, send email to cloudbase-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cloudbase-users?hl=en.


James Kilbride

unread,
Jun 22, 2010, 3:05:21 PM6/22/10
to cloudba...@googlegroups.com

[hadoop@centoshadoop cloudbase-1.3.1]$ more bin/cloudbase-env

#!/usr/bin/env bash

#

# Copyright(c) 2008 Business.com. All rights reserved.

#

# CloudBase is free software: you can redistribute it and/or modify

# it under the terms of the GNU General Public License as published by

# the Free Software Foundation, version 2. By downloading CloudBase you

# hereby acknowledge and agree to the terms and conditions of the GNU

# General Public License.

#

# CloudBase is distributed in the hope that it will be useful,

# but WITHOUT ANY WARRANTY; without even the implied warranty of

# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. THEREFORE,

# EXCEPT AS SPECIFIED IN WRITING THE SOFTWARE IS MADE AVAILABE ON AN

# AS IS BASIS AND SUBJECT TO THE RESTRICTIONS AND CONDITIONS OF THE

# GNU GENERAL PUBLIC LICENSE, BUSINESS.COM SHALL HAVE NO LIABILITY

# FOR THE SOFTWARE PROVIDED IN FURTHERANCE OF THIS AGREEMENT; 

# BUSINESS.COM MAKES AND LICENSEE RECEIVES NO WARRANTIES, EXPRESS,

# IMPLIED, STATUTORY, OR IN ANY OTHER PROVISION OR ANY OTHER COMMUNICATION;

# AND BUSINESS.COM SPECIFICALLY DISCLAIMS ANY WARRANTY OF MERCHANTABILITY

# AND FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License

# for more details.

#

# You should have received a copy of the GNU General Public License

# along with CloudBase.  If not, see <http://www.gnu.org/licenses/>.

#

# Set the hadoop home dir

HADOOP_HOME=/hadoop-0.20.2/

export HADOOP_HOME

[hadoop@centoshadoop cloudbase-1.3.1]$ bin/start-cloudbase &

[1] 11988

[hadoop@centoshadoop cloudbase-1.3.1]$ CloudBase listening on:4444

test/bin/setup

Error occured while creating test tables-

java.sql.SQLException: Could not get I/O connection to host: localhost Exception:java.net.SocketTimeoutException: Read timed out

at com.business.cloudbase.CBConnection.<init>(CBConnection.java:207)

at com.business.cloudbase.CBDriver.connect(CBDriver.java:113)

at java.sql.DriverManager.getConnection(DriverManager.java:582)

at java.sql.DriverManager.getConnection(DriverManager.java:185)

at com.business.cloudbase.test.Setup.getConnection(Unknown Source)

at com.business.cloudbase.test.Setup.createTables(Unknown Source)

at com.business.cloudbase.test.Setup.main(Unknown Source)

Does this help?

Tarandeep Singh

unread,
Jun 22, 2010, 3:29:41 PM6/22/10
to cloudba...@googlegroups.com
the jdbc driver is not able to connect to cloudbase running on localhost.
Is there an entry of localhost in your /etc/hosts file.

You can change the $CLOUDBASE_HOME/test/cloudbase-jdbc.props  - instead of localhost, put your ip address or hostname.

If that does not work, just confirm that the clodubase server is still running at port 4444 and your network settings allow it to listen on 4444 and other users can connect to this port.

James Kilbride

unread,
Jun 22, 2010, 4:03:18 PM6/22/10
to cloudba...@googlegroups.com
From /etc/hosts:
 
127.0.0.1 localhost.localdomain localhost

This is what I get when I run it from my home directory, it is not complaining about the port:
[hadoop@centoshadoop ~]$ /cloudbase-1.3.1/test/bin/setup

Deleting index- index_test_table1_c4

GOT SQL: drop index INDEX_TEST_TABLE1_C4

Exception in thread "Thread-31" java.lang.NoClassDefFoundError: org/jdom/JDOMException

at com.business.cloudbase.statement.drop.DropStmt.execute(DropStmt.java:109)

at com.business.cloudbase.net.ClientHandler$CommandExecutor.handleSQL(ClientHandler.java:487)

at com.business.cloudbase.net.ClientHandler$CommandExecutor.run(ClientHandler.java:163)

Caused by: java.lang.ClassNotFoundException: org.jdom.JDOMException

at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

... 3 more

I also updated the props file to have my ip address. same error as above.

James Kilbride

unread,
Jun 22, 2010, 3:08:38 PM6/22/10
to cloudba...@googlegroups.com
I did an updated version of this, note the different errors when running it from different folders.
 

[hadoop@centoshadoop cloudbase-1.3.1]$ cd ~

[hadoop@centoshadoop ~]$ /cloudbase-1.3.1/test/bin/setup

Deleting index- index_test_table1_c4

GOT SQL: drop index INDEX_TEST_TABLE1_C4

Exception in thread "Thread-31" java.lang.NoClassDefFoundError: org/jdom/JDOMException

at com.business.cloudbase.statement.drop.DropStmt.execute(DropStmt.java:109)

at com.business.cloudbase.net.ClientHandler$CommandExecutor.handleSQL(ClientHandler.java:487)

at com.business.cloudbase.net.ClientHandler$CommandExecutor.run(ClientHandler.java:163)

Caused by: java.lang.ClassNotFoundException: org.jdom.JDOMException

at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

... 3 more

Tarandeep Singh

unread,
Jun 22, 2010, 7:03:49 PM6/22/10
to cloudba...@googlegroups.com
can you go to Cloudbase folder and start cloudbase from there and run setup and runtests from there ?

from the error below, it looks like jdom jar file is not being picked up.

James Kilbride

unread,
Jun 22, 2010, 7:27:44 PM6/22/10
to cloudba...@googlegroups.com
That's what gave me the first set of errors. I'll capture an updated full log of that run tomorrow and send that in.
 
James Kilbride

James Kilbride

unread,
Jun 23, 2010, 10:53:58 AM6/23/10
to cloudba...@googlegroups.com
I did this and what I determined is that the start-cloudbase is what isn't picking up the jdom. The error is actually occurring during the setup because i had backgrounded the start-cloudbase in the same window as setup. Running them in seperate terminal windows showed me that the setup is fine but the start-cloudbase is not picking up the jdom jar location. I notice you do the jar/classpaths differently on the two scripts. Why is that? It doesn't seem to be working correctly on the start-cloudbase script.
 
James Kilbride

Tarandeep Singh

unread,
Jun 25, 2010, 2:17:32 PM6/25/10
to cloudba...@googlegroups.com
Hi James,

My apologies for the late reply.
Did you get that working?

I don't exactly remember why the classpaths are set differently in the 2 scripts. By the way which shell you are using. Both the scripts are working fine for bash shell. If you happen to be using different shell, then I guess the scripts (at least start-cloudbase) should be modified accordingly.

You can also do echo $CLASSPATH and echo $HADOOP_CLASSPPATH before the last line and see whether jars are being set properly in the CLASSPATH.

Thanks,
Tarandeep


James

unread,
Jun 23, 2010, 10:49:02 AM6/23/10
to CloudBase
So did as you asked, and what I also did this time was make sure that
i had the server and the setup running in seperate windows. The error
is actually coming from the start-cloudbase run, not from the tests
themselves, the tests hang becuase the server thread bombed not being
able to find the jar that jdom resides in. Which implies to me the
classpath setup on the start-cloudbase script isn't working the way
you expected.

James Kilbride

On Jun 22, 7:27 pm, James Kilbride <kil...@gmail.com> wrote:
> That's what gave me the first set of errors. I'll capture an updated full
> log of that run tomorrow and send that in.
>
> James Kilbride
>
> On Tue, Jun 22, 2010 at 7:03 PM, Tarandeep Singh <tarand...@gmail.com>wrote:
>
>
>
> > can you go to Cloudbase folder and start cloudbase from there and run setup
> > and runtests from there ?
>
> > from the error below, it looks like jdom jar file is not being picked up.
>
> >   On Tue, Jun 22, 2010 at 12:08 PM, James Kilbride <kil...@gmail.com>wrote:
>
> >>   I did an updated version of this, note the different errors when
> >> running it from different folders.
>
> >> [hadoop@centoshadoop cloudbase-1.3.1]$ more bin/cloudbase-env
>
> >> #!/usr/bin/env bash
>
> >> #
>
> >> # Copyright(c) 2008 Business.com. All rights reserved.
>
> >> #
>
> >> # CloudBase is free software: you can redistribute it and/or modify
>
> >> # it under the terms of the GNU General Public License as published by
>
> >> # the Free Software Foundation, version 2. By downloading CloudBase you
>
> >> # hereby acknowledge and agree to the terms and conditions of the GNU
>
> >> # General Public License.
>
> >> #
>
> >> # CloudBase is distributed in the hope that it will be useful,
>
> >> # but WITHOUT ANY WARRANTY; without even the implied warranty of
>
> >> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. THEREFORE,
>
> >> # EXCEPT AS SPECIFIED INÂ WRITING THE SOFTWAREÂ ISÂ MADE AVAILABEÂ ON AN
>
> >> # AS IS BASIS AND SUBJECT TO THE RESTRICTIONS AND CONDITIONS OF THE
>
> >> # GNU GENERAL PUBLIC LICENSE, BUSINESS.COM <http://business.com/> SHALL
> >> HAVE NO LIABILITY
>
> >> # FOR THE SOFTWARE PROVIDED IN FURTHERANCE OF THIS AGREEMENT;Â
>
> >> # BUSINESS.COMÂ MAKES ANDÂ LICENSEE RECEIVES NO WARRANTIES, EXPRESS,
>
> >> # IMPLIED, STATUTORY, OR IN ANY OTHER PROVISIONÂ OR ANY OTHER
> >> COMMUNICATION;
>
> >> # ANDÂ BUSINESS.COM <http://business.com/> SPECIFICALLY DISCLAIMS ANY
> >> com.business.cloudbase.net.ClientHandler$CommandExecutor.handleSQL(ClientHa­ndler.java:487)
>
> >> at
> >> com.business.cloudbase.net.ClientHandler$CommandExecutor.run(ClientHandler.­java:163)
>
> >> Caused by: java.lang.ClassNotFoundException: org.jdom.JDOMException
>
> >> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>
> >> at java.security.AccessController.doPrivileged(Native Method)
>
> >> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>
> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>
> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>
> >> ... 3 more
>
> >>    On Tue, Jun 22, 2010 at 3:05 PM, James Kilbride <kil...@gmail.com>wrote:
>
> >>> [hadoop@centoshadoop cloudbase-1.3.1]$ more bin/cloudbase-env
>
> >>> #!/usr/bin/env bash
>
> >>> #
>
> >>> # Copyright(c) 2008 Business.com. All rights reserved.
>
> >>> #
>
> >>> # CloudBase is free software: you can redistribute it and/or modify
>
> >>> # it under the terms of the GNU General Public License as published by
>
> >>> # the Free Software Foundation, version 2. By downloading CloudBase you
>
> >>> # hereby acknowledge and agree to the terms and conditions of the GNU
>
> >>> # General Public License.
>
> >>> #
>
> >>> # CloudBase is distributed in the hope that it will be useful,
>
> >>> # but WITHOUT ANY WARRANTY; without even the implied warranty of
>
> >>> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. THEREFORE,
>
> >>> # EXCEPT AS SPECIFIED INÂ WRITING THE SOFTWAREÂ ISÂ MADE AVAILABEÂ ON AN
>
> >>> # AS IS BASIS AND SUBJECT TO THE RESTRICTIONS AND CONDITIONS OF THE
>
> >>> # GNU GENERAL PUBLIC LICENSE, BUSINESS.COM <http://business.com/> SHALL
> >>> HAVE NO LIABILITY
>
> >>> # FOR THE SOFTWARE PROVIDED IN FURTHERANCE OF THIS AGREEMENT;Â
>
> >>> # BUSINESS.COMÂ MAKES ANDÂ LICENSEE RECEIVES NO WARRANTIES, EXPRESS,
>
> >>> # IMPLIED, STATUTORY, OR IN ANY OTHER PROVISIONÂ OR ANY OTHER
> >>> COMMUNICATION;
>
> >>> # ANDÂ BUSINESS.COM <http://business.com/> SPECIFICALLY DISCLAIMS ANY
> >>> On Tue, Jun 22, 2010 at 2:52 PM, Tarandeep Singh <tarand...@gmail.com>wrote:
>
> >>>> James,
>
> >>>> I just tried installation by downloading cloudbase-1.3.1 from
> >>>> sourceforge.
> >>>> It ran fine for me.
>
> >>>> To configure cloudbase, these are the only steps you need to do-
>
> >>>> 1) set HDOOP_HOME in $CLOUDBASE_HOME/bin/cloudbase-env file
> >>>> 2) run - $CLOUDBASE_HOME/bin/start-cloudbase
>
> >>>> To set up test tables and run tests, you need to do -
>
> >>>> 1) run- $CLOUDBASE_HOME/test/bin/setup
> >>>> 2) run- $CLOUDBASE_HOME/test/bin/runTests.sh
>
> >>>> Can you please try again and in case of error provide more details.
>
> >>>> Thanks,
> >>>> Tarandeep
>
> >>>> On Tue, Jun 22, 2010 at 6:48 AM, James <kil...@gmail.com> wrote:
>
> >>>>> Installed cloudbase per the installation instructions by unpacking the
> >>>>> tar into /cloudbase-1.3.1/. I then updated the cloudbase-env file in
> >>>>> bin to have my hadoop home directory. When I try to run the test files
> >>>>> though such as run tests or setup i get
> >>>>> java.lang.NoClassDefFoundError: org/jdom/JDOMException at (in
> >>>>> runTests.sh)
>
> >>>>> com.business.cloudbase.statement.query.resolver.NameResolver.resolve(NameRe­solver.java:
> >>>>> 168). Anybody know what is going on? what else do I need to configure?
>
> >>>>> James
>
> >>>>> --
> >>>>> You received this message because you are subscribed to the Google
> >>>>> Groups "CloudBase" group.
> >>>>> To post to this group, send email to cloudba...@googlegroups.com.
> >>>>> To unsubscribe from this group, send email to
> >>>>> cloudbase-use...@googlegroups.com<cloudbase-users%2Bunsubscribe@­googlegroups.com>
> >>>>> .
> >>>>> For more options, visit this group at
> >>>>>http://groups.google.com/group/cloudbase-users?hl=en.
>
> >>>> --
> >>>> You received this message because you are subscribed to the Google
> >>>> Groups "CloudBase" group.
> >>>> To post to this group, send email to cloudba...@googlegroups.com.
> >>>> To unsubscribe from this group, send email to
> >>>> cloudbase-use...@googlegroups.com<cloudbase-users%2Bunsubscribe@­googlegroups.com>
> >>>> .
> >>>> For more options, visit this group at
> >>>>http://groups.google.com/group/cloudbase-users?hl=en.
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "CloudBase" group.
> >> To post to this group, send email to cloudba...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> cloudbase-use...@googlegroups.com<cloudbase-users%2Bunsubscribe@­googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/cloudbase-users?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "CloudBase" group.
> > To post to this group, send email to cloudba...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > cloudbase-use...@googlegroups.com<cloudbase-users%2Bunsubscribe@­googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/cloudbase-users?hl=en.- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages