|
@@ -71,7 +71,7 @@ def thread_task(name, file_list, model_file, params_file):
|
|
output_file = f"/app/vec-{file_name}.json"
|
|
output_file = f"/app/vec-{file_name}.json"
|
|
write_results(results, output_file)
|
|
write_results(results, output_file)
|
|
compress.compress_file_tar(output_file, f"{output_file}.tar.gz")
|
|
compress.compress_file_tar(output_file, f"{output_file}.tar.gz")
|
|
- hdfs_client.upload(f"{output_file}.tar.gz", f"/dyp/vec/{file_name}.gz", multi_processes=1, overwrite=True):
|
|
|
|
|
|
+ hdfs_client.upload(f"{output_file}.tar.gz", f"/dyp/vec/{file_name}.gz", multi_processes=1, overwrite=True)
|
|
results=[]
|
|
results=[]
|
|
print(f"Thread {name}: ending file:{file_path} {i}/{count}")
|
|
print(f"Thread {name}: ending file:{file_path} {i}/{count}")
|
|
|
|
|