Commit 4284fbde authored by 张彦钊's avatar 张彦钊

change test file

parent fbadf1c3
...@@ -147,14 +147,10 @@ if __name__ == '__main__': ...@@ -147,14 +147,10 @@ if __name__ == '__main__':
# validate_date, value_map, app_list_map = feature() # validate_date, value_map, app_list_map = feature()
# get_predict(validate_date, value_map, app_list_map) # get_predict(validate_date, value_map, app_list_map)
from hdfs import * import glob
import os
client = Client("hdfs://172.16.32.4:8020") data_files = glob.glob("hdfs://172.16.32.4:8020/strategy/esmm/tr/part*")
path = "/strategy/esmm/tr" print(data_files)
for root, dir, files in client.walk(path):
for file in files:
if file[:4] == "part":
print(file)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment