I have saved my crawled data by nutch in Hbase whose file system is hdfs. Then I copied my data (One table of hbase) from hdfs directly to some local directory by command
hadoop fs -CopyToLocal /hbase/input ~/Documents/output
After that, I copied that data back to another hbase (other system) by following command
hadoop fs -CopyFromLocal ~/Documents/input /hbase/mydata
It is saved in hdfs and when I use list
command in hbase shell, it shows it as another table i.e 'mydata' but when I run scan
command, it says there is no table with 'mydata' name.
What is problem with above procedure? In simple words:
- I want to copy hbase table to my local file system by using a hadoop command
- Then, I want to save it directly in hdfs in another system by hadoop command
- Finally, I want the table to be appeared in hbase and display its data as the original table