Yes, you can also create a HBaseConfiguration object and configure it with those exact configs (that you then provide to HTable).
J-D On Wed, May 12, 2010 at 1:22 AM, Michelan Arendse <miche...@addynamo.com> wrote: > Thank you. I have added the configuration folder to my client class path and > it worked. > > Now I am faced with another issue, since this application will be used in > ColdFusion is there a way of making this work without having the > configuration as part of the class path? > > -----Original Message----- > From: jdcry...@gmail.com [mailto:jdcry...@gmail.com] On Behalf Of Jean-Daniel > Cryans > Sent: 11 May 2010 06:26 PM > To: hbase-user@hadoop.apache.org > Subject: Re: Enabling Indexing in HBase > > Per > http://hadoop.apache.org/hbase/docs/r0.20.4/api/org/apache/hadoop/hbase/client/package-summary.html#overview > your client has to know where your zookeeper setup is. Since you want > to use HBase in a distributed fashion, that means you went through > http://hadoop.apache.org/hbase/docs/r0.20.4/api/overview-summary.html#fully-distrib > and this is where the required configs are. > > It could be made more obvious tho. > > J-D > > On Tue, May 11, 2010 at 4:44 AM, Michelan Arendse <miche...@addynamo.com> > wrote: >> Thanks. I have added that to the class path, but I still get an error. >> This is the error that I get: >> >> 10/05/11 13:41:27 INFO zookeeper.ZooKeeper: Initiating client connection, >> connectString=localhost:2181 sessionTimeout=60000 >> watcher=org.apache.hadoop.hbase.client.hconnectionmanager$clientzkwatc...@12d15a9 >> 10/05/11 13:41:27 INFO zookeeper.ClientCnxn: Attempting connection to server >> localhost/127.0.0.1:2181 >> 10/05/11 13:41:28 WARN zookeeper.ClientCnxn: Exception closing session 0x0 >> to sun.nio.ch.selectionkeyi...@b0ce8f >> java.net.ConnectException: Connection refused: no further information >> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) >> at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source) >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:933) >> 10/05/11 13:41:28 WARN zookeeper.ClientCnxn: Ignoring exception during >> shutdown input >> >> I'm working of a server and not standalone mode, where would I change a >> setting that tells the "connectString" to point to the server instead of >> "localhost". >> >> -----Original Message----- >> From: jdcry...@gmail.com [mailto:jdcry...@gmail.com] On Behalf Of >> Jean-Daniel Cryans >> Sent: 10 May 2010 07:05 PM >> To: hbase-user@hadoop.apache.org >> Subject: Re: Enabling Indexing in HBase >> >> Did you include the jar (contrib/indexed/hbase-0.20.3-indexed.jar) in >> your class path? >> >> J-D >> >> On Mon, May 10, 2010 at 6:43 AM, Michelan Arendse <miche...@addynamo.com> >> wrote: >>> Hi. >>> >>> I added the following properties to hbase-site.xml >>> <property> >>> <name>hbase.regionserver.class</name> >>> <value>org.apache.hadoop.hbase.ipc.IndexedRegionInterface</value> >>> </property> >>> >>> <property> >>> <name>hbase.regionserver.impl</name> >>> <value> >>> org.apache.hadoop.hbase.regionserver.tableindexed.IndexedRegionServer >>> </value> >>> </property> >>> >>> I'm using hbase 0.20.3 and when I start hbase now it comes with the >>> following: >>> ERROR org.apache.hadoop.hbase.master.HMaster: Can not start master >>> java.lang.UnsupportedOperationException: Unable to find region server >>> interface org.apache.hadoop.hbase.ipc.IndexedRegionInterface >>> Caused by: java.lang.ClassNotFoundException: >>> org.apache.hadoop.hbase.ipc.IndexedRegionInterface >>> >>> Can you please help with this problem that I am having. >>> >>> Thank you, >>> >>> Michelan Arendse >>> Junior Developer | AD:DYNAMO // happy business ;-) >>> Office 0861 Dynamo (0861 396266) | Fax +27 (0) 21 465 2587 >>> >>> Advertise Online Instantly - www.addynamo.com<http://www.addynamo.com> >>> <http://www.addynamo.com> >>> >>> >> >