@Kim how is that possible? I'm using the stable release. On Tue, Jul 16, 2013 at 8:37 AM, Pavan Sudheendra <[email protected]> wrote: > @Jean, Nope, it didn't work. I even re-installed hbase. > > Has anyone worked with the Hbase-The definitive guide examples with > standalone mode? > > On Mon, Jul 15, 2013 at 10:06 PM, Kim Chew <[email protected]> wrote: >> Another thing is, >> >> 2013-07-15 05:15:58,764 WARN org.apache.hadoop.ipc. >> HBaseServer: >> Incorrect header or version mismatch from 127.0.0.1:46149 got version >> 47 expected version 3 >> >> Seems like you are using different versions of HBase when compiling your >> codes. >> >> Kim >> >> >> >> On Mon, Jul 15, 2013 at 5:40 AM, Jean-Marc Spaggiari < >> [email protected]> wrote: >> >>> You should change our hosts file to something like that: >>> >>> 127.0.0.1 localhost >>> 192.168.XXX.YYY ubuntu.ubuntu-domain ubuntu >>> >>> Where 192.168.XXX.YYY is your local host IP address >>> >>> Can you change and retry? (Restart). >>> >>> JM >>> >>> 2013/7/15 Pavan Sudheendra <[email protected]> >>> >>> > The fact of the matter is i'm able to anything in the shell. It works >>> > fine, but i'm not able to execute normal CRUD operations with the JAVA >>> > API programatically. >>> > >>> > On Mon, Jul 15, 2013 at 5:48 PM, Pavan Sudheendra <[email protected]> >>> > wrote: >>> > > Hi Jean, >>> > > Here is my /etc/hosts/ >>> > > >>> > > 127.0.0.1 localhost >>> > > 127.0.0.1 ubuntu >>> > > 127.0.0.1 ubuntu.ubuntu-domain ubuntu >>> > > >>> > > Yes i went to http://localhost:60010 and saw that my master is running >>> > > >>> > > Here is the output of it >>> > > >>> > > hduser@ubuntu:/home/ubuntu/hbase-book/ch03$ jps >>> > > 17602 Jps >>> > > 8709 NameNode >>> > > 8929 DataNode >>> > > 9472 TaskTracker >>> > > 9252 JobTracker >>> > > 9172 SecondaryNameNode >>> > > 17136 HMaster >>> > > >>> > > The tail of the log: >>> > > >>> > > 2013-07-15 05:12:35,735 INFO >>> > > org.apache.hadoop.hbase.master.AssignmentManager: The master has >>> > > opened the region >>> > > users,,1373863643564.fcb6fdfa8c0f4d8c621f354c2aa146a9. that was online >>> > > on localhost,40536,1373890342256 >>> > > 2013-07-15 05:12:35,736 DEBUG >>> > > org.apache.hadoop.hbase.zookeeper.ZKAssign: >>> > > master:37238-0x13fe23eeaec0000 Successfully deleted unassigned node >>> > > for region fcb6fdfa8c0f4d8c621f354c2aa146a9 in expected state >>> > > RS_ZK_REGION_OPENED >>> > > 2013-07-15 05:12:43,485 INFO >>> > > org.apache.zookeeper.server.NIOServerCnxnFactory: Accepted socket >>> > > connection from /127.0.0.1:40840 >>> > > 2013-07-15 05:12:43,488 INFO >>> > > org.apache.zookeeper.server.ZooKeeperServer: Client attempting to >>> > > establish new session at /127.0.0.1:40840 >>> > > 2013-07-15 05:12:43,490 INFO >>> > > org.apache.zookeeper.server.ZooKeeperServer: Established session >>> > > 0x13fe23eeaec0003 with negotiated timeout 40000 for client >>> > > /127.0.0.1:40840 >>> > > 2013-07-15 05:12:51,118 WARN >>> > > org.apache.zookeeper.server.NIOServerCnxn: caught end of stream >>> > > exception >>> > > EndOfStreamException: Unable to read additional data from client >>> > > sessionid 0x13fe23eeaec0003, likely client has closed socket >>> > > at >>> org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:220) >>> > > at >>> > >>> org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208) >>> > > at java.lang.Thread.run(Thread.java:724) >>> > > 2013-07-15 05:12:51,124 INFO >>> > > org.apache.zookeeper.server.NIOServerCnxn: Closed socket connection >>> > > for client /127.0.0.1:40840 which had sessionid 0x13fe23eeaec0003 >>> > > 2013-07-15 05:13:24,001 INFO >>> > > org.apache.zookeeper.server.ZooKeeperServer: Expiring session >>> > > 0x13fe23eeaec0003, timeout of 40000ms exceeded >>> > > 2013-07-15 05:13:24,001 INFO >>> > > org.apache.zookeeper.server.PrepRequestProcessor: Processed session >>> > > termination for sessionid: 0x13fe23eeaec0003 >>> > > 2013-07-15 05:15:58,566 WARN org.apache.hadoop.ipc.HBaseServer: >>> > > Incorrect header or version mismatch from 127.0.0.1:46147 got version >>> > > 47 expected version 3 >>> > > 2013-07-15 05:15:58,762 WARN org.apache.hadoop.ipc.HBaseServer: >>> > > Incorrect header or version mismatch from 127.0.0.1:46148 got version >>> > > 47 expected version 3 >>> > > 2013-07-15 05:15:58,764 WARN org.apache.hadoop.ipc.HBaseServer: >>> > > Incorrect header or version mismatch from 127.0.0.1:46149 got version >>> > > 47 expected version 3 >>> > > >>> > > >>> > > Thanks for replying. >>> > > >>> > > On Mon, Jul 15, 2013 at 5:32 PM, Jean-Marc Spaggiari >>> > > <[email protected]> wrote: >>> > >> Hi Pavan, >>> > >> >>> > >> Before you try to connect with the Java API, just try with the Shell >>> and >>> > >> look at the logs and WebUI. >>> > >> >>> > >> So few things. >>> > >> >>> > >> 1) Have you updated you /etc/hosts file with your host name to point >>> to >>> > you >>> > >> local IP; >>> > >> 2) Have you checked the WebUI in you browser to see if your master is >>> > >> running; >>> > >> 3) What is into your log file? >>> > >> >>> > >> JM >>> > >> >>> > >> 2013/7/15 Pavan Sudheendra <[email protected]> >>> > >> >>> > >>> I've been trying to run examples from HBase-The definitve guide and >>> > >>> i've been encountering with this error and i'm not able to get past >>> > >>> it. I'm running in Stand alone mode if that helps. >>> > >>> >>> > >>> >>> > >>> Exception in thread "main" >>> > >>> org.apache.hadoop.hbase.MasterNotRunningException: � >>> > >>> 17136@ubuntulocalhost,32992,1373877731444 >>> > >>> at >>> > >>> >>> > >>> >>> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:615) >>> > >>> at >>> org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94) >>> > >>> at util.HBaseHelper.<init>(HBaseHelper.java:29) >>> > >>> at util.HBaseHelper.getHelper(HBaseHelper.java:33) >>> > >>> at client.PutExample.main(PutExample.java:22) >>> > >>> >>> > >>> >>> > >>> But my HMaster process is running: >>> > >>> >>> > >>> hduser@ubuntu:/home/ubuntu/hbase-book/ch03$ jps >>> > >>> 17602 Jps >>> > >>> 8709 NameNode >>> > >>> 8929 DataNode >>> > >>> 9472 TaskTracker >>> > >>> 9252 JobTracker >>> > >>> 9172 SecondaryNameNode >>> > >>> 17136 HMaster >>> > >>> >>> > >>> >>> > >>> -- >>> > >>> Regards- >>> > >>> Pavan >>> > >>> >>> > > >>> > > >>> > > >>> > > -- >>> > > Regards- >>> > > Pavan >>> > >>> > >>> > >>> > -- >>> > Regards- >>> > Pavan >>> > >>> > > > > -- > Regards- > Pavan
-- Regards- Pavan
