1. 遷移hdfs,使用hadoop 命令
hadoop distcp -pugp hdfs://localhost:9000/ hdfs://localhost:9000/
此處示例僅作說明用
2. 遷移hive。hive的metastore使用的是PostgreSQL,遷移后使用 MySQL。
在遷移 hdfs 的過程中,hive的實際的數據實際已經遷移了,剩下要遷移的是 metastore。
1. 遷移hdfs,使用hadoop 命令
hadoop distcp -pugp hdfs://localhost:9000/ hdfs://localhost:9000/
此處示例僅作說明用
2. 遷移hive。hive的metastore使用的是PostgreSQL,遷移后使用 MySQL。
在遷移 hdfs 的過程中,hive的實際的數據實際已經遷移了,剩下要遷移的是 metastore。
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。