Versions: Hadoop 2.2, Hbase 0.96.1, Pig 0.12
Whenever I run this pig script
raw_data = LOAD 'sample_data.csv' USING PigStorage (',') AS (
listing_id: chararray, fname: chararray, lname: chararray);
STORE raw_data INTO 'hbase: // hello_world' USING org.apache.pig.backend.hadoop.hbase.HBaseStorage ('info: fname Information: LNAME');
And the magazine will show me the following:
2014-01-15 20: 12: 30,788 [main-SendThread (hasoop-master: 2181)] INFO org.apache.zookeeper.ClientCnxn - A connection has been established between the home-master / 50.50.1.15: 2181 socket, the beginning of the session 2014-01- 15 20: 12: 30,798 [main-SendThread (hasoop-master: 2181)] INFO org.apache.zookeeper.ClientCnxn - Session ended server hadoop-master / 50.50.1.15: 2181, sessionid = 0x14397878303000b, agreed timeout = 90,000
which seems OK, but after 10 minutes this error shows me:
2014-01-15 20: 23: 10,247 [main] ERROR org.apache.hadoop.hbase.mapreduce.TableOutputFormat - org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find the region for hello_world, 99999999999999 after 10 attempts. 2014-01-15 20: 23: 10,250 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2999: Unexpected internal error. org.apache.hadoop.hbase.client.NoServerForRegionException: unable to execute, find the scope for hello_world, 99999999999999 after 10 attempts.
To check if everything is ok, I typed this command to check: hbase hbck and give me the following:
Summary: hbase:meta is okay. Number of regions: 1 Deployed on: hadoop-master,60020,1389816680166 hello_world is okay. Number of regions: 1 Deployed on: ubuntu-5e1cfa86-44db-4cab-a902-2aa87485669f,60020,1389816681502 hbase:namespace is okay. Number of regions: 1 Deployed on: hadoop-master,60020,1389816680166 0 inconsistencies detected. Status: OK
In jps my cluster gives me HRegionServer and HQuorumPeer in master, Hmaster on my master
My jps master:
29660 ResourceManager 29264 NameNode 32372 HRegionServer 32064 HQuorumPeer 32159 HMaster 586 Jps 29513 SecondaryNameNode 31728 JobHistoryServer
My jps slave:
29817 Jps 29071 HRegionServer 26844 NodeManager 26665 DataNode 28731 JobHistoryServer
The only error that is given is hbase hbck , because it works and closes before I think about the zookeeper. And this mistake
2014-01-16 13:27:44,149 INFO [master:hadoop-master:60000] master.MasterFileSystem: Log folder hdfs://hadoop-master:8020/hbase/WALs/ubuntu-5e1cfa86-44db-4cab-a902-2aa87485669f,60020,1389878859822 belongs to an existing region server 2014-01-16 13:27:44,234 INFO [master:hadoop-master:60000] catalog.CatalogTracker: Failed verification of hbase:meta,,1 at address=ubuntu-5e1cfa86-44db-4cab-a902-2aa87485669f,60020,1389876721606, exception=org.apache.hadoop.hbase.NotServingRegionException: org.apache.hadoop.hbase.NotServingRegionException: Region hbase:meta,,1 is not online at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegionByEncodedName(HRegionServer.java:2585) at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegion(HRegionServer.java:3952) at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegionInfo(HRegionServer.java:3369) at org.apache.hadoop.hbase.protobuf.generated.AdminProtos$AdminService$2.callBlockingMethod(AdminProtos.java:19789) at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2175) at org.apache.hadoop.hbase.ipc.RpcServer$Handler.run(RpcServer.java:1879)
. Anything I miss?
Update: a possible jar file error is incorrect, the hbase client is trying to connect to the master file, which I fixed and still with errors.