Hi Artem, that's more of a HBase user question rather than Ambari.. The one way you can run the app is to run it via hbase command - bin/hbase <fully-qualified-name-of-class> <args> ... bin/hbase will put the HBase dependencies in the CLASSPATH. Set whatever extra classes you have in HBASE_CLASSPATH and export it before running the bin/hbase command.
Thanks Devaraj On Thu, Jun 6, 2013 at 10:17 AM, Artem Ervits <[email protected]> wrote: > I'm trying to execute a java project that inserts records into HBase. When > I run it locally on my laptop in pseudo-distributed mode, I'm able to > execute the code and records get executed. What we found out when we ran on > a four-node Hadoop/HBase cluster, is that unless I jar the java code, then > unjar it and add all of the HBase classpath jars to my jar, it won't run. > I'm wondering how I can avoid jarring all of the dependencies with my code > and just execute it as is. I generated the list of jars for HBase using > bin/hbase classpath command. > > Thanks > > -----Original Message----- > From: Yusaku Sako [mailto:[email protected]] > Sent: Wednesday, June 05, 2013 10:46 PM > To: [email protected] > Subject: Re: run HBase projects > > Hi Artem, > > Can you provide more details on the exception and what you were trying to > do? > > Yusaku > > On Wed, Jun 5, 2013 at 11:06 AM, Artem Ervits <[email protected]> wrote: > > Hello all, > > > > > > > > I'm fairly new to HBase and I'm having some issues that may or may not > > have anything to do with Ambari. Basically, I'm running an HBase > > project in pseudo-distributed mode and it works fine and when I try to > > execute the same code on an Ambari-deployed HBase cluster, I get class > not found exception. > > I'm pretty sure it's classpath issue and was wondering what people do > > to avoid this on an Ambari-provisioned servers. > > > > > > > > Thanks > > > > > > This electronic message is intended to be for the use only of the > > named recipient, and may contain information that is confidential or > privileged. > > If you are not the intended recipient, you are hereby notified that > > any disclosure, copying, distribution or use of the contents of this > > message is strictly prohibited. If you have received this message in > > error or are not the named recipient, please notify us immediately by > > contacting the sender at the electronic mail address noted above, and > > delete and destroy all copies of this message. Thank you. > > This electronic message is intended to be for the use only of the named > recipient, and may contain information that is confidential or privileged. > If you are not the intended recipient, you are hereby notified that any > disclosure, copying, distribution or use of the contents of this message is > strictly prohibited. If you have received this message in error or are not > the named recipient, please notify us immediately by contacting the sender > at the electronic mail address noted above, and delete and destroy all > copies of this message. Thank you. >
