Hi,
I have configured HBase-0.20.0 with Hadoop-0.20.1 and HDFS. I have created one table named 'Employee'. some reason i restarted the Hbase then i executed "list" command to see available table in HBase but it didn't show me the previously created table "Employee". Then i checked with the command
$HADOOP_HOME/bin/hadoop dfs -ls /hbase it show me the "Employee" table.
I have writen one java programme wich takes the table row name and displays the value column value.
link for the java proframme
EmployeeImport.javaFacing Problem :- when i ran the above programme i got following exception table not found but table is available in HBase-HDFS.********************************Exception***************************************
org.apache.hadoop.hbase.TableNotFoundException: EmployeeName
at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:632)
at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:586)
at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:549)
at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:125)
at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:103)
at EmployeeImport$InnerMap.configure(EmployeeImport.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:88)
at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:64)
at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117)
at org.apache.hadoop.mapred.MapRunner.configure(MapRunner.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:88)
at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:64)
at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117)
at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:354)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:307)
at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:176)
09/11/04 12:41:40 INFO EmployeeImport: --------------------map called---------------------------
09/11/04 12:41:40 WARN mapred.LocalJobRunner: job_local_0001
java.io.IOException: table is null
at EmployeeImport$InnerMap.map(EmployeeImport.java:41)
at EmployeeImport$InnerMap.map(EmployeeImport.java:33)
at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50)
at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:358)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:307)
at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:176)
09/11/04 12:41:40 INFO mapred.JobClient: map 0% reduce 0%
09/11/04 12:41:40 INFO mapred.JobClient: Job complete: job_local_0001
09/11/04 12:41:40 INFO mapred.JobClient: Counters: 0
Exception in thread "main" java.io.IOException: Job failed!
at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1252)
at EmployeeImport.run(EmployeeImport.java:103)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at EmployeeImport.main(EmployeeImport.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.RunJar.main(RunJar.java:156)