跨集群传输数据:(由nameservice2集群传入nameservice1集群)
这里传输的时候目录要以/结尾,不行就在/添加*
hadoop distcp -skipcrccheck hdfs://nameservice2/user/hive/warehouse/ods_yspay_trade.db/ods_orderbill/ hdfs://nameservice1/user/hive/warehouse/temp.db/orderbill_test/
1
传入之后hive查询不到数据:
如果添加正常,但是hive查询不到数据: MSCK REPAIR TABLE tableName; 执行下,把hdfs上的数据上传到hive元数据