# course_project **Repository Path**: TheTrickboy/course_project ## Basic Information - **Project Name**: course_project - **Description**: 并行与分布计算大作业 - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-17 - **Last Updated**: 2023-12-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 并行与分布计算大作业 > 王震彬 20337244 ## 介绍 并行与分布计算大作业 ## 软件架构 由于gitee上传视频的大小不得超过100MB,基于视频时长的限制,video中语速有点快,希望老师理解。 测试方法: ```python python run_script.py -t ``` 其他命令行参数介绍 ```python parser.add_argument("-p", "--port", type=int, help="connect to port ") parser.add_argument("-i", "--host", type=str, help="connect to map-reduce-host") parser.add_argument("-c", "--config", type=str, help="when included, loads config") parser.add_argument("-r","--role", type=str, help="role of worker") parser.add_argument("-w", "--worker", help="when included, creates worker", action="store_true") parser.add_argument("-m", "--master", help="when included, creates master", action="store_true") parser.add_argument("-cli", "--client", help="when included, creates client", action="store_true") parser.add_argument("-inp", "--input", help="Input file") parser.add_argument("-fn", "--function", help="map reduce function") parser.add_argument("-t", "--tests", help="when runs tests", action="store_true") parser.add_argument("-s", "--start", help="when creates cluster", action="store_true") parser.add_argument("-nm", "--num_mappers", help="number of mappers for the cluster") parser.add_argument("-nr", "--num_reducers", help="number of reducers for the cluster") parser.add_argument("-op", "--output", help="Output file location") ```