本文主要是介绍HDFS租约机制详解,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1、租约机制简介
2、租约状态操作
判断租约释放结果
3.2.2.1、租约释放成功
Lease recovery initiated for /user/hive/warehouse/ufoto_bigdata_src.db/src_api_hour_game_square_log/day_part=20190630/hour_part=03/log_game_square_20190630_03.1561865579388.lzo
Lease recovery completed for /user/hive/warehouse/ufoto_bigdata_src.db/src_api_hour_game_square_log/day_part=20190630/hour_part=03/log_game_square_20190630_03.1561865579388.lzo
3.2.2.2、租约释放失败
Lease recovery initiated for /user/hive/warehouse/ufoto_bigdata_src.db/src_api_hour_game_square_log/day_part=20190630/hour_part=03/log_game_square_20190630_03.1561865579388.lzo
Lease recovery failed for /user/hive/warehouse/ufoto_bigdata_src.db/src_api_hour_game_square_log/day_part=20190630/hour_part=03/log_game_square_20190630_03.1561865579388.lzo
Error: org.apache.hadoop.ipc.RemoteException(java.io.IOException): Lease recovery failed for file /user/hive/warehouse/ufoto_bigdata_src.db/src_api_hour_game_square_log/day_part=20190630/hour_part=03/log_game_square_20190630_03.1561865579388.lzo
3.2.3.3、文件不存在
Lease recovery initiated for /user/hive/warehouse/ufoto_bigdata_src.db/src_api_hour_game_square_log/day_part=20190630/hour_part=03/log_game_square_20190630_03.1561865579388.lzo
Error: File /user/hive/warehouse/ufoto_bigdata_src.db/src_api_hour_game_square_log/day_part=20190630/hour_part=03/log_game_square_20190630_03.1561865579388.lzo does not exist.
3.2.3.4、其他错误
Lease recovery initiated for /user/hive/warehouse/ufoto_bigdata_src.db/src_api_hour_game_square_log/day_part=20190630/hour_part=03/log_game_square_20190630_03.1561865579388.lzo
Error: org.apache.hadoop.ipc.RemoteException(java.io.IOException): Unexpected error occurred during lease recovery
3.2.3.4、租约释放情况说明
这篇关于HDFS租约机制详解的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!