I saved my workarounds using nutch in Hbase, whose file system is hdfs. Then I copied my data (one hbase table) from hdfs directly to some local directory with the command
hadoop fs -CopyToLocal /hbase/input ~/Documents/output
After that, I copied this data back to another hbase (another system) by running the command
hadoop fs -CopyFromLocal ~/Documents/input /hbase/mydata
It is saved in hdfs and when I use the list command in the hbase shell, it shows it as another table, that is, "mydata", but when I run the scan command, it says that there is no table named "mydata".
What is the problem with the above procedure? In simple words:
- I want to copy the hbase table to the local file system using the hadoop command
- Then I want to save it directly to hdfs on another system with the hadoop command
- Finally, I want the table to display in hbase and display its data as the original table.
hbase hadoop
Shafiq
source share