소스 검색

read hdfs

丁云鹏 5 달 전
부모
커밋
2ece6ffb6e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      recommend-model-produce/src/main/python/tools/utils/static_ps/reader_helper_hdfs.py

+ 1 - 1
recommend-model-produce/src/main/python/tools/utils/static_ps/reader_helper_hdfs.py

@@ -82,7 +82,7 @@ def get_file_list(data_path, config):
     logger.info("data_path: {}".format(data_path))
 
     cmd = "hadoop fs -test -e {}".format(data_path)
-    ret, out = self._run_cmd(cmd, redirect_stderr=True, retry_times=1)
+    ret, out = hdfs_client._run_cmd(cmd, redirect_stderr=True, retry_times=1)
     logger.info("ret: {} out: {}".format(ret, out))